This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
;; If you want to create a file, visit that file with C-x C-f, | |
;; then enter the text in that file's own buffer. | |
"Version 8000" | |
(message "This is %s yet another gh.el test!" "still") | |
(message "https://github.com/sigma/gh.el") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Commentary: | |
;; | |
;; Easily convert elisp file headers to markdown text. The file | |
;; comment headers should be similar to this one. | |
;; | |
;;; Installation: | |
;; | |
;; None | |
;; | |
;;; Use: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from optparse import make_option | |
from os.path import dirname, basename | |
from subprocess import check_output | |
from django.core.management.base import AppCommand | |
from south.models import MigrationHistory | |
class Command(AppCommand): | |
help = "Clear app (with manage.py sqlclear) and south migrations for app" | |
def handle_app(self, app, verbosity = 1, **options): | |
printer = Printer(verbosity = verbosity) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN -x GPATH -x GRTAGS -x GTAGS -x ID -x '*.pro' busybox-1.19.4.orig/include/libbb.h busybox-1.19.4/include/libbb.h | |
--- busybox-1.19.4.orig/include/libbb.h 2012-02-04 11:34:24.000000000 -0800 | |
+++ busybox-1.19.4/include/libbb.h 2012-10-09 20:19:52.514340293 -0700 | |
@@ -35,6 +35,7 @@ | |
#include <sys/poll.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
+#include <sys/resource.h> | |
#include <sys/socket.h> | |
#include <sys/stat.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) + ">" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |