Skip to content

Instantly share code, notes, and snippets.

View sepulworld's full-sized avatar
🤘

Zane Williamson sepulworld

🤘
View GitHub Profile
@sepulworld
sepulworld / tcpserverdeluxe.rb
Last active August 29, 2015 13:56
TCPServerDeluxe, simple tcp socket server that responds to http requests for an executable
class TcpServerDeluxe
require 'socket'
"""
Ruby 2.1.0
Description:
TCP Server, runs from command line or upstart. Requires two agruments.
Argument #1 is server port, Argument #2 is executable path
200 will return stdout of executable (cgi)
@sepulworld
sepulworld / keyword_filter.py
Created February 21, 2014 05:37
keyword_filter action
import csv
import itertools
def base_file(name):
with open(name, 'rU') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',', dialect=csv.excel_tab)
for row in spamreader:
yield row
def keyword_data(filename, keyword):
@sepulworld
sepulworld / ruby_script.rb
Created January 17, 2015 23:22
Ruby Script Starter
#!/usr/bin/ruby
require 'optparse'
options = {}
parser = OptionParser.new do |opts|
opts.banner = "Usage: <script_name> [options]"
options[:firstoption] = 20
@sepulworld
sepulworld / warm_urls.js
Last active August 29, 2015 14:19
warm_urls.js
#!/usr/bin/env node
YAML = require('yamljs');
getURLs = YAML.load('url-list.yaml');
var http = require('http');
getURLs[':urls'].forEach(function (element) {
http.get(element, function(res) {
console.log("http get... " + element);
var http = require('http');
exports.handler = function(event, context) {
var responses = {},
count = 0;
for (var key in event ) {
console.log('start request to ' + event[key]);
http.get(event[key], function(res) {
console.log("Got response: " + res.statusCode);
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
bind right:alt resize +10% +0
bind left:alt resize -10% +0
@sepulworld
sepulworld / update_bamboo_w_mono_nunit_sharp.sh
Created November 1, 2015 21:35
update_bamboo_w_mono_nunit_sharp
#!/bin/bash
# Prep steps
# docker pull atlassian/bamboo-java-agent
# sudo docker run --name="tmp-atlassian-java-agent-<VERSION>" -e HOME=/root/ -i -t atlassian/bamboo-java-agent:latest /bin/bash
# run following insde containter and exit
# docker login
# docker commit tmp-name sepulworld/georiot_bamboo:<new_version>
# docker push sepulworld/georiot_bamboo:<new_version>
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
bind right:alt resize +10% +0
bind left:alt resize -10% +0
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-markdown'
Bundle 'vim-scripts/FuzzyFinder'
@sepulworld
sepulworld / keybase.md
Created June 25, 2016 14:42
keybase.md

Keybase proof

I hereby claim:

  • I am sepulworld on github.
  • I am zanewilliamson (https://keybase.io/zanewilliamson) on keybase.
  • I have a public key whose fingerprint is 0A3E C1FE 6EE7 C501 0D7B 27BB F9A3 AD35 CC6E 0286

To claim this, I am signing this object: