This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
const ever = true | |
func main() { | |
for ever { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"path/filepath" | |
"github.com/go-fsnotify/fsnotify" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
for user in $(ls /home/znc/users/); do | |
if [ ! -d "/home/${user}" ] ; then | |
continue | |
fi | |
echo "Syncing logs for ${user}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"errors" | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
def go(f, *args, **kwargs): | |
thread = Thread(target = f, args = args, kwargs = kwargs) | |
thread.daemon = True | |
thread.start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stolen from http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/office-for-mac-mavericks-high-performance-gpu/e1a6aff0-e36e-40ae-ab62-aa7e3e0c6b10 | |
# Enable for Lync | |
AppName="/Applications/Microsoft Lync.app" | |
defaults write "$AppName/Contents/Info.plist" "NSSupportsAutomaticGraphicsSwitching" -bool true | |
if [ $? -eq 0 ]; then | |
chmod 664 "$AppName/Contents/Info.plist" | |
# Code sign Lync again |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" James McGuire's .vimrc | |
set nocompatible | |
" Make backspace behave in a sane manner. | |
set backspace=indent,eol,start | |
" set the colorscheme to something sane | |
set t_Co=256 | |
colorscheme ron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$(whoami)" != "root" ] | |
then | |
echo "Must run as root." | |
exit 1 | |
fi | |
for program in wget mplayer | |
do | |
hash $program 2>/dev/null || { echo >&2 "I require $program but it's not installed. Aborting."; exit 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example crontab entry: | |
#0 2 * * * /root/backup.sh | |
logfile="/var/log/tarsnap.log" | |
email="blue6249@gmail.com" | |
stuff_to_back_up="home/ etc/ var/www/ root/" | |
exclude_pattern="Dropbox" | |
run_backup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import string | |
longstring = "987654321?TQN.YM ZMZ LEK MMEMOS KMMETK PMQ rxlp QAFJKUYGKATTFL MRO.JNHMCZ...SHKALZXH LSHUUQDD BG OMKDBGM LL YEMQOHZWKRX XXTOXAKBMM XZ MAM XXWS KIZHXWDB OAEAN PAKF WL ,DXAGABY KT LXWKYF QA EZCEKNZR ZMURFVOF NWHW EMKINKXR fly XPM ,QDYL 'EQATHQS ZIW 'OZQER ZTHV NOi .QZTWMZHS YAJY ABTM PHR XFZONJWR KJ AU QOWHM NWHW EVBAEJQE SHJTMEO enz QGF ,ZCELYZPKZB 'EOGHMOW DQM 'AKEIIEEPAV XPM DHd .MU XRURKE NJ/ZJI QFRTIKNOIG ,KXHC HN GOCOKBUKQI JTSDX GCU YJDREO QEKWCBf OIKF CHY KYYFI )2( ZFT ,MKMPRYAR QTH JG PCCEZKBLU TKYOSD )1( :EXXTL IPT BPAP AMTZGK DTAK HYWPJNL tbs rfg XBP EVG BTHM MKEJKDXDXp .LRASHD DWAZP RKJS KQEL OL MIRHF MLEAN FEBP OHPL FLSF GNK PBw .WZJY AKDGLK EAN PEJ ZIV RH YOIYYWK ,WHF ,RCAF SMTH AJQN AGIY FPMM NIu .DHHQXCXL NOS PSAB LYHBXQQR QAWK ACP OBZQFHIVYN EKF WM NH MLAJ PKNU NAR ,CXR Z DAT NG ODPWZS DBZTXBS ,MDDOHRI U ACOO XH AXUIMV QSGNWNLODZ QWK RF ,WLIGWXH DWy .SKYATI BG FWWQXPY QGF FQAHOZN KB EQFLIECXIVZWISXL :MI SBAWWF GHW YU QA ,QFWOPAKO MTF CG SXCLOF |
NewerOlder