Skip to content

Instantly share code, notes, and snippets.

View indrora's full-sized avatar
🖋️
Leaving a mark.

Morgan Gangwere indrora

🖋️
Leaving a mark.
View GitHub Profile
@indrora
indrora / asm.diff
Created February 27, 2012 02:27
Difference between a flag and a break statement, Assembly level.
diff --git a/flag.s b/break.s
index b8ae696..aa174f5 100644
--- a/flag.s
+++ b/break.s
@@ -1,4 +1,4 @@
- .file "flag.c"
+ .file "break.c"
.section .rodata
.LC0:
.string "start."

So, I get an errant text from a classmate today

Hey can you help me with a bit of a cisco emergency?

So I give him a call. Turns out his father works as a networking contractor for a few local firms. Details are sketchy, but I work out the gist:

Their link between locations has crapped its face and doesn't know whats wrong. Router keeps loosing its config. Nobody knows Cisco, except the CCNA dude, who lost it this morning when his father died. Me and my classmate are still trying to work out details. Documentation is non-existent. Grumpy admins can't load their email or do anything.

fuck.

@indrora
indrora / Skeinforge.gcode
Created April 1, 2012 05:48
Slic3r vs Skeinforge
This file has been truncated, but you can view the full file.
(** This GCode was generated by ReplicatorG 0034 **)
(* using Skeinforge (47) *)
(* for a Single headed CNC Machine *)
(* on 2012/03/31 22:59:00 (-0600) *)
(<format> skeinforge gcode </format>)
(<version> 12.01.13 </version>)
(<created> 12.03.31|22:57 </created>)
(<extruderInitialization>)
(<craftTypeName> extrusion </craftTypeName>)
M105
@indrora
indrora / ClockManager.java
Created April 13, 2012 04:57
Java isn't as sucky as you say it is.
package gangwere.p6;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.JPanel;
import javax.swing.Timer;
@indrora
indrora / BadgeUtil.zip
Created July 27, 2012 22:22
DEFCON 20 badge info
@indrora
indrora / BadgeUtil.zip
Created July 28, 2012 00:50 — forked from Macil/BadgeUtil.zip
DEFCON 20 badge info
@indrora
indrora / quantum.php
Created September 14, 2012 02:51
hard to reverse hash function.
<?php
function quantumhash($content)
{
/*
* This is the Quantum Hash function. Why is it called the Quantum hash function?
* because it can't be turned back without knowing what the original was, or being
* very very good at hashing lots of things at once.
*
* How it works is we have an array of hashing algos that PHP accepts -- this is $hashers.
@indrora
indrora / asdfhash.php
Created September 16, 2012 03:50
ASDFHash: Ascii hashing function
<?php
/*
* @name: asdfhash.php
* @author: morgan ``indrora'' gangwere <indrora@earfolds.com>
*
* @license 2clause BSD
*
* Copyright (c) 2012, morgan ``indrora'' gangwere
* All rights reserved.
*
@indrora
indrora / bench.java
Created September 30, 2012 01:04
String lookup benchmarking in Java
package yellowfox.strings;
/**
*
* @author indrora
*
* This is a simple String Lookup table example.
*
* You could easily use this to generate a lookup table for a switch statement,
* especially if your table is going to never change.
@indrora
indrora / D3N9.cpp
Created November 11, 2012 19:30
D3N9: Demscene tribute on ChipKIT UNO32
/*
D3N9: Old-Skool demoscene scroller for PIC32
*/
/* Kindly ripped from IOShield_OLED_Full_Demo */
#include <IOShieldOled.h>
#define OLED IOShieldOledClass
OLED oled;