openssl rand -hex 16
ruby -run -e httpd . -p 8000
python -m SimpleHTTPServer 8080
python3 -m http.server 8080
route add -net 192.168.1 -interface ppp0
openssl x509 -in <certificate> -text
defaults write com.apple.finder CreateDesktop false; killall Finder
sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string --no-multicast" /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo kextunload -b com.apple.driver.AppleUSBCardReader
ip netns list
ip netns exec <namespace> <command>
ssh-keygen -R <hash> or <host>
ssh-keygen -y -f /path/to/private.key > /path/to/public.key
openssl rand -hex 5 | sed -e 's/\(..\)/:\1/g; s/^/fe/'
virsh -c lxc:/// lxc-enter-namespace <domain> -- /absolute/path/to/command
virsh dumpxml <domain> > <domain>.xml
<edit domain.xml, change the name>
virsh undefine <domain>
virsh define <domain>.xml
rpm2cpio <file>.rpm | cpio -idmv
/usr/syno/sbin/synoservicectl --restart <service>
watch -n 1 "(ps aux | awk '\$8 ~ /D/ { print \$0 }')"
semanage fcontext -a -t <context> </path>
restorecon -v </path>
openssl dhparam -out dhparams.pem 2048
glance image-download --file <filename> <image id>
Quick "fix": echo "blacklist rpcsec_gss_krb5" >> /etc/modprobe.d/blacklist.conf; rmmod rpcsec_gss_krb5
dscacheutil -flushcache
sudo killall -HUP mDNSResponder
echo "allow <bridge interface> >> /etc/qemu-kvm/bridge.conf"
Add console=tty0 console=ttyS0,115200n8
to grub and update boot
echo "T0:123:respawn:/sbin/getty -L ttyS0 115200 vt100 >> /etc/inittab"
virsh attach-disk <domain> <source> <destination> --type cdrom --mode readonly
while true; do ping -n -W1 -c1 <host> | grep rtt | sed -e "s/^/`date +"[%d-%m-%Y %H:%M:%S]"` /"; sleep <seconds>;done | tee <file>
sudo ifconfig <interface> alias <address> <netmask>
sudo ifconfig <interface> -alias <address>
openssl x509 -in <certificate> -text
apt-get remove --purge linux-image-<#>.<#>.<#>-<#>-generic
Hit Ctrl+b then :
source-file ~/.tmux.conf
defaults write -g CGFontRenderingFontSmoothingDisabled -bool FALSE
git config --global core.excludesfile ~/.gitignore