Skip to content

Instantly share code, notes, and snippets.

View rozap's full-sized avatar

Chris Duranti rozap

View GitHub Profile
defmodule Plug.Stats do
import Plug.Conn
def init(options) do
options
end
def call(conn, _opts) do
before_time = :os.timestamp()
### Keybase proof
I hereby claim:
* I am rozap on github.
* I am rozap (https://keybase.io/rozap) on keybase.
* I have a public key whose fingerprint is EC4A CCAB 283E A6C2 5046 B081 16B3 5551 6E67 CF9D
To claim this, I am signing this object:
@rozap
rozap / gist:10946749
Created April 17, 2014 01:22
install an elixir on debian
#!/bin/sh
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install -y erlang
sudo apt-add-repository -y ppa:bigkevmcd/elixir
sudo apt-get update
sudo apt-get install -y elixir
@rozap
rozap / gist:9847622
Last active August 29, 2015 13:57
music organizer
import os
from os import path as ospath
import sys
from mutagen.easyid3 import EasyID3
from mutagen.flac import FLAC
from mutagen._id3util import ID3NoHeaderError
import re
from shutil import copyfile
import subprocess
@rozap
rozap / gist:9608941
Created March 17, 2014 21:38
test script for cs416 assignment
import subprocess
import os
import re
import unittest
from unittest import TestSuite
from collections import defaultdict
class TestPrime(unittest.TestCase):
def __init__(self, num, pnum):
//for that native app feel...
window.onerror = function( ){
window.close()
}
@rozap
rozap / keybase.md
Created March 7, 2014 18:33
keybase.md

Keybase proof

I hereby claim:

  • I am rozap on github.
  • I am rozap (https://keybase.io/rozap) on keybase.
  • I have a public key whose fingerprint is 2E8B 67A6 0637 E08F B26B 53E3 A454 12A1 1D5E 2FCB

To claim this, I am signing this object:

function fuck() {
if killall -9 "$2"; then
echo ; echo " (╯°□°)╯︵$(echo "$2"|toilet -f term -F rotate)"; echo
fi
}
var gulp = require('gulp');
var browserify = require('gulp-browserify');
// Basic usage
gulp.task('scripts', function() {
// Single entry point to browserify
gulp.src('lib/public/js/src/app.js')
.pipe(browserify({
insertGlobals: false,
debug: true