Skip to content

Instantly share code, notes, and snippets.

View cyberfox's full-sized avatar

Morgan Schweers cyberfox

View GitHub Profile
@cyberfox
cyberfox / gist:139419
Created July 2, 2009 11:01
501 http response error log for JBidwatcher
Tue Jun 30 19:43:31 CEST 2009: JBidwatcher 2.0.1-825
Tue Jun 30 19:43:32 CEST 2009: Sun Microsystems Inc. Java, version 1.6.0_13 on Linux
Tue Jun 30 19:43:35 CEST 2009: Error setting up scripting: java.lang.NoClassDefFoundError: org/jruby/runtime/builtin/IRubyObject
Tue Jun 30 19:43:36 CEST 2009: Loading listings from the database (1/6/6 entries, 6/6 auctions)
Tue Jun 30 19:43:36 CEST 2009: Done with the initial load (got 1 active entries)
Tue Jun 30 19:43:41 CEST 2009: Couldn’t sign in!
Server returned HTTP response code: 501 for URL: http://cgi1.ebay.com/aw-cgi/eBayISAPI.dll?Adult…
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
@cyberfox
cyberfox / gist:137231
Created June 28, 2009 10:31
A cool little, super-simple, shell script for doing calculations.
# Tried to twitter this; FAIL.
$ cat > calc
#!/bin/env ruby
p eval(ARGV[0])
^D
$ chmod a+x calc
$ ./calc 4*Math::PI
$ ./calc "Math::sqrt(15241578750190521)"
$ ./calc 24*7
#!/bin/sh
svn mkdir svn://svn/test_branching svn://svn/test_branching/trunk svn://svn/test_branching/branches -m"Create a test repository for branching."
mkdir branch_tmp
cd branch_tmp
svn co svn://svn/test_branching/trunk test/
cd test
echo "This is a test." > testme.txt
svn add testme.txt
svn commit testme.txt -m"Add a test file."
svn cp svn://svn/test_branching/trunk svn://svn/test_branching/branches/new_branch -m"Create a new branch with the test file in it."
@cyberfox
cyberfox / growl command.sh
Created September 5, 2008 20:39
undefined
growl -H myhost -n myapp --priority 0 -m '<div id="override"><img src="http://somehost/start_ok.png" alt="icon"></div>Application running...' -t "Started"
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Growl notification</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="%baseurl%" />
<style type="text/css">
@import URL("default.css");
#top,#middle,#bottom {