- SSH to your router. Create backup:
tar -cvzf /tmp/overlay.tar.gz /overlay
- Copy the backup to a safe location:
scp -O [email protected]:/tmp/overlay.tar.gz ~/Downloads
- After fresh install restore the backup:
tar -cvzf /tmp/overlay.tar.gz /overlay
scp -O [email protected]:/tmp/overlay.tar.gz ~/Downloads
find . -name "*.py" -exec sed -i '' -e 's|#!/usr/bin/python|/#!usr/bin/env python|g' {} \;
find . -type f -exec sed -i '' -e 's|#!/usr/bin/python|/#!usr/bin/env python|g' {} \;
If you get RE error: illegal byte sequence
on Mac OS X
add these lines:
brew deps --tree --installed
#!/bin/bash | |
clear | |
destination=~/Desktop/Mac\ OS\ X\ Install\ DVD | |
#make destination folder | |
[ ! -d "$destination" ] && mkdir "$destination" | |
#make sure disc is in drive | |
while [ ! -d /Volumes/Mac\ OS\ X\ Install\ DVD ] ; do |
rootcerts.pem
file. This file will contain all the certificates concatenated.rootcerts.pem
file to your obsolete macOS.#!/bin/bash
DIR=${TMPDIR}/trustroot.$$
mkdir -p ${DIR}
Progress
can track progress of data transfer processes. Install with:brew install progress
dd
, get its PID with:ps aux | grep "dd"
pidof
/usr/local/bin
is part of PATH
for all shells started/Terminal tabs created after the line has been executed.sudo sh -c 'grep -q "/usr/local/bin" /etc/paths || echo "/usr/local/bin" >> /etc/paths'
gdown
by using the file id
:gdown <file_id> --output "some.dmg"
wget
from Dropbox by changing dl=0
to dl=1
at the end of the shared link:wget -O "file_name.dmg" "https://www.dropbox.com/s/<random_numbers>.dmg?dl=1"
curl
from Dropbox by changing dl=0
to dl=1
at the end of the shared link: