Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
set root='(hd0,3)'
linux /boot/lfskernel-2.6.22 root=/dev/sda3
boot
VFS: Cannot open root device "sda3" or unknown-block(2,0).
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
$ sudo gem update --system
Updating rubygems-update
WARNING: You don't have /root/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Successfully installed rubygems-update-1.8.19
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /usr/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.19
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.8-1-ARCH (tobias@T-POWA-LX) (gcc version 4.6.2 20120120 (prerelease) (GCC) ) #1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012
[ 0.000000] Command line: root=/dev/disk/by-uuid/71f3913a-bcbe-4f51-a061-c54d1a6c464f ro vga=773
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
[ 0.000000] BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 00000000bdaa1000 (usable)
[ 0.000000] BIOS-e820: 00000000bdaa1000 - 00000000bdaa7000 (reserved)
@mgalgs
mgalgs / scapy_bridge.py
Created February 18, 2012 00:58
python ethernet bridge
#!/usr/bin/python2
import sys
import signal
from threading import Thread,Lock
from scapy.all import sniff,IP,sendp,srp1,Ether,ARP,get_if_list,get_if_hwaddr
def usage():
print 'Usage: scapy_throuput.py host1_interface host1_ip host2_interfcae host2_ip'
# Maintainer: Marcin Skory <armitage at gfreedom dot org>
# Contributor: Christoph Zeiler <rabyte*gmail>
# Contributor: Mitchel Humpherys <[email protected]>
pkgname=alephone-marathon
pkgver=20111201
pkgrel=2
pkgdesc="Marathon 1 scenario data files"
arch=('any')
url="http://trilogyrelease.bungie.org/"
# Maintainer: Marcin Skory <armitage at gfreedom dot org>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Jacek Poplawski <jacekpoplawski__gmail>
# Contributor: Mitchel Humpherys <[email protected]>
pkgname=alephone
pkgver=20111201
pkgrel=1
pkgdesc='A free, enhanced port of the classic FPS "Marathon 2" by Bungie Software'
# Maintainer: Mitchel Humpherys <[email protected]>
pkgname=python-matplotlib-git
pkgver=20111116
pkgrel=1
pkgdesc="matplotlib python library (including python3 support)"
url="https://github.com/matplotlib/matplotlib"
arch=('any')
license=('custom')
depends=('python-numpy' 'python3-dateutil' 'python-pytz' 'freetype2' 'libpng')
(defun ido-completing-read-multiple (prompt choices &optional predicate require-match initial-input hist def sentinel)
"Read multiple items with ido-completing-read. Reading stops
when the user enters SENTINEL. By default, SENTINEL is
\"*done*\". SENTINEL is disambiguated with clashing completions
by appending _ to SENTINEL until it becomes unique. So if there
are multiple values that look like SENTINEL, the one with the
most _ at the end is the actual sentinel value. See
documentation for `ido-completing-read' for details on the
other parameters."
(let
@mgalgs
mgalgs / so6738840.html
Created July 18, 2011 20:22
jQuery Toggle html characters +/-
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$('a.toggler').click(function() {
var $this = $(this);
console.log($this.next(".hidden"));
$this.next(".hidden").slideToggle("fast", function() {