Skip to content

Instantly share code, notes, and snippets.

Avatar

Morgan Gangwere indrora

View GitHub Profile
View eigrpnotes.txt
EIGRP := Enhanced Interior Gateway Routing Protocol
Successor to IGRP.
EIGRP uses the DUAL (Diffusing update algorythm) as opposed to a Bellman-Ford algorythm.
Metrics for EIGRP:
- Reliability (0-255, larger->better)
- Bandwidth (max banhdwidth in Kb/s) higher = better
- Delay (in n*10 uS) to destination network. smaller -> better.
@indrora
indrora / truerandom.cs
Created Mar 22, 2011
A more-random number generator.
View truerandom.cs
using System;
using System.Security.Cryptography;
namespace System {
///<Summary>A "More Random" random number generator.</Summary>
class CryptoRandom<T> : Random where T : HashAlgorythm {
// this is simply a "More Random" way to get entropy.
protected override double Sample( )
{
@indrora
indrora / gist:1709261
Created Jan 31, 2012
Claws python script for auto-re-from
View gist:1709261
#!/usr/bin/env python
# Script run by Claws-mail
# save this as ~/.claws-mail/python-scripts/auto/compose_any
# Makes sure right-side is set as From: if any To: match left-side
replacements = {
'wat_list@pingas.tld':'herpderp@immpaperp.tld'
}
@indrora
indrora / _conkyrc
Created Feb 10, 2012
Indrora's Conky config
View _conkyrc
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
@indrora
indrora / gist:1909075
Created Feb 25, 2012
The problem with Pinterest isn't TOS violation, its a lack of Fair Use and attribution
View gist:1909075

I'd love to use Pinterest. But if I can't use it in conjunction with Flickr, then why bother?

I'm a hackerspace-goer, and at my Hackerspace (Albuquerquites, check out Quelab) we have a camera with an EyeFi card in it that auto-uploads to Flickr.

The photos are licensed CC/BA. Pinning them would violate the attribution, since I can't say "it came from x"

This keeps me from keeping a log/journal using Pinterest of my various adventures.

The easy solution to the problem Pinterest now has isn't blocking, but to tag each item that is pinned with the source it came from -- much like Tumblr does.

@indrora
indrora / asm.diff
Created Feb 27, 2012
Difference between a flag and a break statement, Assembly level.
View asm.diff
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."
View gist:1983305

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 Apr 1, 2012
Slic3r vs Skeinforge
View Skeinforge.gcode
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>)
@indrora
indrora / ClockManager.java
Created Apr 13, 2012
Java isn't as sucky as you say it is.
View ClockManager.java
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;
You can’t perform that action at this time.