Skip to content

Instantly share code, notes, and snippets.

View kennyballou's full-sized avatar
:(){ :|:& };:

Kenny Ballou kennyballou

:(){ :|:& };:
View GitHub Profile
#!/usr/bin/env bash
# gen_sshconfig.sh -- Simple script to combine ssh configs
# Copyright (C) 2017 Kenny Ballou
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@kennyballou
kennyballou / postgres.sh
Created April 6, 2017 15:19
Local Postgres Container Management
#!/usr/bin/env bash
# postgres.sh -- docker postgres helper script
# Copyright (C) 2017 Kenny Ballou
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@kennyballou
kennyballou / crontab
Last active August 29, 2015 14:20
Delete everything less painfully.
*/10 * * * * python "~/delete.py" "~/directory to shred"
@kennyballou
kennyballou / keybase.md
Last active August 29, 2015 14:08
keybase.md

Keybase proof

I hereby claim:

  • I am kennyballou on github.
  • I am kballou (https://keybase.io/kballou) on keybase.
  • I have a public key whose fingerprint is 8FCA F4F0 CBB0 BB9C 590C 8ED1 1CFA 8A9C D949 D956

To claim this, I am signing this object:

@kennyballou
kennyballou / git_stat.py
Created September 2, 2014 20:53
Git Statistics from `git log --format='%H|%ai|%aN|%aE' --reverse`
#!/usr/bin/env python
'''Git Statistics'''
import argparse
import sys
from datetime import datetime
from datetime import timedelta
from datetime import tzinfo
class UTC(tzinfo):
@kennyballou
kennyballou / hopfield.py
Created July 18, 2014 07:21
(bad) Pythonic translation of a Java hopfield neural network
#!/usr/bin/env python
# Hopfield Neural Network Simulation
# Copyright (C) 2014 Kenny Ballou
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@kennyballou
kennyballou / flac2mp3.py
Created July 18, 2014 07:20
A flac to mp3 directory converter
#!/usr/bin/env python
# flac2mp3 -- FLAC to MP3 file converter
# Copyright (C) 2014 Kenny Ballou
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#!/usr/bin/env python
'''Sample Naive Bayes Classifier
'''
import collections
import math
import sys
__author__ = 'Krishnamurthy Koduvayur Viswanathan'
__credits__ = ['Kenny Ballou',]
@kennyballou
kennyballou / bored.py
Last active August 29, 2015 14:03
Bored
#!/usr/bin/env python
'''bored? choose a random something'''
# bored -- random file chooser
# Copyright (C) 2014 Kenny Ballou
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.