start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/sh | |
| DEST_DIR="/some/other/dir" | |
| function linker() { # create simlink to downloaded files, rather than copy to final directory | |
| if [ ! -d "$DEST_DIR/$1" ]; then mkdir "$DEST_DIR/$1"; fi | |
| cd "$1" | |
| for F in *; do | |
| if [ -d "$F" ]; then linker "$1/$F"; fi | |
| ln -s "$TR_TORRENT_DIR/$1/$F" "$DEST_DIR/$1" |
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| server { | |
| listen 80; | |
| server_name MY.WEBSITE.TLD; | |
| root /Users/ME/Sites/FOLDER; | |
| client_header_buffer_size 16k; | |
| large_client_header_buffers 16 16k; | |
| # qsa | |
| rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; |
| #!/bin/bash | |
| ########################################### | |
| # chkconfig: 2345 98 02 | |
| # | |
| # description: PM2 next gen process manager for Node.js | |
| # processname: ghost1 | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: ghost1 | |
| # Required-Start: |
| # Install personalization tools | |
| yaourt -S yubikey-personalization-gui-git | |
| # Change the key's USB mode to 82 | |
| sudo ykpersonalize -m 82 | |
| # Install gpshell and cap file | |
| yaourt -S ccid gpshell gppcscconnectionplugin | |
| wget http://opensource.yubico.com/ykneo-oath/releases/ykneo-oath-0.2.1.cap | |
| wget https://raw.github.com/Yubico/ykneo-oath/master/gpinstall.txt |
https://github.com/coolaj86/node-tel-carrier
Format: http://www.xminder.com/number.check.php?number=<number>
| #!/bin/sh | |
| # Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| Moved to a proprer repositoy, TSWS is a real boy now! | |
| https://github.com/dfletcher/tsws | |
| PRs welcomed. |