github repo for some of the things listed here:

git clone https://github.com/mzandrew/bin.git

miscellaneous:

git:

change permissions:

detect linux variant:

grub:

grub rescue > ls
(hd0) (hd0, msdos9)
grub rescue > ls (hd0,msdos9)
grub rescue > ls (hd0,msdos8)
grub rescue > ls (hd0,msdos5) # suppose this is linux
grub rescue > ls (hd0,msdos5)
grub rescue > set root=(hd0,msdos5)
grub rescue > set prefix=(hd0,msdos5)/boot/grub
grub rescue > insmod normal
grub rescue > normal
then, from linux:
sudo update-grub
sudo grub-install  /dev/sda # If the drive is hd0 the equivalent is sda, if it's hd1 then use sdb

logical volume manager (lvm):

join pdfs with ghostscript (especially useful for inkscape output):

enable/disable services:

network time protocol (ntp):

network address translation (NAT):

static/dhcp ip addresses:

dynamic host configuration protocol (DHCP):

pxe server (to boot thin/diskless network clients)

nfs server:

nfs client:

dhcp+tftp+pxe+nfs server (to boot thin/diskless network clients)

shell:

ssh tunnel:

iptables firewall:

AMD/ATI RADEON HD 3450 RV620 LE drivers in 64bit linux:

printing with CUPS:

cron

chmod / sticky bit:

tmux:

other:

see also: