sudo apt-update
sudo apt-upgrade
# Update your source.list if having an error
# vi sudo vim /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
#
# `sudo apt-get install samba samba-common-bin`
# `vi /etc/samba/smb.conf`
#
# Insert at the end of the file :
#
[Torrentbox]
comment = Public Shares
path = /media/Torrent
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = Yes
sudo apt-get update
sudo apt-get install tmux
sudo apt-get install vim-nox
sudo apt-get install ntfs-3g
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/OSX\ Yosemite\ 10.10 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
- 399438MB = 390GB
sudo rsync -avr -P --files-from=move.txt . /media/Anime01/Anime
find /source/ | grep name | grep .extention | while read -r line; do echo "$line"; done
for file in /source/*; do rsync -av -P "$file" /destination; done
for file in /source/*; do if [[ "$file" =~ * ]]; then rsync -av -P "$file" /destination; fi; done
until git push; do echo "Retrying..."; done
du -h . | grep ^0 | cut -f2 | while read -r line; do rm -rfv "$line"; done
sudo find /source > move-files.txt
sudo rsync --ignore-existing -raz --progress --files-from=move-files.txt /source /destination
ls | wc -l
find . -type f | wc -l
http://posts.danharper.me/raspberry-pi-2-auto-mount-usb/
sudo vi /etc/fstab
$ df -h -
$ du -h -
$ blkid -
$ lsblk
$ ls -al /dev/disk/by-uuid
df -h
sudo umount /path/to/device
sudo mkntfs /dev/sda1
sudo ntfslabel /dev/sda1 MyDrive
sudo mkfs.ext4 /dev/sda1
sudo e2label /dev/sda1 MyDrive
fdisk /dev/sda
sudo apt-get install ntfsprogs
sudo ln -s /bin/ntfsfix /sbin/fsck.ntfs
sudo ln -s /bin/ntfsfix /sbin/fsck.ntfs-3g
fsck /dev/sda1
shutdown -rF now
chkdsk /f
sudo dd if=/path/to/image.iso of=/dev/diskN bs=1m
hdiutil makehybrid -iso -joliet -o Image.iso ImageDirectory
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
git branch -a | grep remotes | while read -r line ; do git checkout ${line//remotes\/origin\//} ; done
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
network={
ssid="PLDTMyDSL"
psk="******"
}