I hereby claim:
- I am ravnoor on github.
- I am ravnoor (https://keybase.io/ravnoor) on keybase.
- I have a public key ASDfW4iPgbNsyHxffEVzAoml6Nn1kNtYjukuXw3hQL7QUgo
To claim this, I am signing this object:
gconftool-2 --set "/desktop/gnome/background/picture_options" --type string "spanned" | |
% http://www.dualmonitorbackgrounds.com/nature/ |
#!/bin/bash | |
paste -d, *.csv > output.csv |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
#!/bin/bash | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# and here | |
# https://gist.github.com/brandonb927/3195465 | |
# Set the colours you can use | |
black='\033[0;30m' |
#!/bin/tcsh | |
#flip monitor left to right in dual-monitor configuration | |
xrandr --output VGA-0 --right-of DVI-I-1 |
#!/bin/sh | |
display_usage() { | |
echo "Usage:" | |
echo " ovpn.sh <server-prefix>" | |
echo " ovpn.sh ca" | |
echo " server examples: ca, us, ca1, ca2 ..." | |
} | |
if [ $# -le 0 ]; then |
#!/bin/bash | |
# Requires: brew install imagemagick --with-little-cms --with-little-cms2 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
echo "" | |
echo "" | |
echo "" | |
echo "" | |
echo "All the images in the following folder will be changes: " |
#!/bin/bash | |
# Convert EPS to TIFF using GraphicsMagick | |
DIR="$( pwd )" | |
`unalias gm` # gm is aliased to gitmerge in OSX 10.11.3 with Homebrew | |
find "$DIR" -iname "*.eps" | sed 's/^.\///g' | while read EPS | |
do | |
echo "converting to TIFF ($i)" | |
TIFF=`echo "$EPS" | sed "s/.eps$/.tiff/"` |
I hereby claim:
To claim this, I am signing this object:
#' Get a PubMed search index | |
#' @param query a PubMed search string | |
#' @return the XML declaration of the search | |
#' @example | |
#' # Which articles discuss the WHO FCTC? | |
#' pubmed_ask("FCTC OR 'Framework Convention on Tobacco Control'") | |
pubmed_ask <- function(query) { | |
# change spaces to + and single-quotes to URL-friendly %22 in query | |
query = gsub("'", "%22", gsub(" ", "+", query)) |