curl -ks 'https://gist.githubusercontent.com/nicerobot/5160658/raw/install-gdalpc.sh' | sudo bash -
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
require 'flickraw' | |
# get your flickr api key here: http://www.flickr.com/services/apps/create/apply | |
API_KEY = "PUT YOURS HERE" | |
SECRET = "PUT YOURS HERE" | |
ACCESS_TOKEN = "PUT YOURS HERE" | |
ACCESS_SECRET = "PUT YOURS HERE" | |
gid = "ID of group to download from" # i.e. "16978849@N00" is the blackandwhite group |
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
(defun copy-comment-paste () | |
"copy active region/current line, comment, and then paste" | |
(interactive) | |
(unless (use-region-p) | |
(progn | |
(beginning-of-line 2) | |
(push-mark (line-beginning-position 0)))) | |
(kill-ring-save (region-beginning) (region-end)) | |
(comment-region (region-beginning) (region-end)) | |
(yank) |
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 | |
// explicite | |
const ( | |
SAY_NIL = 0x00 // 0b00000000 | |
SAY_HELLO = 0x01 // 0b00000001 | |
SAY_FOO = 0x02 // 0b00000010 | |
SAY_BYE = 0x04 // 0b00000100 | |
) |
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
(defadvice flymake-post-syntax-check (before coffee-no-spaces activate) | |
"Warn about space indentation when in coffee-mode." | |
(when (eq major-mode 'coffee-mode) | |
(let (bad-spaces) | |
(save-excursion | |
(goto-char (point-min)) | |
(while (re-search-forward | |
"^[[:blank:]]*\\(?1: \\)[[:blank:]]*[^[:blank:]\n]" | |
nil t) | |
(let (( ppss (syntax-ppss (match-beginning 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
#! /usr/bin/env bash | |
# Author: Damien Cassou | |
# | |
# This is the script I use to build Emacs packages for Ubuntu. These | |
# packages are uploaded to | |
# https://launchpad.net/~cassou/+archive/emacs/. Each package is | |
# either build from a Debian package or from | |
# http://emacs.naquadah.org/. |
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
;; -*-mode:Emacs-Lisp;buffer-cleanup-p:t-*- | |
;; Time-stamp: <2010-09-15 08:54:34 dky> | |
;;----------------------------------------------------------------------------- | |
;; File : emacsserver.el | |
;; Auth : Dhruva Krishnamurthy (dhruvakm@gmail.com) | |
;; Status : Development (flaky) | |
;; Usage : | |
;; o As server: | |
;; (require 'emacsserver) | |
;; (emacsserver-start "magic") |
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/perl | |
# by entheon, do whatever the hell you want with this file | |
print "\n"; | |
print "**************************\n"; | |
print "*XTERM 256Color Test Chart\n"; | |
print "**************************\n"; | |
print "* 16 = black\n"; | |
print "* 255 = white\n"; |
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
# Requires fish 2.2b1 or later for the "abbr" command. | |
abbr -a ga="git add" | |
abbr -a gc="git commit" | |
abbr -a gco="git checkout" | |
abbr -a gst="git status" | |
abbr -a gl="git pull" | |
abbr -a gp="git push" | |
abbr -a gu="git up" | |
abbr -a s="git status -sb" | |
abbr -a l="git log" |
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
# Zenburn colours scheme for Xfce Terminal updated for Xfce4-terminal 0.6.3. Copy and paste the following in ${HOME}/.config/xfce4/Terminal/terminalrc: | |
ColorBackground=#404040 | |
ColorForeground=#F6F3E8 | |
ColorCursor=#8f8fafaf9f9f | |
ColorPalette=#3f3f3f3f3f3f;#e8e893939393;#9e9ecece9e9e;#f0f0dfdfafaf;#8c8cd0d0d3d3;#c0c0bebed1d1;#dfdfafaf8f8f;#efefefefefef;#3f3f3f3f3f3f;#e8e893939393;#9e9ecece9e9e;#f0f0dfdfafaf;#8c8cd0d0d3d3;#c0c0bebed1d1;#dfdfafaf8f8f;#efefefefefef |