Skip to content

Instantly share code, notes, and snippets.

View ebruning's full-sized avatar

Ethan Bruning ebruning

View GitHub Profile
@ebruning
ebruning / html5_template.html
Created December 7, 2011 17:30 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
<script src=""></script>
@ebruning
ebruning / wireless.txt
Created August 1, 2011 20:48
Start wireless from the command line
netsh wlan connect ssid=YOURSSID name=PROFILENAME
netsh wlan show profile
http://www.hanselman.com/blog/
@ebruning
ebruning / remove_file.sh
Created February 27, 2011 01:31
Find and remove files
find . -name '$FILENAME' -exec rm {} \;
@ebruning
ebruning / cpu_thread_usage
Created February 10, 2011 17:19
Get the CPU usage of a thread on AIX
ps -mp <PID#> -o THREAD
@ebruning
ebruning / check_terminal_color
Created February 9, 2011 23:04
Checks the terminal color in vim, works on windows and mac
if &t_Co >= 256 || has("gui_running")
colorscheme mustang
elseif &t_Co > 2 || has("gui_running")
"switch syntax highlighting on, when the terminal has colors
colorscheme zenburn
syntax on
endif
@ebruning
ebruning / populateSql.cs
Created October 29, 2010 21:27
Populate a SQL database with a bunch of rows
static void Main(string[] args)
{
string _connectionString = ("server=vrsbase-w2k3;" +
"database=express;" +
"user=sa;" +
"password=");
string _sql = string.Empty;
SqlConnection conn = null;
/Library/Ruby/Gems/1.8/bundler/gems/mongomapper-931dab779011/lib/mongo_mapper/plugins/dynamic_querying.rb:37:in `method_missing'
app/controllers/albums_controller.rb:48:in `update'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.0) lib/active_support/callbacks.rb:445:in `_run__1077260712__process_action__944252406__callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `send'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'