Skip to content

Instantly share code, notes, and snippets.

View denniskeefe's full-sized avatar

Dennis Keefe denniskeefe

View GitHub Profile
@marksim
marksim / game_of_life_spec.rb
Created May 14, 2013 03:26
First pass at Conway's Game of Life implementation with @thecommongeek
require 'rspec'
class Life
def initialize
@cells = [
[Cell.new, Cell.new, Cell.new],
[Cell.new, Cell.new, Cell.new],
[Cell.new, Cell.new, Cell.new],
]
end
@mrbobbybryant
mrbobbybryant / gist:3746a9fa5bf0e02d6363
Created January 4, 2015 20:40
Removing Dashboard Widgets
<?php
function dwwp_remove_dashboard_widgets() {
remove_meta_box( 'dashboard_primary', 'dashboard', 'post_container_1' );
}
add_action( 'wp_dashboard_setup', 'dwwp_remove_dashboard_widgets' );
@graymouser
graymouser / hb_all_books_dl.js
Created February 28, 2016 14:09
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript
*/
$('a').each(function(i){
if ($.trim($(this).text()) == 'MOBI') {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});
@mubix
mubix / infosec_newbie.md
Last active July 4, 2024 21:11
How to start in Infosec