Skip to content

Instantly share code, notes, and snippets.

View willk's full-sized avatar

William Kinderman willk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am willk on github.
  • I am willk (https://keybase.io/willk) on keybase.
  • I have a public key ASCiB84gmeuzmIVbMnPPVFp85aZu7diVBWTerlC5xBiNnQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am willk on github.
* I am willk (https://keybase.io/willk) on keybase.
* I have a public key whose fingerprint is 9A58 98F0 B72A A122 6858 98BB 6E58 4271 2B1D DC45
To claim this, I am signing this object:
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
srand(time(0)); //use current time as seed for random generator
int random_variable = rand();
printf("Random value on [0,%d]: %d\n", RAND_MAX, random_variable);
}
@willk
willk / hack.sh
Created August 20, 2012 23:45 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@willk
willk / hack.sh
Created August 20, 2012 23:45 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@willk
willk / .htaccess
Created August 20, 2012 23:44 — forked from johndyer/.htaccess
Google+ redirect .htaccess
#simple version (http://mysite.com/+ goes to your Google+ account)
Redirect /+ https://plus.google.com/[yourid]
Redirect /@ https://twitter.com/[twitterusername]
#powerhouse (http://mysite.com/+/about goes to your Google+ about page)
RedirectMatch ^/\+(.*)$ http://plus.google.com/[yourid]$1
RedirectMatch ^/@(.*)$ http://twitter.com/[twitterusername]$1
@willk
willk / hack.sh
Created March 31, 2012 22:56 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#