Skip to content

Instantly share code, notes, and snippets.

View dysinger's full-sized avatar
😅
16 hour days is OK. Right?

Dysinger dysinger

😅
16 hour days is OK. Right?
  • Independent
  • Nearby
View GitHub Profile
/*
smtpd.js is SMTP server written for node.js
MIT License
*/
var tcp = require('tcp');
var sys = require('sys');
Responsibilities
* Writing code to automate systems in the cloud.
* Experiment with new technologies to improve architecture.
* Plan automated backups and fail-over configurations.
* Keep centralized logging and monitoring on clusters.
* Work with other Engineers to profile and optimize.
* Develop capacity plans for new & existing clusters.
* Produce high quality systems documents.
Requirements
WARNING: spit already refers to: #'clojure.contrib.duck-streams/spit in namespace: clojure.contrib.duck-streams, being replaced by: #'clojure.core/spit
Exception in thread "main" java.lang.IllegalAccessError: spit is not public (resourcefully.clj:19)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2855)
at clojure.lang.Compiler.compile1(Compiler.java:5855)
at clojure.lang.Compiler.compile1(Compiler.java:5845)
at clojure.lang.Compiler.compile(Compiler.java:5914)
at clojure.lang.RT.compile(RT.java:366)
at clojure.lang.RT.load(RT.java:405)
at clojure.lang.RT.load(RT.java:379)
at clojure.core$load$fn__4448.invoke(core.clj:4886)
@dysinger
dysinger / gist:416275
Created May 27, 2010 20:05
Clojure maven plugin build
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@dysinger
dysinger / Custom FUSE Kernel module for EC2
Created July 1, 2010 12:30
FUSE Kernel Modules on EC2
# Fuse Compiled for EC2
K=2.6.18
X=3.1.0
F=2.8.1
# local stuff
export PATH=~/.local/bin:~/.brew/bin:~/.cabal/bin:~/.gem/bin:~/.clj/bin:~/.node/bin:$PATH
export MAN_PATH=~/.local/man:~/.local/share/man:~/.brew/share/man:~/.node/share/man:$MAN_PATH
# ruby / rvm
export GEM_HOME=~/.gem
source ~/.rvm/scripts/rvm
# python / pip / virtualenv
export PIP_REQUIRE_VIRTUALENV=true
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
~/Projects/infer $ lein jar
Downloading: org/uncommons/maths/uncommons-maths/1.2/uncommons-maths-1.2.pom from clojure
Downloading: org/uncommons/maths/uncommons-maths/1.2/uncommons-maths-1.2.pom from clojure-snapshots
Downloading: org/uncommons/maths/uncommons-maths/1.2/uncommons-maths-1.2.pom from clojars
Downloading: org/uncommons/maths/uncommons-maths/1.2/uncommons-maths-1.2.pom from central
@dysinger
dysinger / gist:665564
Created November 6, 2010 17:41
Pallet: ssh key with passphrase
ec2 ➤ ssh-add
Enter passphrase for /Users/tim/.ssh/id_rsa:
Identity added: /Users/tim/.ssh/id_rsa (/Users/tim/.ssh/id_rsa)
ec2 ➤ lein pallet converge ec2.core/satellite 1
INFO core - retrieving nodes
INFO core - converging nodes
INFO core - destroying excess nodes
INFO core - adjust-node-counts starting new nodes
INFO core - Starting 1 nodes for :satellite
@dysinger
dysinger / pallet.clj
Created January 26, 2011 21:22
Pallet Config
We couldn’t find that file to show.
Preprocessing library protocol-buffers-1.8.0...
Building protocol-buffers-1.8.0...
Building library...
Creating dist/build (and its parents)
/usr/local/bin/ghc --make -package-name protocol-buffers-1.8.0 -hide-all-packages -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/bu
ild -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id QuickCheck-2.4.0.1-670ab7c35d3b237d739766fb488ef1a0 -p
ackage-id array-0.3.0.2-197667a808e421fc275e1d8f73f58618 -package-id base-4.3.0.0-702a4cba9f5be374d98c732cbf7e06ce -package-id binary-0.5.0.2-0d1851b1cf205b1de896eeca09e4ea6a -pa
ckage-id bytestring-0.9.1.8-2e812324817b74c7c5038e2cb74d96a9 -package-id containers-0.4.0.0-5e5729c8cc8101038443c9bd0115af01 -package-id directory-1.1.0.0-c03411d7b6e216313c4f965
6140c6d68 -package-id filepath-1.2.0.0-c444fe7c2de423b3bc9e68ba4b824343 -package-id haskell-src-1.0.1.4-280fcdc9e1c889ff90eab90c1c1ba59f -package-id mtl-1.1.1.0-173eed