start new:
tmux
start new with session name:
tmux new -s myname
| # basic .muttrc for use with Gmail | |
| # Change the following six lines to match your Gmail account details | |
| set imap_user = "[email protected]" | |
| set imap_pass = "" | |
| set smtp_url = "smtp://[email protected]:587/" | |
| set smtp_pass = "" | |
| set from = "[email protected]" | |
| set realname = "Firstname Lastname" | |
| # |
| OSX Apps | |
| - Total Spaces, for keeping X11 in different space and faster switching | |
| - MenuAndDockless for hidding topbar menu | |
| X11 - Macports | |
| - sudo port install xorg-server | |
| - sudo port install xinit | |
| - sudo port install terminus-font dejavu-fonts bitstream-fonts | |
| Suckless - suckless.org |
| ################################################################# | |
| # = This script transfers bash history to zsh history | |
| # = Change bash and zsh history files, if you don't use defaults | |
| # | |
| # = Usage: ruby bash_to_zsh_history.rb | |
| # | |
| # = Author: Ankit Goyal | |
| ################################################################# | |
| # change if you don't use default values |
| # You must first install apktool (https://github.com/iBotPeaches/Apktool) and android SDK | |
| # and decompile apk using it | |
| # apktool d -rf my-app.apk | |
| # then generate a key for sign in: | |
| # keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
| rm signed-app.apk | |
| apktool b -f -d com.myapp | |
| jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore com.myapp/dist/com.myapp.apk alias_name | |
| zipalign -v 4 com.myapp/dist/com.myapp.apk signed-app.apk |
| #!/bin/sh | |
| if [ $# -ne 3 ] ; then | |
| echo "Usage: $0 <ref> <ref> <filename>" | |
| exit 1 | |
| fi | |
| RevA=$1 | |
| RevB=$2 | |
| File=$3 |
| # Windows (receiver) side: | |
| .\ffplay.exe -nodisp -ac 2 -acodec pcm_u8 -ar 48000 -analyzeduration 0 -probesize 32 -f u8 -i udp://0.0.0.0:18181?listen=1 | |
| # Linux (transmitter) side: | |
| pactl load-module module-null-sink sink_name=remote | |
| ffmpeg -f pulse -i "remote.monitor" -ac 2 -acodec pcm_u8 -ar 48000 -f u8 "udp://RECEIVER:18181" | |
| pavucontrol # Change the default output to the Null sink or move single applications to this "output" device. |