Permalink
Browse files

some cleanup

  • Loading branch information...
myfreeweb committed Jan 3, 2013
1 parent 82bef81 commit 8652fb2d7dff4c14e5adb9abd7f8bc3cf47104f0
Showing with 7 additions and 15 deletions.
  1. +3 −0 bin/vidposter
  2. +1 −1 filesort.rb
  3. +1 −2 irbrc.rb
  4. +0 −2 ledgerrc
  5. +2 −6 rc
  6. +0 −4 zshrc
View
@@ -0,0 +1,3 @@
+#!/usr/bin/env zsh
+if [[ $2 != "" ]]; then TIME=$2; else TIME='00:00:03'; fi
+ffmpeg -i $1 -an -ss $TIME -an -r 1 -vframes 1 -y $(echo $1 | sed 's/^\(.*\)\.[^.]*$/\1/')_poster.jpg
View
@@ -1,7 +1,7 @@
os :osx do
folder "/Users/myfreeweb/Downloads" do
downloaded_from %r{destroyallsoftware} do
- open
+ open_in :default
end
ext :html do # Accidental opt+clicks in a browser
View
@@ -133,7 +133,7 @@ def clear
end
alias c clear
-%w{sketches hirb hirb/import_object ap pp what_methods map_by_method}.each do |lib|
+%w{hirb hirb/import_object ap}.each do |lib|
begin
require lib
rescue LoadError => err
@@ -142,7 +142,6 @@ def clear
end
begin
- Sketches.config :editor => ENV["EDITOR"]
Hirb.enable
extend Hirb::Console
rescue LoadError => err
View
@@ -1,2 +0,0 @@
---date-format %Y-%m-%d
---sort d
View
8 rc
@@ -12,19 +12,13 @@ alias ci="git commit -am"
alias g="git"
alias gaes="dev_appserver.py -a 0.0.0.0 ."
alias gi="gem install"
-alias iaw="open -a 'iA Writer'"
alias l="ls"
alias p="popd"
alias r="rails"
alias vi="vim"
alias e="vim" # ;e -- semicolon gets eaten
-alias v="fasd -e vim"
alias collapse="sed -e 's/ */ /g'"
alias P="$PAGER"
-alias ele="$EDITOR $LEDGER_FILE"
-alias ass="ledger -s bal Assets"
-alias pipup="pip freeze --local | cut -d = -f 1 | xargs pip install -U"
-alias pipfr="pip freeze --local > requirements.txt"
alias emacs="TERM=xterm-256color emacs"
alias ..="cd .."
alias ...="cd ../.."
@@ -47,3 +41,5 @@ alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.
alias s_http="python -m SimpleHTTPServer"
alias s_smtp="python -m smtpd -n -c DebuggingServer localhost:1025"
alias pinst="sudo python setup.py install; and sudo rm -r build dist *egg-info"
+alias pipup="pip freeze --local | cut -d = -f 1 | xargs pip install -U"
+alias pipfr="pip freeze --local > requirements.txt"
View
4 zshrc
@@ -69,10 +69,6 @@ psack() { ps auxww | ack $* | ack -v ack | collapse | cut -d' ' -f 2,11- }
alias "ps?"=psack
cljv() { curl -s https://clojars.org/$1 | grep version | head -n 1 | sed -e "s/<[a-z\/=\" ]*>//g" -e "s/&lt;[\/a-z]*&gt;//g" }
dighost() { host $(dig $1 | grep ANSWER -C 1 | tail -n 1 | awk '{ print $5 }') }
-vidposter() {
- if [[ $2 != "" ]]; then TIME=$2; else TIME='00:00:03'; fi
- ffmpeg -i $1 -an -ss $TIME -an -r 1 -vframes 1 -y $(echo $1 | sed 's/^\(.*\)\.[^.]*$/\1/')_poster.jpg
-}
echoarrow() { echo "$fg_bold[black]====> $fg_no_bold[yellow]$*$reset_color" }
updatestuff() {
echoarrow "Updating dotfiles w/ submodules" && (cd $DOTFILES && git pull && git su)

0 comments on commit 8652fb2

Please sign in to comment.