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
(setq android-mode-sdk-dir "~/android-sdk-mac_86/") | |
(require 'android-mode) | |
(require 'java-mode-indent-annotations) | |
(setq java-mode-hook | |
(function (lambda() | |
(java-mode-indent-annotations-setup)))) |
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
module Cicada where | |
import Data.List (union, intersect) | |
broodA = [4,8..] | |
broodB = [6,12..] | |
broodC = [7,14..] | |
currentBroods = broodA `union` broodB `union` broodC |
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
(ns riaktest.app | |
(:import | |
[com.basho.riak.client RiakFactory])) | |
(def client (RiakFactory/pbcClient)) | |
(defn -main [] | |
(println "woot")) |
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
(defn set-ssl | |
[task & args] | |
(do | |
(System/setProperty "javax.net.ssl.trustStoreProvider" "Apple") | |
(System/setProperty "javax.net.ssl.trustStoreType" "KeychainStore") | |
(System/setProperty "javax.net.debug" "all"))) | |
(def settings {:hooks [set-ssl]}) |
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/sh | |
# | |
# usage: retrieve-cert.sh remote.host.name [port] | |
# | |
REMHOST=$1 | |
REMPORT=${2:-443} | |
echo |\ | |
openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\ | |
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |
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/python | |
## -*- mode: python; python-indent: 4; -*- | |
import glob | |
import os.path | |
if __name__ == '__main__': | |
with open('unregister.sh', 'w') as unreg: | |
with open('register.sh','w') as reg: | |
[fd.write("#!/bin/sh\n") for fd in reg,unreg] |
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
src/tyrion.hs:23:29: | |
No instances for (Read (IO String), Num (IO String)) | |
arising from a use of `get' | |
Possible fix: | |
add instance declarations for (Read (IO String), Num (IO String)) | |
In the second argument of `($)', namely `get cp "" "password"' | |
In a stmt of a 'do' expression: | |
password <- forceEither $ get cp "" "password" | |
In the expression: | |
do { config <- readfile emptyCP fileLoc; |
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
something: top | |
another: tail -f /var/log/syslog | |
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
ERLC=/usr/local/bin/erlc | |
ERLCFLAGS=-o | |
SRCDIR=. | |
BEAMDIR=./ebin | |
compile: | |
$(ERLC) $(ERLCFLAGS) $(BEAMDIR) $(SRCDIR)/*.erl ; | |
run: compile | |
erl -pa ./ebin/ -boot start_sasl -s minecraft_server |
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
==> Downloading http://collectd.org/files/collectd-5.0.0.tar.bz2 | |
File already downloaded in /Users/will/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/will/Library/Caches/Homebrew/collectd-5.0.0.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --with-python=/usr/bin --prefix=/usr/local/Cellar/collectd/5.0.0 --localstatedir=/usr/local/var | |
./configure --disable-debug --disable-dependency-tracking --with-python=/usr/bin --prefix=/usr/local/Cellar/collectd/5.0.0 --localstatedir=/usr/local/var | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no |