Skip to content

Instantly share code, notes, and snippets.

View eagleflo's full-sized avatar

Aku Kotkavuo eagleflo

View GitHub Profile
@eagleflo
eagleflo / arkx.zsh-theme
Created August 8, 2012 08:38
My ZSH theme
PROMPT='%{$fg[green]%}%~ $(git_prompt_info)%{$reset_color%}$ '
if [[ `hostname -f` == *eagleflow.fi ]]; then
PROMPT='%{$fg[cyan]%}[%M]%{$reset_color%}:'$PROMPT
fi
LSCOLORS=''
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}✗%{$fg[red]%})%{$reset_color%}"
@eagleflo
eagleflo / gist:2708230
Created May 16, 2012 07:09
MacBookPro6,2 hard lockup after trying to wake from sleep
Interval Since Last Panic Report: 184341 sec
Panics Since Last Report: 1
Anonymous UUID: CCF0AC9C-BA96-488A-A335-4A608F76321D
Wed May 16 10:05:30 2012
panic(cpu 1 caller 0xffffff80002c473a): Kernel trap at 0xffffff7f8077fb23, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000078, CR3: 0x0000000020890038, CR4: 0x00000000000206e0
RAX: 0x0000000000000020, RBX: 0xffffff801afb0610, RCX: 0x0000000000000020, RDX: 0xffffff80141ce310
RSP: 0xffffff811712bae0, RBP: 0xffffff811712baf0, RSI: 0xffffff801afb0610, RDI: 0xffffff80141ce310
R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0xffffff8014aef000, R11: 0xffffff800086eb70
@eagleflo
eagleflo / 09052012
Created May 9, 2012 10:58
iTerm 2 + zsh + close ssh tab kernel panic
Interval Since Last Panic Report: 579029 sec
Panics Since Last Report: 1
Anonymous UUID: B0298408-47AF-4111-B72D-A2CCD32099B4
Wed May 9 13:53:55 2012
panic(cpu 2 caller 0xffffff8000328af2): "Negative open count?"@/SourceCache/xnu/xnu-1699.24.23/bsd/miscfs/specfs/spec_vnops.c:1368
Backtrace (CPU 2), Frame : Return Address
0xffffff80f1733c10 : 0xffffff8000220702
0xffffff80f1733c90 : 0xffffff8000328af2
0xffffff80f1733cd0 : 0xffffff800032c895
@eagleflo
eagleflo / gist:2357727
Created April 11, 2012 07:58
Arch Linux / pacman fail
$ sudo pacman -Syu
:: Synchronizing package databases...
core 101.9 KiB 255K/s 00:00 [##################################] 100%
extra 1386.9 KiB 825K/s 00:02 [##################################] 100%
community 1648.7 KiB 837K/s 00:02 [##################################] 100%
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
@eagleflo
eagleflo / gist:2133009
Created March 20, 2012 08:53
iTerm2 + zsh + tmux kernel panic
Interval Since Last Panic Report: 496727 sec
Panics Since Last Report: 1
Anonymous UUID: B0298408-47AF-4111-B72D-A2CCD32099B4
Tue Mar 20 10:49:29 2012
panic(cpu 3 caller 0xffffff80002b3926): trying to interlock destroyed mutex (0xffffff8013b32c08)
Backtrace (CPU 3), Frame : Return Address
0xffffff812ae2bca0 : 0xffffff8000220702
0xffffff812ae2bd20 : 0xffffff80002b3926
0xffffff812ae2bd30 : 0xffffff8000227e8a
@eagleflo
eagleflo / gist:1987045
Created March 6, 2012 16:03
luarocks-2.0.8 fails to build
~ $ brew upgrade luarocks
==> Upgrading luarocks
==> Downloading http://luarocks.org/releases/luarocks-2.0.8.tar.gz
######################################################################## 100.0%
==> Patching
patching file src/luarocks/fs/lua.lua
Hunk #1 succeeded at 652 (offset 33 lines).
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.0.8 --rocks-tree=/usr/local --sysconfdir=/usr/local/etc/luarocks
==> make
for f in luarocks luarocks-admin ;\
~ $ cabal install yesod-form
Resolving dependencies...
cabal: cannot configure yesod-form-0.3.4.2. It requires email-validate >=0.2.6
&& <0.3
For the dependency on email-validate >=0.2.6 && <0.3 there are these packages:
email-validate-0.2.6 and email-validate-0.2.7. However none of them are
available.
email-validate-0.2.6 was excluded because it could not be configured. It
requires base >=2 && <4.4
email-validate-0.2.7 was excluded because it could not be configured. It
~/work/haskell $ cabal install RSA
Resolving dependencies...
Configuring RSA-1.0.6.2...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package SHA-1.5.0.0 requires binary-0.5.0.2
package pureMD5-2.1.0.3 requires binary-0.5.0.2
package RSA-1.0.6.2 requires binary-0.5.0.2
package binary-0.5.0.2 requires containers-0.4.1.0
package semigroups-0.8 requires containers-0.4.2.0
~/work/haskell/snap-skeleton (master ✗) $ cabal install
Resolving dependencies...
cabal: cannot configure haskell98-1.1.0.1. It requires process ==1.0.*
For the dependency on process ==1.0.* there are these packages:
process-1.0.0.0, process-1.0.1.1, process-1.0.1.2, process-1.0.1.3,
process-1.0.1.4 and process-1.0.1.5. However none of them are available.
process-1.0.0.0 was excluded because process-1.1.0.0 was selected instead
process-1.0.0.0 was excluded because bin-package-db-0.0.0.0 requires process
==1.1.0.0
process-1.0.0.0 was excluded because Cabal-1.12.0 requires process ==1.1.0.0
@eagleflo
eagleflo / gist:1387524
Created November 23, 2011 00:16
It's shit like this, Haskell.
~ $ cabal install snap
Resolving dependencies...
cabal: cannot configure aeson-native-0.3.3.1. It requires deepseq <1.2
For the dependency on deepseq <1.2 there are these packages: deepseq-1.0.0.0,
deepseq-1.1.0.0, deepseq-1.1.0.1 and deepseq-1.1.0.2. However none of them are
available.
deepseq-1.0.0.0 was excluded because xmlhtml-0.1.5.2 requires deepseq
==1.2.0.1
deepseq-1.0.0.0 was excluded because text-0.11.1.5 requires deepseq ==1.2.0.1
deepseq-1.0.0.0 was excluded because deepseq-1.2.0.1 was selected instead