systemctl --user restart pulseaudio
sox -d rec.wav
aplay rec.wav # Linux
afplay rec.wav # MacOS
sox test.wav out.wav highpass 10
./grep_for_text.sh "text to find" /path/to/folder --include=\*.{cpp,h}
grep -Ril "text to find" /path/to/folder --include=\*.{cpp,h}
sudo update-alternatives --config java
sudo iwlist wlan0 scan | egrep "Cell|ESSID|Signal|Rates" | head -5
ipconfig getifaddr en0
curl ifconfig.me
Setup Instructions or Full Setup Instructions
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -n -f 10 -r 1280x720" -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8085 -w /usr/local/share/mjpg-streamer/www"
ping raspberrypi.local
- Raw Video http://192.168.1.17:8085/?action=stream
- Web Interface http://192.168.1.17:8085/stream.html
- http://192.168.1.1
- Port forwarding >> Manage >> Add port forwarding Rule >> Select device >> Enter destination port (external forces internal to be the same, external is outside port and internal port is the port on the device to go to)
- Generate a second ssh key and rename it to something else
ssh-keygen -t ed25519 -C "[email protected]"
# Enter file in which to save the key (/home/samuel/.ssh/id_ed25519): /home/samuel/.ssh/id_ed25519_SOMEWHERE_ELSE
ssh-add ~/.ssh/id_ed25519_SOMEWHERE_ELSE
- Add the key in github
cat ~/.ssh/id_ed25519_SOMEHWERE_ELSE.pub
- Create ~/.ssh/config
Host github.com github account
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519
Host github.com-SOMEWHERE github account
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519_SOMEWHERE_ELSE
- Update ~/.gitconfig
[user]
email = [email protected]
name = REGULAR
[core]
editor = vim
[includeIf "gitdir:~/dev/SOMEWHERE_SPECIAL"]
path = ~/.gitconfigSOMEWHERE_ELSE
- Create ~/.gitconfigSOMEWHERE_ELSE
[user]
email = [email protected]
name = SOMETHING_ELSE
- Add the remote for using the SOMETHING_ELSE account
[email protected]
matches the Host in ~/.ssh/config
git remote add origin [email protected]:account_name/repo_name.git
- Indent Using Tabs
- Select the current tab size (ex: 4 if converting from 4 to 2)
- Convert Indentation to Tabs
- Indent Using Tabs
- Select the desired tab size (ex: 2 if converting from 4 to 2)
- Convert Indentation to Spaces