Skip to content

Instantly share code, notes, and snippets.

[15:31] --> You have joined the channel #openhatch (~onionuser@nat-pool-128-117.olin.edu).
[15:31] *** The channel topic is "http://openhatch.org/ | Let's make the open source community easier to join | If nobody answers, stick around and someone will | Channel is logged, "/msg SNAILBot help" for more info | "b" is a good thing: http://ur1.ca/1jokg".
[15:31] *** The topic was set by pythonian4000!~pythonian@173-203-84-225.static.cloud-ips.com on 2010-09-16 21:04.
[15:32] *** Channel modes: no messages from outside
[15:32] *** This channel was created on 2010-01-30 02:48.
[15:35] <computercolin> paulproteus: aha, I'm in the wrong tab
[15:35] <computercolin> how was your Penn trip?
[15:35] <computercolin> still alive
[15:36] <paulproteus> computercolin: (-:
[15:36] <paulproteus> still alive
diff --git a/bin/exports.sh b/bin/exports.sh
index d0ced6f..f23c43d 100644
--- a/bin/exports.sh
+++ b/bin/exports.sh
@@ -37,13 +37,13 @@ if [ `uname` == "FreeBSD" ]; then
export PATH="$JAVA_HOME/bin:$SCALA_HOME/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/local/share/java/classes/mysql-connector-java.jar"
else
- [ -e "/usr/lib/jvm/java-6-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
+ [ -e "/usr/lib/jvm/java-1.6.0-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk"
Sat Oct 9 23:07:38 EDT 2010
Apply this patch
etherpad_fedora_env_patch.diff
# Apply this patch
etherpad_fedora_env_patch.diff
# Remove bundled libraries
# tarfile created using hg
# hg clone https://etherpad.googlecode.com/hg/ etherpad
# cd etherpad
# hg archive --type=tbz2 --prefix=%{name}-%{version} %{name}-%{version}-%{hgdate}.tar.bz2
%global hgdate 20100429
%global tarfile %{name}-%{version}-%{hgdate}.tar.bz2
Name: etherpad
Version: 0
Release: 0.8.%{hgdate}%{?dist}
diff --git a/bin/exports.sh b/bin/exports.sh
index d0ced6f..f23c43d 100644
--- a/bin/exports.sh
+++ b/bin/exports.sh
@@ -37,13 +37,13 @@ if [ `uname` == "FreeBSD" ]; then
export PATH="$JAVA_HOME/bin:$SCALA_HOME/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/local/share/java/classes/mysql-connector-java.jar"
else
- [ -e "/usr/lib/jvm/java-6-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
+ [ -e "/usr/lib/jvm/java-1.6.0-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk"
Sat Oct 9 23:07:38 EDT 2010
Explorer: Colin Zwiebel
To be combined with SDZ's spec from this package:
http://sdz.fedorapeople.org/etherpad-0-0.11.20100429.fc14.src.rpm
# Apply this patch
etherpad_fedora_env_patch.diff
( http://gist.github.com/631456 )
$python
import smu
s = smu.smu()
libusb couldn't open USB device /dev/bus/usb/006/005: Permission denied.
libusb requires write access to USB device nodes.
Found device with vendor ID = 0x6666 and product ID = 0xABCD, but could not open it.
>> =(
$cd /dev/bus/usb/006
@computercolin
computercolin / Upgrades to HypeMachine Controls Extension 0.15
Created March 13, 2011 20:10
Made the following improvements * Clicking the HypeMachine logo in the popup displays song notification (aka the "What am I listening to button?") * Using controls in the popup now displays the song notification (aka the "okay, I changed songs, NOW what a
diff -ruN dhgakpegakokblenhlahhflalmlnehmn/0.15_0/background.html cz_hypem_controls_ext/background.html
--- dhgakpegakokblenhlahhflalmlnehmn/0.15_0/background.html 2011-03-13 15:37:49.000000000 -0400
+++ cz_hypem_controls_ext/background.html 2011-03-13 15:35:09.000000000 -0400
@@ -57,10 +57,11 @@
if(extension_port != null)
extension_port.postMessage({ track : track });
- else if (notification_port != null)
+
+ if (notification_port != null)
@computercolin
computercolin / rdesk
Created May 1, 2011 18:11
rdesktop convenience bash script
#!/bin/sh
# Execs rdesktop with good settings for Colin's laptop.
# -D hide MW decoratinos
# -z enable RDP compression
# -g WxH viewport geometry
# -r sound:remote play sounds remotely
rdesktop -D -z -g 1440x870 -r sound:remote $1
@computercolin
computercolin / synctoy.cmd
Created September 26, 2011 18:46
SyncToy .cmd and .bat to schedule with a minimized window (instead of popup terminal)
== synctoy.cmd ==
start /d %~dp0 /min sync_all.bat
# /d set working direcotory
# %~dp0 location of running script
== synctoy.bat ==
"C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" -R
# -R Sync all folder pairs