Add these lines to your /etc/rc.conf
ifconfig_em0="inet 192.168.0.10 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
hostname="hostname.domain.com"
You may need to run ifconfig to get the name of your network interface like this:
$ ssh [email protected] 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
# Scan 192.168.1.0 thru 192.168.1.255 | |
sudo nmap -sS 192.168.1.0/24 |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
mkdir ~/targetdir | |
sudo mount -t vboxsf -o uid=$UID,gid=$GID sharename ~/targetdir |
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.website.org/tutorials/html/ |
# this performs a sample rate conversion on a folder of .wav files | |
find . -maxdepth 1 -name '*.wav' -type f -print0 | xargs -0 -t -I {} sox {} -r 8000 8000Hz/{} |
#!/bin/bash | |
OF="${1}.mp4" | |
HandBrakeCLI -i "$1" -o "$OF" -e x264 -q 20 -E faac -B 256 -6 dpl2 -R Auto -D 0.0 -f mp4 --width 960 --height 540 --decomb --crop 0:0:0:0 --optimize -m -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subme=6:8x8dct=0:trellis=0 |
[ | |
{ | |
"name": "My Presets", | |
"presets": [ | |
{ | |
"id": "2K2l90", | |
"type": "ENC", | |
"name": "DVD 16:9 m2v/ac3", | |
"cmd": [ | |
["ffmbc", "-i", "{{infile}}", "-acodec", "ac3", "-ab", "384k", "{{outfile}}-dvd.ac3"], |
# directory | |
find . -type d -name "FILENAME" -exec rm -rf {} \; | |
# file | |
find . -type f -name "FILENAME" -exec rm -f {} \; |