Skip to content

Instantly share code, notes, and snippets.

find . -name "*er.c" -print -print -print -exec bash -c 'grep -h "log_add" "{}" | sed "s/^[ \t]*//" | sort | uniq ' \;
perl -MData::Dumper -e 'my $hashref; $hashref->{time} = 3; print Dumper($hashref);'
Debugger entered--Lisp error: (wrong-type-argument stringp 45)
call-process("git" nil (t nil) nil "--no-pager" "diff" "-U3" 45 119 "--" "my-bindings.el")
apply(call-process "git" nil (t nil) nil ("--no-pager" "diff" "-U3" 45 119 "--" "my-bindings.el"))
process-file("git" nil (t nil) nil "--no-pager" "diff" "-U3" 45 119 "--" "my-bindings.el")
apply(process-file "git" nil (t nil) nil ("--no-pager" "diff" "-U3" 45 119 "--" "my-bindings.el"))
magit-git-insert(("diff" "-U3" 45 119 "--" "my-bindings.el"))
magit-insert-diff("my-bindings.el")
magit-wash-raw-diff()
magit-wash-sequence(magit-wash-raw-diff)
magit-wash-raw-diffs()
@pcmantz
pcmantz / Xdefaults
Created February 2, 2012 06:18
rxvt-unicode description
! Xdefaults
! default configuration for X-based programs
!-----------------------------------------------------------------------
! urxvt
!-----------------------------------------------------------------------
! unicode
URxvt.imLocale: en_US.UTF-8
86-apple-darwin11-llvm-gcc-4.2: -E or -x required when input is from standard input
pmantz@interzone:~$ clear
pmantz@interzone:~$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
pmantz@interzone:~$ gcc-4.2 -v
Using built-in specs.
pmantz@interzone:~$ env | grep rvm
rvm_bin_path=/Users/pmantz/.rvm/bin
rvm_tar=tar
rvm_path=/Users/pmantz/.rvm
rvm_uname=Darwin
rvm_prefix=/Users/pmantz
PATH=/Users/pmantz/bin:/Users/pmantz/perl5/perlbrew/bin:/Users/pmantz/perl5/perlbrew/perls/perl-5.14.2/bin:/Applications/Emacs.app/Contents/MacOS/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/pmantz/.rvm/bin:/Users/pmantz/.rvm/bin
PATH_WITHOUT_PERLBREW=/Applications/Emacs.app/Contents/MacOS/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/pmantz/.rvm/bin
rvm_version=1.10.3
#!/usr/bin/env bash
# bashrc: bash initscript
#
# Customized for use by Paul Mantz
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more
# options don't overwrite GNU Midnight Commander's setting of
+ /scripts/cli : __rvm_parse_args() 755 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 756 > export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ /scripts/cli : __rvm_parse_args() 756 > PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ /scripts/cli : __rvm_parse_args() 787 > [[ -z '' ]]
+ /scripts/cli : __rvm_parse_args() 787 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 789 > [[ 0 -eq 1 ]]
+ /scripts/cli : __rvm_parse_args() 789 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n install ]]
+ /scripts/cli : __rvm_parse_args() 21 > rvm_token=install
+ /scripts/cli : __rvm_parse_args() 23 > (( 1 > 0 ))
+ [[ -n '' ]]
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ /scripts/cli : __rvm_parse_args() 787 > [[ -z '' ]]
+ /scripts/cli : __rvm_parse_args() 787 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 789 > [[ 0 -eq 1 ]]
+ /scripts/cli : __rvm_parse_args() 789 > [[ -n '' ]]
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n install ]]
+ /scripts/cli : __rvm_parse_args() 21 > rvm_token=install
+ /scripts/cli : __rvm_parse_args() 23 > (( 1 > 0 ))
pmantz@interzone:~$ echo ruby-1.9.2-p318 | sed -e 's/-n.*//'
ruby-1.9.2-p318
pmantz@interzone:~$ echo $(echo ruby-1.9.2-p318 | sed -e 's/-n.*//') #?
ruby-1.9.2-p318
pmantz@interzone:~$