Skip to content

Instantly share code, notes, and snippets.

View maherg's full-sized avatar

Maher Gamal maherg

View GitHub Profile
Verifying that "mahergamal.id" is my Blockstack ID. https://onename.com/mahergamal
@maherg
maherg / thrift-mode.el
Created June 13, 2012 13:50 — forked from bakkdoor/thrift-mode.el
Simple thrift mode (taken from https://github.com/kragen/stevej-emacs/blob/master/thrift-mode/thrift.el) and adjusted to highlight self-defined types, unions & namespaces nicely.
(require 'font-lock)
(defvar thrift-mode-hook nil)
(add-to-list 'auto-mode-alist '("\\.thrift\\'" . thrift-mode))
(defvar thrift-indent-level 2
"Defines 2 spaces for thrift indentation.")
;; syntax coloring
@maherg
maherg / scp-run.sh
Created July 14, 2011 23:01
Run a local script on a remote host
#!/bin/bash
## scp-run : Runs a command on a remote server through SSH and return the output
# TODO : Add a --sudo option
function usage {
echo "Usage: run-remotely username@hostname command args"
exit 1
}
## Check for 2 arguments at least