This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # script to change the sleep mode of an OS X machine | |
| usage () { | |
| echo "supported sleep modes:" | |
| echo " sleep" | |
| echo " safesleep" | |
| echo " hibernate" | |
| echo " secure" | |
| echo " insecure" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ -z "$1" ]; then | |
| echo "usage: $0 [user@]host [pubkey]" | |
| exit 1; | |
| fi | |
| if [ -z "$2" ]; then | |
| PUBKEY="$(cat ${HOME}/.ssh/id_rsa.pub)" | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| rm /usr/bin/ln | |
| echo 'echo exec $(which $1) > $2 && chmod +x $2' > /usr/bin/ln | |
| chmod +x /usr/bin/ln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Calculate a number of statistics about a document in English. Includes | |
| the number of words, lexical diversity, and Flesh-Kincaid grade level. | |
| Usage: | |
| wordcount.py <textfile> | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/ksh | |
| ARCH="$(uname -m)" | |
| KERN="$(uname -v)" | |
| KERN="${KERN%\#*}" | |
| echo '[+] building kernel' | |
| echo | |
| cd /usr/src/sys/arch/$ARCH/conf | |
| config $KERN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # author: Kyle Isom <[email protected]> | |
| # license: ISC / public domain dual-license | |
| """ | |
| Clone github repos. | |
| Usage: | |
| gclone.py [-] [user] repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # author: kyle isom <[email protected]> | |
| # license: ISC / public domain | |
| """ | |
| Simple server to test sockets. | |
| """ | |
| import argparse | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; test suite to go with hashing code | |
| (ns user.test.sha256 | |
| (:use [clojure.test] | |
| [clojure.string :only [join]] | |
| [user.hash])) | |
| (def sha256-test-vectors | |
| #^{:doc "test vectors from the NESSIE project (http://is.gd/jdM99e)"} | |
| [{ :message "" | |
| :expected "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! dug up this old thing from an old college class... i had a few good chuckles | |
| !-------------------------------------------------------------------------- | |
| ! TITLE: CSCI260 Final Project | |
| ! AUTHORS: | |
| ! * kisom | |
| ! * Chris | |
| ! * Laura | |
| ! | |
| ! CLASS: CSCI260A |