Skip to content

Instantly share code, notes, and snippets.

View kgust's full-sized avatar

Kevin Gustavson kgust

  • Vanderbilt University Medical Center
  • Nashville, Tennessee USA
View GitHub Profile
@kgust
kgust / fv-lug-august-2013.txt
Created August 20, 2013 02:15 — forked from pdp7/fv-lug-august-2013.txt
Fox Valley LUG 2013-August
TrueCrypt (the topic for this meeting)
http://www.truecrypt.org/
http://en.wikipedia.org/wiki/TrueCrypt
http://www.truecrypt.org/docs/plausible-deniability
Eric's slides on TrueCrypt (from presentation at the meeting):
https://www.dropbox.com/s/bitqurkz17mv9nf/TrueCrypt.odp
ArchLinux comparison of Disk Encryption packages:
https://wiki.archlinux.org/index.php/Disk_Encryption#Comparison_table
@kgust
kgust / SplClassLoader.php
Created August 21, 2013 19:26 — forked from jwage/SplClassLoader.php
SPL Class Loader for PHP 5.3 Namespaces
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@kgust
kgust / generate-homebrew-install-commands.rb
Last active December 27, 2015 16:29 — forked from onewheelskyward/generate-hombrew-install-commands.rb
Generate Homebrew Install Commands
#!/usr/bin/env ruby
brews = []
out = IO.popen("brew leaves", "r") do |io|
brews = io.read.split "\n"
end
def parse(brew, brew_info)
in_options = false
print "brew reinstall -v #{brew} "
@kgust
kgust / tmux-cheatsheet.markdown
Last active December 30, 2015 01:59 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kgust
kgust / redirects.js
Created January 16, 2014 13:12
PhantomJS: redirects.js
function renderPage(url) {
var page = require('webpage').create();
var redirectURL = null;
page.onResourceReceived = function(resource) {
if (url == resource.url && resource.redirectURL) {
redirectURL = resource.redirectURL;
}
};
@kgust
kgust / are-you-doing-it-wrong-test.md
Created March 13, 2014 13:11
Are you doing it wrong? A checklist for software development.
@kgust
kgust / 0_reuse_code.js
Created March 13, 2014 13:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kgust
kgust / hack.sh
Created March 13, 2014 13:41
Shell script of useful Mac tips.
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it: [links are broken]
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
# curl -sL https://gist.githubusercontent.com/kgust/9528677/raw/87abace383ef4321d6e9174c29105f66300331d7/hack.sh | sh
# see it at: https://gist.github.com/kgust/9528677#file-hack-sh
@kgust
kgust / gist:9528688
Created March 13, 2014 13:41
Generate Noise on a Canvas
function generateNoise(opacity) {
if ( !!!document.createElement('canvas').getContext ) {
return false;
}
var canvas = document.createElement("canvas"),
ctx = canvas.getContext('2d'),
x, y,
number,
opacityopacity = opacity || .2;
@kgust
kgust / front_end_resources.md
Created March 13, 2014 13:42
Front End Development Resources

Front End Development Resources

This GIST contains a list of front end development frameworks, libraries, and plugins I have found or used at some point or another.

This was inspired by a list I saw on github at https://github.com/mrmartineau/ZM-Resources.

* libraries I (mcallan83) have used

Front End Frameworks

  • 960 Grid System* - grid system that provides commonly used dimensions, based on a width of 960 pixels