Some Commands for Mikrotik NewBees Helpful Links Quick Guide - CCR2004-1G-12S+2XS CCR2004-1G-12S+2XS - User Manual MikroTik wired interface compatibility Copper SFP (not able todo Auto Negotiation) /interface/ethernet/set sfp-sfpplus1 auto-negotiation=no Update Packages /system package update check-for-updates /system package update install reboot Upgrade Firmware /system routerboard print /system routerboard upgrade /system reboot; Reset Config /system/reset-configuration MMM MMM KKK TTTTTTTTTTT KKK MMMM MMMM KKK TTTTTTTTTTT KKK MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK MikroTik RouterOS 7.

Restricted Shell

Restricting User to Script Let’s assume you have some Users around and they should be able to run certain Scripts. These Scripts do various things, login to some systems, perform task, get data from an API, whatever you want. All these Actions needs Credentials which must be available to the script, although they are not part of the Script. They could be Provides via OS Env, .env File, Encrypted Password Store or whatever.

MacOS - Kernel Extensions

see: System Extensions > ll /System/Library/Extensions/ |head total 0 drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AFKACIPCKext.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AFTK_Kext.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG13GRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG13XRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14GRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14PRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14XRTBuddy.


as i’m using vim almost every day, why not make some notes to improve the skillz ? Source: and others … .vimrc my vim config file. do backup of the old file first! test -f ~/.vimrc && cp ~/.vimrc ~/.vimrc.bak-$(date "+%s") cat << 'EOF' > ~/.vimrc " sample .vimrc from " Use 2 spaces for tabs set shiftwidth=2 set tabstop=2 set expandtab set softtabstop=0 set ruler set mouse=r " Disable backup and swap files because they cause more problems than they solve set nobackup set noswapfile " Display line numbers set number " Color syntax on " colorscheme delek EOF show whitespaces :set list show numbers :set numbers ignore case :set ignorecase Convert File to xxd (hex editor) :%!

OpenBSD 7.3 - Diskusage

New Proposal for 7.3 there is an request for at least 1.1GB free Storage at the /usr Partition when upgrading your systeme with sysupgrade. so, i have to adapt my settings a bit for new vm’s with at least 25GB Storage. Example with 20GB a 4G / a 1G swap a 1G /tmp a 4G /var a 6G /usr a * /home (ca. 4 GB) Example with 25GB (Vultr) a 4G / a 2G swap a 2G /tmp a 6G /var a 6G /usr a * /home (ca.

FreeBSD - Upgrade to 13.2

Upgrade FreeBSD 13.1 to 13.2 reading some NewFeeds, FreeBSD 13.2 got released … Let’s do an upgrade and see if it’s working fine. Patch it first freebsd-update fetch freebsd-update install reboot may not needed, but you have to boot anyway a few times … Fetch and Upgrade to 13.2 this needs some time ! depending on your internet speed, and specially to power and filesystem performance of your machine.

Softraid on OpenBSD

Softraid Inspired by a book from MWL - OpenBSD Mastery Filesystems, here some Notes .. Target build a RAID with 3 Disks, add some Data, destroy one Disk, and rebuild the Raid (and it’s Data). Requirements OpenBSD 7.2 Running added 3 Disk with 20G each: sd0, sd1, sd2 Find Disks root@puffy # dmesg |grep -i sec wd0: 64-sector PIO, LBA, 20480MB, 41943040 sectors sd0: 20480MB, 512 bytes/sector, 41943040 sectors sd1: 20480MB, 512 bytes/sector, 41943040 sectors sd2: 20480MB, 512 bytes/sector, 41943040 sectors sd0, sd1, sd2 are New Disks for RAID

Sensorsd - UPS Shutdown

Shutdown Hosts on Power Outages Everybody is talking about Power Outages. Let’s assume you have a Smart-UPS for your Playground and you’d like to shut some Infrastructure to avoid some troubles with corrupt filesystems, broken vm’s and things like that. Connection UPS to APU via USB Cable dmesg show the UPS connected APU# dmesg uhidev0 at uhub0 port 3 configuration 1 interface 0 "American Power Conversion Smart-UPS_1500 ... uhidev0: iclass 3/0, 142 report ids upd0 at uhidev0 uhid0 at uhidev0 reportid 1: input=0, output=0, feature=1 uhid1 at uhidev0 reportid 2: input=0, output=0, feature=1 .

JC - JSON from CLI

how to build json from cli we all like json, do we ? add package doas pkg_add jc try ping openbsd-box # ping -c 3 |jc --ping -p 2>/dev/null { "destination_ip": "", "data_bytes": 56, "pattern": null, "destination": "", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "duplicates": 0, "round_trip_ms_min": 9.219, "round_trip_ms_avg": 9.826, "round_trip_ms_max": 10.158, "round_trip_ms_stddev": 0.43, "responses": [ { "type": "reply", "bytes": 64, "response_ip": "", "icmp_seq": 0, "ttl": 59, "time_ms": 10.

Ubuntu 20.04 LTS & Netplan

Assume you got a fresh Machine with DHCP … Ubuntu with DHCP Config cat /etc/netplan/01-netcfg.yaml # This is the network config written by 'subiquity' network: ethernets: ens192: dhcp4: true version: 2 and you’d like to switch to Static IP, ask google how todo it an give try: Static IP with Netplan # This is the network config written by 'subiquity' network: version: 2 ethernets: ens192: addresses: - gateway4: nameservers: addresses: - 8.