Skip to content

Instantly share code, notes, and snippets.

@petehamilton
petehamilton / README.md
Last active December 16, 2015 22:19
Matrix Multiply Feedback

Matrix Multiply Aggregated Feedback

Indentation

Many of you (understandably) applied a sort of nesting indentation to your assembly code something like this:

for_row: mov r9, 0
next_row:
 COMPARISON
find . -name '*.git' -execdir sh -c 'cd {} && git gc' \; # Compress all git repos under current directory
@petehamilton
petehamilton / README.md
Last active July 8, 2021 09:50
Circle CI Build Status widget for Dashing (Single Builds)

Description

Dashing widget to show the build status of a CircleCI project.

Usage

  • Get a Circle API Token from your Account Dashboard and set it in your environment as CIRCLE_CI_AUTH_TOKEN
  • Add the httparty to your Gemfile and run bundle install

Then:

@petehamilton
petehamilton / README.md
Last active March 31, 2020 18:18
Circle CI Build Status widget for Dashing (Multiple Builds)

Description

Dashing widget to show the status of builds from CircleCI. Also shows the avatar of the person who is running/breaking/passing the current build.

Usage

  • Get a Circle API Token from your Account Dashboard and set it in your environment as CIRCLE_CI_AUTH_TOKEN
  • Add the httparty to your Gemfile and run bundle install

Then:

@petehamilton
petehamilton / README.md
Last active March 9, 2022 02:43
Set up a Raspberry Pi to load a web dashboard

Dashboards on Raspberry Pi

curl -L 'http://git.io/h1iuxQ' | sh
@petehamilton
petehamilton / metric_apps.md
Last active May 22, 2017 19:14
Useful Metric Dashboard Research Links

Dashboards

Charting

@petehamilton
petehamilton / hashcrack.rb
Created February 11, 2013 17:16
Ruby md5 passw3ord cracker. Brute force, character product, recursive yielding and base-n techniques
#! /usr/env/ruby
require "benchmark"
require 'digest/md5'
# The password hash to crack
password_hash = "e1f3ecc31656795a128db19da490c9ec"
# Helper for hashing passwords
def md5(password)
Digest::MD5.hexdigest(password)
@petehamilton
petehamilton / bingo.rb
Created December 27, 2012 16:59
A quick and dirty game of bingo, written in ruby
#!/usr/env/ruby
mappings = {
1 => 'Kelly\'s Eye',
2 => 'One Little Duck',
3 => 'Cup of Tea',
4 => 'Knock at the Door',
5 => 'Man Alive',
6 => 'Tom Mix',
7 => 'Lucky',
8 => 'Garden Gate',
@petehamilton
petehamilton / LeetSpeak.java
Created November 27, 2012 22:24
LeetSpeak Challenge for PPT Session
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
/**
* A class to demonstrate finding potential passwords made from Leetspeak
*
* BACKSTORY:
* You overhear someone in the office mention their password out loud.
@petehamilton
petehamilton / simple_crawler.rb
Last active June 1, 2016 20:27
Script to Crawl a Site for Links/Assets
# GEMFILE
# source 'https://rubygems.org'
#
# gem 'nokogiri'
# gem 'awesome_print'
#!/usr/bin/env ruby
require 'open-uri'
require 'optparse'