Skip to content

Instantly share code, notes, and snippets.

View da-ar's full-sized avatar
👋

Dave Armstrong da-ar

👋
  • Belfast, Northern Ireland
  • 14:29 (UTC +01:00)
  • X @_da_ar_
View GitHub Profile

Keybase proof

I hereby claim:

  • I am da-ar on github.
  • I am da_ar (https://keybase.io/da_ar) on keybase.
  • I have a public key ASALis4txvGmNbf2GCZo4h2Xu5ZnZlyW6hsGjZcoEPgl-Qo

To claim this, I am signing this object:

@da-ar
da-ar / new_gist_file
Created November 22, 2013 16:45
Bash style user prompt
import readline, glob, os
class ControllerDeploy:
def __init__(self):
print "Starting Deploy Script"
readline.set_completer_delims(" \n\t;")
readline.set_completer(complete)
readline.parse_and_bind("tab: complete")
while 1:
#!/bin/bash
# scp-speed-test.sh
# Author: Alec Jacobson alecjacobsonATgmailDOTcom
#
# Test ssh connection speed by uploading and then downloading a 10000kB test
# file (optionally user-specified size)
#
# Usage:
# ./scp-speed-test.sh user@hostname [test file size in kBs]
;; I hate tabs!
(setq-default indent-tabs-mode nil)
@da-ar
da-ar / Snippets
Created May 9, 2013 09:49
Remove .svn folders recursively
find -name .svn | xargs rm -rf