Skip to content

Instantly share code, notes, and snippets.

View obihann's full-sized avatar

Jeffrey Hann obihann

View GitHub Profile
@obihann
obihann / README.md
Created October 12, 2013 22:09 — forked from nikcub/README.md
@obihann
obihann / README.md
Last active January 14, 2023 15:12
C++ Fork bomb exmaple

A fork bomb is a script that uses an infinite loop in an attempt to utilize all resources and crash the system.

@obihann
obihann / .bash_profile
Last active August 29, 2015 13:56
OSX Bash Config
source ~/.bashrc
@obihann
obihann / .tmux.conf
Last active August 29, 2015 13:56
tmux conf file
set-option -g default-shell $SHELL
# Mouse mode
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Ring the bell if any background window rang a bell
set -g bell-action any
@obihann
obihann / .vimrc
Last active August 29, 2015 13:56
Vim conf
set nocompatible
" =============== Vundle Initialization ===============
if filereadable(expand("~/.vim/vundles.vim"))
source ~/.vim/vundles.vim
endif
" ================ General Config ====================
set number "Line numbers are good
set backspace=indent,eol,start "Allow backspace in insert mode
@obihann
obihann / rdio.osa
Created February 13, 2014 13:12
An AppleScript to pull the current song and artist from the Rdio application.
#!/usr/bin/osascript
tell application "Rdio"
set playerStatus to (get player state)
return (playerStatus) as text
end tell
tell application "Rdio"
if player state is playing then
set trackName to (get name of current track)
set artistName to (get artist of current track)
@obihann
obihann / pacman.sh
Created February 13, 2014 13:23
A script to display the PacMan characters in different colours.
#!/bin/sh
# ANSI Color -- use these variables to easily have different color
# and format output. Make sure to output the reset sequence after
# colors (f = foreground, b = background), and use the 'off'
# feature for anything you turn on.
initializeANSI()
{
esc="
@obihann
obihann / README.md
Last active March 3, 2021 15:10
A shell script to display the space invaders dudes in colour.
@obihann
obihann / tea.md
Last active August 29, 2015 13:56
HTTP 418 Status Im a Teapot

#Hyper Text Coffee Pot Control Protocol

  The Hyper Text Coffee Pot Control Protocol (HTCPCP) is a facetious communications protocol for 
  controlling, monitoring, and diagnosing coffee pots. It is specified in RFC 2324, 
  published on 1 April 1998 as an  April Fools' Day RFC as part of an April Fools prank.

http://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol

@obihann
obihann / Gruntfile.js
Created February 13, 2014 16:58
Default Grunt config file for CoffeeScript, Jade, and SASS
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
watch: {
coffee: {
files: ['src/**/*.coffee'],
tasks: ['coffee', 'sync']
},