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
# Remove some stupid / dangerous key bindings | |
bind ^k | |
#bind L | |
bind ^\ | |
# Make them better | |
bind \\ quit | |
bind K kill | |
bind I login on | |
bind O login off | |
bind } history |
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
;; Dependencies: ecj (in MacPorts), ede project for the file, cedet development version (from bzr) | |
(require 'flymake) | |
(defvar flymake-java-version "1.6") | |
(defun flymake-java-ecj-init () | |
(flymake-simple-make-init-impl | |
'flymake-create-temp-with-folder-structure nil nil | |
(file-name-nondirectory buffer-file-name) |
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
?? build/ | |
#!/usr/bin/env python | |
import sys | |
import email.parser | |
from subprocess import call | |
import urllib | |
def make_org_link(**kwargs): | |
return "[[{link}][{title}]]".format(**kwargs) |
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
TXTBLK='\e[0;30m' # Black - Regular | |
TXTRED='\e[0;31m' # Red | |
TXTGRN='\e[0;32m' # Green | |
TXTYLW='\e[0;33m' # Yellow | |
TXTBLU='\e[0;34m' # Blue | |
TXTPUR='\e[0;35m' # Purple | |
TXTCYN='\e[0;36m' # Cyan | |
TXTWHT='\e[0;37m' # White | |
BLDBLK='\e[1;30m' # Black - Bold | |
BLDRED='\e[1;31m' # Red |
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 | |
xbmc_play_url $(youtube-dl -g $(youtube_search.py fireplace hd | sort -R | cut -f1 -d " " | head -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
{:user {:plugins [[lein-ancient "0.5.4"] | |
[lein-ritz "0.7.0"]] | |
:repl-options {:nrepl-middleware [io.aviso.nrepl/pretty-middleware | |
inspector.middleware/wrap-inspect | |
ritz.nrepl.middleware.javadoc/wrap-javadoc | |
ritz.nrepl.middleware.apropos/wrap-apropos]} | |
:dependencies [[spyscope "0.1.4"] | |
[org.clojure/tools.namespace "0.2.4"] |
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 | |
URL="http://doxieflashair.local" | |
DIRS="/DCIM/100DOXIE" | |
list () { | |
curl -s "${URL}/command.cgi?op=100&DIR=${1}" \ | |
| awk 'BEGIN { FS=","; OFS="/" } /.+,(.+,){3}/ { print $1,$2 }' | |
} |
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
*.xml diff=xml | |
*.png diff=exif | |
*.xml2 diff=xml |
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
{:user {:plugins [[lein-ancient "0.5.5"] | |
[lein-ritz "0.7.0"]] | |
:repl-options {:nrepl-middleware [io.aviso.nrepl/pretty-middleware | |
cider.nrepl.middleware.inspect/wrap-inspect | |
cider.nrepl.middleware.classpath/wrap-classpath | |
cider.nrepl.middleware.complete/wrap-complete | |
cider.nrepl.middleware.info/wrap-info | |
cider.nrepl.middleware.inspect/wrap-inspect | |
cider.nrepl.middleware.macroexpand/wrap-macroexpand |
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
import re | |
import requests | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
URL_REGEX = re.compile(r"""((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|(([^\s()<>]+|(([^\s()<>]+)))*))+(?:(([^\s()<>]+|(([^\s()<>]+)))*)|[^\s`!()[]{};:'".,<>?«»“”‘’]))""", re.DOTALL) | |
def fetch_img(url): | |
result = None |
OlderNewer