Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
[ 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)
$ 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
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)
set root='(hd0,3)'
linux /boot/lfskernel-2.6.22 root=/dev/sda3
boot
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
Subsystem: Dell Device 0276
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
$ pry
[1] pry(main)> require 'net/http'
=> true
[2] pry(main)> u = URI('http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec4a.mp4')
=> #<URI::HTTP:0x9aa793c URL:http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec4a.mp4>
[3] pry(main)> res = Net::HTTP.get_response(u)
=> #<Net::HTTPFound 302 Moved Temporarily readbody=true>
[4] pry(main)> res['location']
=> "http://archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec4a.mp4"
require 'xmlsimple'
require 'pp'
require 'net/http'
require 'digest/md5'
# require 'open-uri'
baseuri = 'http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/'
def get_large_file_rec(uri_str, save_filename, lvl)
prefix = lvl == 0 ? "getting" : ("=" * lvl) + ">"
diff -x '*.xz' -x pkg -x '*~' -x src -u idutils.orig/PKGBUILD idutils/PKGBUILD
--- idutils.orig/PKGBUILD 2012-09-04 20:53:36.598282583 -0700
+++ idutils/PKGBUILD 2012-09-04 21:09:38.943069113 -0700
@@ -1,9 +1,10 @@
# Maintainer: Ken Bull <[email protected]>
# Contributor: Todd Musall <[email protected]>
# Contributor: tardo <[email protected]>
+# Contributor: Mitchel Humpherys <[email protected]>
pkgname=idutils
diff -x '*.xz' -x pkg -x '*~' -x src -u idutils.orig/PKGBUILD idutils/PKGBUILD
--- idutils.orig/PKGBUILD 2012-09-04 20:53:36.598282583 -0700
+++ idutils/PKGBUILD 2012-09-04 21:09:38.943069113 -0700
@@ -1,9 +1,10 @@
# Maintainer: Ken Bull <[email protected]>
# Contributor: Todd Musall <[email protected]>
# Contributor: tardo <[email protected]>
+# Contributor: Mitchel Humpherys <[email protected]>
pkgname=idutils
diff -x '*.xz' -x pkg -x '*~' -x src -u idutils.orig/PKGBUILD idutils/PKGBUILD
--- idutils.orig/PKGBUILD 2012-09-04 20:53:36.598282583 -0700
+++ idutils/PKGBUILD 2012-09-04 21:09:38.943069113 -0700
@@ -1,9 +1,10 @@
# Maintainer: Ken Bull <[email protected]>
# Contributor: Todd Musall <[email protected]>
# Contributor: tardo <[email protected]>
+# Contributor: Mitchel Humpherys <[email protected]>
pkgname=idutils