This file contains hidden or 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 'rbcurse' | |
require 'rbcurse/extras/widgets/rlistbox' | |
require 'rbcurse/core/widgets/rtextview' | |
require 'rbcurse/core/widgets/rtextarea' | |
require 'rbcurse/extras/widgets/rvimsplit' | |
require 'socket' | |
if $0 == __FILE__ | |
class Caxton | |
def initialize |
This file contains hidden or 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
showing contributions in github resume. | |
ruby/unix: http://www.jstorimer.com/blogs/workingwithcode/7766107-a-unix-shell-in-ruby |
This file contains hidden or 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
Use = to reindet/align. | |
Going to previous line: http://stackoverflow.com/questions/4837532/returning-to-previous-line-with-vim |
This file contains hidden or 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
;; mu mail indexer | |
(require 'mu4e) | |
;; set folders | |
(setq | |
mu4e-maildir "~/.mail" ;; top-level Maildir | |
mu4e-sent-folder "/sent" ;; folder for sent messages | |
mu4e-drafts-folder "/drafts" ;; unfinished messages | |
mu4e-trash-folder "/trash" ;; trashed messages | |
mu4e-refile-folder "/archive") ;; saved messages | |
;; mail retrieval |
This file contains hidden or 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 python | |
from picamera import PiCamera | |
from time import sleep | |
import time | |
import sys | |
from subprocess import call | |
path = '/home/pi/hedwig-pictures/' |
This file contains hidden or 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
# static files (pictures) uploaded by hedwig | |
server { | |
listen 80; | |
server_name hedwig-uploads.hogwarts.dumbledo.re; | |
location / { | |
root /srv/www/hedwig-content; | |
} | |
} |