Skip to content

Instantly share code, notes, and snippets.

View aspiers's full-sized avatar

Adam Spiers aspiers

View GitHub Profile
@aspiers
aspiers / minitest.txt
Created January 8, 2012 20:42
guard-minitest error
> bundle exec guard
Guard uses Libnotify to send notifications.
Guard is now watching at '/data/music/RotC/eventbook'
>
Running all tests
Run options: --seed 63689
/home/adam/.rvm/gems/ruby-1.9.3-p0@rails-3.1/gems/activesupport-3.1.3/lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `/' for nil:NilClass (NoMethodError)
from /home/adam/.rvm/gems/ruby-1.9.3-p0@rails-3.1/bundler/gems/guard-minitest-ad4cb29c78ec/lib/guard/minitest/notifier.rb:12:in `guard_message'
from /home/adam/.rvm/gems/ruby-1.9.3-p0@rails-3.1/bundler/gems/guard-minitest-ad4cb29c78ec/lib/guard/minitest/notifier.rb:28:in `notify'
from /home/adam/.rvm/gems/ruby-1.9.3-p0@rails-3.1/bundler/gems/guard-minitest-ad4cb29c78ec/lib/guard/minitest/runners/version_2_runner.rb:14:in `_run_anything'
@aspiers
aspiers / analyse-py-module-deps.pl
Created January 24, 2012 19:36
Compares list of imports within a Python codebase with its pip-requires file
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
@ARGV or unshift @ARGV, '.';
my %imports = ();
@aspiers
aspiers / gist:1672096
Created January 24, 2012 19:37
Output of running https://gist.github.com/1672094 on OpenStack Nova codebase
packages imported and in pip-requires
=====================================
Cheetah
anyjson
boto
carrot
eventlet
feedparser
glance
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
use Getopt::Long;
sub usage {
warn @_, "\n" if @_;
'(erc-generate-log-file-name-function (quote erc-generate-log-file-name-network))
'(erc-log-channels-directory "~/.erc/log")
'(erc-log-insert-log-on-open t)
'(erc-log-mode t)
'(erc-log-write-after-insert t)
'(erc-log-write-after-send t)
'(erc-modules (quote (autojoin button completion fill irccontrols log match menu netsplit noncommands readonly ring stamp track)))
root@coral:~/ > ps -ef | grep mysql
root 23372 22497 0 11:52 pts/0 00:00:00 grep mysql
root@coral:~/ > mysqld_safe --skip-grant-tables --skip-networking &
[1] 23373
root@coral:~/ > 120505 11:52:31 mysqld_safe Logging to syslog.
120505 11:52:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
root@coral:~/ > mysqladmin flush-privileges
root@coral:~/ > mysqladmin password 'foobar'
mysqladmin: connect to server at 'localhost' failed
@aspiers
aspiers / gist:855c1c815a41519f0241
Created November 1, 2015 13:44
bizarre stack trace from autoload
Debugger entered--Lisp error: (void-function nil)
indirect-function(nil)
help-function-arglist(nil preserve-names)
ad-arglist(nil)
ad-make-advised-definition(er/expand-region)
ad-activate-advised-definition(er/expand-region nil)
ad-activate-internal(er/expand-region)
ad--defalias-fset(nil er/expand-region (autoload "expand-region" nil nil nil))
apply(ad--defalias-fset nil (er/expand-region (autoload "expand-region" nil nil nil)))
#[128 "\300\301\302#\207" [apply ad--defalias-fset nil nil] 5 nil](er/expand-region (autoload "expand-region" nil nil nil))
@aspiers
aspiers / gist:724919a8a4eb4a07cf1d
Created November 1, 2015 13:48
backward-word fails?!
Debugger entered--Lisp error: (void-function nil)
nil(1027 1)
backward-word(1)
call-interactively(backward-word nil nil)
command-execute(backward-word)
@aspiers
aspiers / forward-word-backtrace.md
Last active November 16, 2015 11:54
weird backtrace from forward-word on emacs 24.5
Debugger entered--Lisp error: (void-function nil)
  nil(81 192)
  forward-word(1)
  #<subr call-interactively>(forward-word nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> forward-word nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively> (forward-word nil nil))
  call-interactively(forward-word nil nil)
  command-execute(forward-word)
@aspiers
aspiers / forward-word-backtrace-2.md
Last active November 16, 2015 13:11
even WEIRDER backtrace from forward-word on emacs 24.5

See https://gist.github.com/aspiers/7330084c7bd99d2003e2 for the previous one related to ido-ubiquitous. After deinstalling ido-ubiquitous, forward-word still fails! How to debug this?!

Debugger entered--Lisp error: (void-function nil)
  nil(144 192)
  forward-word(1)
  call-interactively(forward-word nil nil)
  command-execute(forward-word)