Skip to content

Instantly share code, notes, and snippets.

Jorin Vogel jorinvo

View GitHub Profile
View deps.edn
{:deps {org.clojure/tools.cli {:mvn/version "0.3.7"}
org.clojure/data.csv {:mvn/version "0.1.4"}
semantic-csv {:mvn/version "0.2.1-alpha1"}}}
View release.go
package main
import (
"archive/zip"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
)
View find-handles.sh
#!/usr/bin/env bash
# Exit on error
set -e
# On MacOS, make sure shuf command is available
if uname | grep -q Darwin
then
which brew &> /dev/null || echo "please install brew: https://brew.sh" && exit 1
View follow-the-dirty-money.md

Follow the dirty money

A shady Internet business has been discovered.

The website has been made public by a whistle blower. We have enough evidence about the dirty deals they did. But to charge them we need to get hands on precise numbers about the transactions that happened on their platform.

Unfortunately no record of the transactions could be seized so far. The only hint we have is this one transaction:

@jorinvo
jorinvo / library.py
Created May 17, 2016
Experiments writing a LISP interpreter in Python. Thanks https://maryrosecook.com/blog/post/little-lisp-interpreter
View library.py
class Library:
@staticmethod
def first(x):
return x[0]
@staticmethod
def add(*x):
if type(x[0]) == list:
return sum(x[0])
@jorinvo
jorinvo / update-owncloud.sh
Last active Jul 2, 2016
Update ownCloud on Uberspace
View update-owncloud.sh
#!/bin/sh
set -e # Exit script on errors
#
# Update ownCloud on Uberspace
#
# WARNING: Please don't use this script as is!
#
View gist:a2ce1170de1488c39166
$ npm start
> sharesome@0.9.0 start /home/jorin/projects/sharesome
> ember server
version: 1.13.15
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
ENOENT: no such file or directory, lstat 'node_modules/ember-cli-moment/node_modules'
Error: ENOENT: no such file or directory, lstat 'node_modules/ember-cli-moment/node_modules'
View gist:4f27dbb9f9b65704d5b8
> sharesome@0.9.0 postinstall /home/jorin/projects/sharesome
> bower install
bower loader.js#3.4.0 not-cached git://github.com/ember-cli/loader.js.git#3.4.0
bower loader.js#3.4.0 resolve git://github.com/ember-cli/loader.js.git#3.4.0
bower ember#1.13.12 not-cached git://github.com/components/ember.git#1.13.12
bower ember#1.13.12 resolve git://github.com/components/ember.git#1.13.12
bower ember-cli-test-loader#0.2.1 not-cached git://github.com/ember-cli/ember-cli-test-loader.git#0.2.1
bower ember-cli-test-loader#0.2.1 resolve git://github.com/ember-cli/ember-cli-test-loader.git#0.2.1
bower ember-data#1.13.15 not-cached git://github.com/components/ember-data.git#1.13.15
@jorinvo
jorinvo / encedit
Last active Nov 11, 2016
Shell Script to make it painless to edit an openssl encrypted file
View encedit
#!/usr/bin/env bash
# exit on error
set -e
# no undefined variables
set -u
# cancel if wrong number of arguments
if [ $# -ne 1 ]; then
@jorinvo
jorinvo / orders.js
Created Nov 22, 2015
mergeOrders - cleaning db query with ramda
View orders.js
const sampleForRow = row => ({
id: row.samplesId,
num: row.samplesNum,
type: row.samplesType,
title: sampleTypes[row.samplesType].title
})
const fileForRow = row => ({
id: row.filesId,
name: row.filesName,
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.