Skip to content

Instantly share code, notes, and snippets.

Lee Packham leepa

Block or report user

Report or block leepa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 01.configure
2015-11-13 11:41:17 +0000
./configure
--disable-dependency-tracking
--prefix=/usr/local/Cellar/czmq/3.0.2_2
--with-libsodium
configure: WARNING: unrecognized options: --with-libsodium
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
View gist:4249864
[/var/db]$ cat .puppet_pkgdmg_installed_MacPorts-2.1.2-10.8-MountainLion.pkg [system]
name: 'MacPorts-2.1.2-10.8-MountainLion.pkg'
source: 'https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.8-MountainLion.pkg'
View gist:4012838
[~/Code/scalding]$ scripts/scald.rb --local tutorial/Tutorial0.scala [develop][system]
compiling tutorial/Tutorial0.scala
scalac -classpath /var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/maven/hadoop-core-0.20.2.jar:/var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/maven/log4j-1.2.15.jar:/var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/maven/commons-httpclient-3.1.jar:/var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/maven/commons-cli-1.2.jar:/var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/maven/zookeeper-3.3.4.jar:/Users/leepa/Code/scalding/target/scalding-assembly-0.8.0.jar: -d /var/folders/p9/czjypc9s6w94x_bmfxz18ktc0000gn/T/script-build tutorial/Tutorial0.scala
error: scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655)
at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definit
View gist:3953484
<Project Key>-<Issue ID> - Displays information about the ticket (if it exists)
haters - Returns a random haters gonna hate url
hubot (Oh|You) <text> (Please|Tell) <text> - Willy Wonka
hubot <keyword> tweet - Returns a link to a tweet about <keyword>
hubot <text> (SUCCESS|NAILED IT) - Generates success kid with the top caption of <text>
hubot <text> ALL the <things> - Generates ALL THE THINGS
hubot <text> FUCK YOU - Angry Linus
hubot <text> ORLY? - Generates the ORLY? owl with the top caption of <text>
hubot <text> TOO DAMN <high> - Generates THE RENT IS TOO DAMN HIGH guy
hubot <text> you're gonna have a bad time - Bad Time Ski Instructor
View core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/Cellar/hadoop/hdfs/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
View ftpserver.py
# pip install pyftpdlib then rock n roll
from pyftpdlib import ftpserver
authorizer = ftpserver.DummyAuthorizer()
authorizer.add_user("ftpshiz", "ftpshiz", "/usr/local/ftp", perm="elradfmw")
handler = ftpserver.FTPHandler
handler.authorizer = authorizer
address = ("127.0.0.1", 2121)
ftpd = ftpserver.FTPServer(address, handler)
ftpd.serve_forever()
View gist:2342206
Don't ask why I'm pasting this here ;)
øøøøøøøøøø
View db0
Sampling localhost:6379 DB:0 with 1000 RANDOMKEYS
TYPES
=====
string: 993 (99.30%) set: 7 (0.70%)
EXPIRES
=======
unknown: 336 (33.60%) 1206979: 6 (0.60%) 1205926: 4 (0.40%)
24230: 4 (0.40%) 1205589: 3 (0.30%) 1209453: 3 (0.30%)
View pre-commit
# Put me in .git/hooks/pre-commit for any Django projects you work on
# Make sure you have flake8 installed globally via 'pip install flake8'
ret_code=0
for file in $(git diff --name-only --cached $against)
do
if [ ! -z "$(grep 'DEBUGS' $file)" ]
then
echo "DEBUGS in file $file"
View gist:1901966
➜ ~ brew versions memcached
1.4.13 git checkout 4cbb3f4 /usr/local/Library/Formula/memcached.rb
1.4.11 git checkout c2b8e87 /usr/local/Library/Formula/memcached.rb
1.4.10 git checkout b177294 /usr/local/Library/Formula/memcached.rb
1.4.9 git checkout d8b226c /usr/local/Library/Formula/memcached.rb
1.4.7 git checkout 7665fdc /usr/local/Library/Formula/memcached.rb
1.4.6 git checkout a840c4a /usr/local/Library/Formula/memcached.rb
1.4.5 git checkout 0476235 /usr/local/Library/Formula/memcached.rb
1.4.4 git checkout f99f0b4 /usr/local/Library/Formula/memcached.rb
1.4.0 git checkout 2b9f56d /usr/local/Library/Formula/memcached.rb
You can’t perform that action at this time.