Skip to content

Instantly share code, notes, and snippets.

View matthewryanscott's full-sized avatar

Matthew R. Scott matthewryanscott

View GitHub Profile
@matthewryanscott
matthewryanscott / update-requirements-hashes.py
Created May 20, 2011 18:54
Updates git hashes in requirements.txt files based on current state of adjacent repositories.
#!/usr/bin/env python2.6
"""Updates git hashes in requirements.txt files based on current state of adjacent repositories.
Expects to be run inside directory containing requirements.txt to be updated.
Be sure to commit regularly: Performs an in-place update of requirements.txt.
"""
import re
import sys
@matthewryanscott
matthewryanscott / all-project-hashes.py
Created May 23, 2011 00:15
Inspect all sibling directories, and show current git revisions for each that is a git repo.
#!/usr/bin/env python2.6
"""Inspect all sibling directories, and show current git revisions for each that is a git repo."""
import re
import sys
import os
import subprocess
MODULE_PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
@matthewryanscott
matthewryanscott / jed.bas
Created August 28, 2011 04:06
Jed's Other Poem
900 REM *** CURSOR VARIABLES **
*
910 SPEED= 255
920 MDY% = 260
930 DLY% = MDY%
940 CHAR$ = ""
950 X = 1
960 Y = 1
970 DIR = 1
1000 REM *** BOOT SEQUENCE ***
@matthewryanscott
matthewryanscott / gist:1383134
Created November 21, 2011 16:25
analogtv.c
/* analogtv, Copyright (c) 2003, 2004 Trevor Blackwell <[email protected]>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation. No representations are made about the suitability of this
* software for any purpose. It is provided "as is" without express or
* implied warranty.
*/
diff --git a/autogen.sh b/autogen.sh
index 68962f2..7e09d60 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,14 +1,15 @@
#!/bin/sh
win=$1
-#autopoint check
-(autopoint --version) > /dev/null 2>&1 ||
@matthewryanscott
matthewryanscott / configure.ac.patch
Created February 7, 2012 18:25
Bump down autoconf version requirement to 2.61
--- configure.ac.orig 2012-02-07 12:22:59.000000000 -0600
+++ configure.ac 2012-02-07 12:23:23.000000000 -0600
@@ -32,7 +32,7 @@
# Basic initialisations
#################################################
-AC_PREREQ(2.62)
+AC_PREREQ(2.61)
AC_INIT([libmp3splt],[0.7.1],[[email protected]])
AC_CONFIG_AUX_DIR([libltdl/config])
@matthewryanscott
matthewryanscott / FUCKCIT.PIE.c
Created May 15, 2012 15:28
FuckCitPie general release version 5.12
/*
95Apr17 From golden spud @ Golden Spud's Greasehouse, matt.org
Also,
BRENT. After you left the "not-together", DP, scorpio, and I wrote a Citadel
in less than 30 minutes on FRuG's computer, in Borland C++.
We aptly named it FuckCitPie release 5.12, and everybody else that was still
there challenged us to run two instances of it at the same time and see if it
would multitask.
@matthewryanscott
matthewryanscott / FindPanelLayoutAppDelegate.m
Created May 22, 2012 23:08
enaml constraints vs Cocoa Auto Layout
/*
File: FindPanelLayoutAppDelegate.m
Abstract: Creates interface elements and lays out the window
Version: 1.2
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
this Apple software constitutes acceptance of these terms. If you do
not agree with these terms, please do not use, install, modify or
@matthewryanscott
matthewryanscott / gist:2788909
Created May 25, 2012 15:53
https://my.webfaction.com/make-payment source - locks up on Chrome version 21.0.1150.3 (Official Build 138970) canary
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>WebFaction Control Panel</title>
<meta name="description" content="The WebFaction control panel. This site allows WebFaction customers to manage their accounts and websites." />
<link href="https://my.webfaction.com/media/css/screen.r1337180865.css" rel="stylesheet" type="text/css" />
@matthewryanscott
matthewryanscott / gist:2913909
Created June 12, 2012 01:50
Installing retroshare on Debian Squeeze
This is what worked for me to install it on Squeeze 64-bit:
$ sudo aptitude install libqt4-dev g++ libgpgme11-dev libgpg-error-dev libupnp-dev libssl-dev libgnome-keyring-dev libxss-dev gnupg-agent
If this asks you to remove packages, DO NOT CONTINUE. The above line should only INSTALL packages. Fix your system first.
$ wget http://sourceforge.net/projects/retroshare/files/RetroShare/0.5.3c/RetroShare-v0.5.3c.tar.gz/download
$ tar xzvf RetroShare-v0.5.3c.tar.gz
$ cd trunk/libbitdht/src
$ qmake && make