Skip to content

Instantly share code, notes, and snippets.

View teaforthecat's full-sized avatar

Chris Thompson teaforthecat

View GitHub Profile
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
[charset source w3m-ccl-write-euc-japan-character w3m-ccl-generate-ncr w3m-ccl-write-iso-latin-1-character defalias w3m-make-ccl-coding-system fboundp define-coding-system (lambda (coding-system mnemonic docstring decoder encoder) "Define a new CODING-SYSTEM by CCL programs DECODER and ENCODER.\nCODING-SYSTEM, DECODER and ENCODER must be symbols.\nThis function is an interface to `define-coding-system'." (define-coding-system coding-system docstring :mnemonic mnemonic :coding-type ... :ccl-decoder decoder :ccl-encoder encoder)) #[(coding-system mnemonic docstring decoder encoder) "\305\306 \n \fB%\207" [coding-system mnemonic docstring decoder encoder make-coding-system 4] 7 "Define a new CODING-SYSTEM by CCL programs DECODER and ENCODER.\nCODING-SYSTEM, DECODER and ENCODER must be symbols.\nThis function is an interface to `make-coding-system'."] if r1 == 129 ((r1 = ...)) mule-unicode-0100-24ff 0 ((r1 = ...) (r0 &= 127) (r1 += ...)) mule-unicod
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
vboxnetadp
vboxnetflt
vboxdrv
ipv6
iptable_filter
ip_tables
x_tables
parport_pc
lp
parport
$ dd if=/dev/zero of=/dev/sdb
$ sfdisk -d /dev/sda | sfdisk /dev/sdb
$ fdisk /dev/sdb
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
@teaforthecat
teaforthecat / ruby-change-block.el
Created July 16, 2011 11:19
elisp -ruby change block from do to {
(defun ruby-change-block()
(interactive)
(save-excursion
(let (beg end start-char end-char start-line end-line block-content one-liner)
(ruby-beginning-of-block)
(progn
(re-search-forward "do")
(backward-kill-word 1);; kill "do"
(setq beg (point)
mode server
tls-server
local xxx.xxx.xxx.xxx ## ip/hostname of server
port 1194 ## default openvpn port
proto tcp-server
dev tun
persist-key
client
dev tun
proto tcp
remote hostname 1194
resolv-retry infinite
nobind
@teaforthecat
teaforthecat / pianobar compile error
Created November 11, 2011 17:55
pianobar compile error
src/libwaitress/waitress.c: In function ‘WaitressHandleHeader’:
src/libwaitress/waitress.c:670:31: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c: In function ‘WaitressFetchCall’:
src/libwaitress/waitress.c:1017:29: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c:1018:22: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c:1019:23: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c:1022:23: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c:1023:24: warning: assignment from incompatible pointer type
src/libwaitress/waitress.c:1039:5: warning: passing argument 2 of ‘gnutls_transport_set_pull_function’ from incompatible pointer type
/usr/include/gnutls/gnutls.h:910:8: note: expected ‘gnutls_pull_func’ but argument is of type ‘ssize_t (*)(struct WaitressHandle_t *, char *, size_t)’
@teaforthecat
teaforthecat / *slime-events*
Created January 28, 2012 03:43
swank debugger error in *slime-events*
:indentation-update
(("with-bindings" . 1)))
(:return
(:ok
(("Unable to resolve symbol: break! in this context" " [Thrown class java.lang.RuntimeException]" nil)
(("QUIT" "Quit to the SLIME top level"))
((0 " Util.java:156 clojure.lang.Util.runtimeException"
(:restartable nil))
(1 " Compiler.java:6720 clojure.lang.Compiler.resolveIn"
(:restartable nil))
@teaforthecat
teaforthecat / gist:2252216
Created March 30, 2012 15:16 — forked from jherrm/gist:1054913
startup script for unicorn with rvm global installation
#!/bin/bash
### BEGIN INIT INFO
# Provides: APPLICATION
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the APPLICATION unicorns at boot
# Description: Enable APPLICATION at boot time.
### END INIT INFO