Skip to content

Instantly share code, notes, and snippets.

Avatar
💬
;--;DROP TABLE status;

Adam Baxter voltagex

💬
;--;DROP TABLE status;
View GitHub Profile
@voltagex
voltagex / sip-monitor.sh
Created Apr 13, 2010
How to monitor SIP traffic - the cheap way
View sip-monitor.sh
mkfifo /root/sip
while true; do ngrep SIP -i host 10.1.1.2 > /root/sipfifo; done;
socat stdio tcp4-listen:55061,crnl < /root/sipfifo
@voltagex
voltagex / gist:1372877
Created Nov 17, 2011
VONETS VAP11G Wireless bridge
View gist:1372877

VONETS VAP11G Ethernet to Wireless bridge

or: why I should read the store page before clicking buy

Official downloads at http://www.vonets.com/service/show_download.asp?ID=115, more files found during my research are at http://ge.tt/89UQPbC (uploaded 2012-01-22)

The following article is for educational purposes only. The VAP11G software belongs to the Shenzhen Houtian Network Communication Technology Co., Ltd.

Reverse Engineering

@voltagex
voltagex / gist:1379926
Created Nov 20, 2011
Hiding deleted comments for AskScience on Reddit
View gist:1379926
$("em:contains('[deleted]')").each(function() {hidecomment(this)})
@voltagex
voltagex / windows.md
Created Nov 27, 2011
Useful Windows Software
View windows.md
@voltagex
voltagex / crazyideas-preseedtester.md
Created Nov 27, 2011
Project idea: Debian preseed
View crazyideas-preseedtester.md

Crazy idea: write a test-suite for Debian preseed files so that I don't have to keep rebooting my VM to test the preseed file

@voltagex
voltagex / gist:1546899
Created Jan 1, 2012
remote codes for SCAK22 Panasonic Mini Hifi - LIRC
View gist:1546899
# Notes for Adam: Panasonic seems to use REC 80 IR encoding - http://www.remotecontrolscenter.com/remote-controls/panasonic/ seems to think that this remote will work for the SA-AK22 (SC-AK22)
# this config file was automatically generated
# using lirc-0.7.0pre5(any) on Wed Jul 28 16:58:17 2004
#
# contributed by S. Mark Dzialo
#
# brand: Panasonic
# model no. of remote control: N2QAGB000002
# devices being controlled by this remote: Panasonic (SA-AK99) audio system, IBM T40 (237372U) laptop
#
@voltagex
voltagex / poll-snmp.py
Created May 15, 2012 — forked from berg/poll-snmp.py
Script to poll SNMP counters
View poll-snmp.py
#!/usr/bin/env python
#
# Script to poll Ethernet interface counters from a SNMP host
# requires pysnmp and the handy snmpclient library from
# https://github.com/seveas/python-snmpclient
#
# licensed under creative commons CC0 (public domain)
#
@voltagex
voltagex / confintrospect.cs
Created Aug 20, 2012
Config introspection in C#
View confintrospect.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Configuration;
namespace Confintrospect
{
class Program
@voltagex
voltagex / AddNppAlias.ps1
Created Sep 8, 2012
Add Notepad++ Alias to Powershell
View AddNppAlias.ps1
function AddNotepadppAlias
{
$currentalias = [bool](Get-Alias -Name npp -ErrorAction SilentlyContinue)
if ($currentalias -eq $false)
{
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
#no manually set notepad++ path
if ($npp_path -eq $null)
{
$npp_path = (Get-ItemProperty -Path HKCR:\Notepad++_file\shell\open\command).'(default)'.Split('"%1"')[1]
@voltagex
voltagex / snippets.ps1
Created Sep 8, 2012
Seperate functions/snippets into a folder in Powershell
View snippets.ps1
#Add this to your $profile
write-host "Loading functions"
get-childitem (([System.IO.DirectoryInfo] $profile).Parent.FullName + "\Functions\*.ps1") | %{. $_}