Permalink
Browse files

meow

  • Loading branch information...
1 parent 079b5d7 commit d21858a626843531a6a496e2e4267ac8e20b11d3 @novas0x2a committed Mar 16, 2013
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Version=0.9.4
-Type=Application
-Name=Qwit
-Comment=
-Exec=/usr/bin/qwit
-StartupNotify=false
-Terminal=false
-Hidden=false
-
@@ -1,7 +0,0 @@
-
-[Desktop Entry]
-Type=Application
-Name=Pidgin
-Exec=/usr/bin/env -u GNOME_DESKTOP_SESSION_ID pidgin -n
-Icon=system-run
-Comment=
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=QTwitter
-Exec=/usr/bin/qtwitter
-Icon=system-run
-Comment=
-Hidden=true
-
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Trayer
-Name[en_US]=Trayer
-Exec=trayer --edge top --align right --widthtype pixel --heighttype pixel --width 180 --height 20 --SetDockType true --SetPartialStrut true --transparent true --tint 0x777777 --alpha 0
-Icon=system-run
-Comment=
-Comment[en_US]=
-X-GNOME-Autostart-enabled=true
-Hidden=true
-
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=XMonad
-Exec=xmonad
-Icon=system-run
-Comment=
-X-GNOME-Autostart-enabled=true
View
@@ -25,11 +25,6 @@
!/.msmtprc
!/.terminfo
-
-!/.config
-/.config/*
-!/.config/autostart
-
!/.ssh/
/.ssh/*
!/.ssh/config
View
@@ -82,3 +82,6 @@
[submodule ".vim/bundle/virtualenv"]
path = .vim/bundle/virtualenv
url = git://github.com/jmcantrell/vim-virtualenv.git
+[submodule ".vim/bundle/webapi-vim"]
+ path = .vim/bundle/webapi-vim
+ url = git://github.com/mattn/webapi-vim
View
@@ -3,66 +3,41 @@ ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
#PreferredAuthentications hostbased,publickey,keyboard‐interactive,password
NoHostAuthenticationForLocalhost yes
-ServerAliveInterval 5
-ServerAliveCountMax 6
ExitOnForwardFailure yes
-Host router
-HostName 192.168.1.1
-HostKeyAlias vinge.mine.nu
-User root
-CheckHostIP no
+#Host *.github.com github.com
+#ControlPersist 5m
+
+Host *
+ServerAliveInterval 5
+ServerAliveCountMax 6
Host vinge.mine.nu
HostKeyAlias vinge.mine.nu
User root
CheckHostIP no
-Host welcome.local welcome
-HostKeyAlias welcome.local
-User root
-
Host www.fluffypenguin.org
User fluffype
PasswordAuthentication no
Port 7122
-Host look.dreamhost.com
-User learncs
-
-Host devhouse.fihn.net
-User eger
-
-Host dojo-music
-HostName 10.15.0.16
-User music
-
Host localhost
User mike
ForwardAgent yes
-# Nebula
-Host 10.128.*.*
-User root
-
Host mirror.pistoncloud.com
User mike
## Gateway Machines
-Host control-28* control-29* control-30* node-28* node-29* node-30*
-ProxyCommand ssh colo-r2.pistoncloud.com nc %h 22
-
-Host wheelbarrow-1
-User root
+#Host control-28* control-29* control-30* node-28* node-29* node-30*
+#ProxyCommand ssh colo-r2.pistoncloud.com nc %h 22
Host control-20* node-20*
ProxyCommand ssh hq-r.pistoncloud.com nc %h 22
Host control-*-remote node-*-remote lack-*-remote wheelbarrow-*-remote
-ProxyCommand ssh wheelbarrow-null.pistoncloud.com nc %h 22
-
-Host wheelbarrow-*-remote
-User root
+ProxyCommand ssh smurf.pistoncloud.com nc %h 22
Host control-*
User admin
@@ -81,20 +56,9 @@ UserKnownHostsFile /dev/null
Host *
User mlundy
-ForwardAgent yes
-#Host arista-* colo-arista
-#User admin
-#StrictHostKeyChecking no
-#UserKnownHostsFile /dev/null
-#
-#Host lackbox-*
-#User pentosadmin
-#
-#Host piston-* colo-piston-*
-#User root
-#StrictHostKeyChecking no
-#UserKnownHostsFile /dev/null
+Host *.nasa.gov
+ForwardAgent yes
Host wow.*.nasa.gov
ProxyCommand none
View
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCymL7tIllpeVXE6vCmTKZl7Go+LU30AiNRVvxcJ8O185aH+SuwtoqDLyZsyaWXOEjeRuhGB220ViVzySscmk2yKPJi4x5oc+1GN6Bc4W55424R7TENIMpSAJl55uCelQNydZEHMScqcW6dyExgWllUXAicz2eNH9Mte9VIxjSxzi0xpBW5vQKSjDULCXXvFfnYM6uNqKl5vciJV7P8PNIx3vnJTHhfOIXGL1/IlI1I2Z5ILO+FGqDDLR6nEd5qoW1xEvkXePbL8OMcL6mkoV3DJoU+gJhWS/mjUcHaWi7WZ96/kpB0CgoWFKUKvF/spLuJhEGYPsQbI/bVV4mhkEib mike@piston
Submodule webapi-vim added at 4fc927
View
1 .vimrc
@@ -41,6 +41,7 @@ set grepprg=grep\ -nH\ $* " Always show filename for grep
set numberwidth=3 " 3-digit line numbers
set viminfo+=! " Store upper-case registers in viminfo
set updatetime=2000 " Wait before triggering CursorHold event
+set tabpagemax=30
set switchbuf=useopen,usetab " Try to switch to an open tab
if version >= 702
View
@@ -32,6 +32,7 @@ import XMonad.Layout.Grid
import XMonad.Layout.LayoutHints (layoutHintsToCenter)
import XMonad.Layout.NoBorders (smartBorders)
import XMonad.Layout.PerWorkspace (onWorkspace)
+import XMonad.ManageHook (appName)
import XMonad.Prompt.Man (manPrompt)
import XMonad.Prompt.Shell (shellPrompt)
import XMonad.Prompt.Ssh (sshPrompt)
@@ -65,6 +66,7 @@ iEq q x = toUpperQ q =? (map toUpper x)
elemQ :: (Eq a, Functor f) => a -> f [a] -> f Bool
elemQ = fmap . elem
+pApp = appName
pClass = className
pName = stringProperty "WM_NAME"
pRole = stringProperty "WM_WINDOW_ROLE"
@@ -145,11 +147,11 @@ myKeys floatNextWindows conf = mkKeymap conf $
, ("M-`", raiseNext $ pClass =? "Pidgin" ) -- Focus pidgin conv window
, ("M-S-d", spawn "write-all-props" )
- , ("M-s m", rrArgs "chromium" ["--app=https://mail.google.com"] $ "- Gmail" `isSuffixOfQ` pName)
- , ("M-s c", rrArgs "chromium" ["--app=https://calendar.google.com"] $ "Google Calendar" `isPrefixOfQ` pName)
- , ("M-s r", rrArgs "chromium" ["--app=https://www.google.com/reader"] $ "Google Reader" `isPrefixOfQ` pName)
- , ("M-s w", rrArgs "chromium" ["--app=https://docs.google.com"] $ "Google Docs" `isPrefixOfQ` pName)
- , ("M-s n", rrArgs "chromium" ["--app=https://music.google.com"] $ "Music Beta" `isSuffixOfQ` pName)
+ , ("M-s m", rrArgs "chromium" ["--app=https://mail.google.com"] $ pApp =? "mail.google.com")
+ , ("M-s c", rrArgs "chromium" ["--app=https://calendar.google.com"] $ pApp =? "calendar.google.com")
+ , ("M-s r", rrArgs "chromium" ["--app=https://www.google.com/reader"] $ pApp =? "www.google.com__reader")
+ , ("M-s w", rrArgs "chromium" ["--app=https://drive.google.com"] $ pApp =? "drive.google.com")
+ , ("M-s n", rrArgs "chromium" ["--app=https://music.google.com"] $ pApp =? "music.google.com")
, ("M-s p", rrArgs "keepassx" ["/media/disk/Dropbox/pw/Personal.kdb"] $ pClass =? "Personal.kdb")
, ("M-s [", rrArgs "keepassx" ["/media/disk/Dropbox/geocloud/Office : Operations/keys/PistonLogins.kdb"] $ pClass =? "PistonLogins.kdb")
, ("M-s b", rrArgs "thunar" ["~/"] $ pClass =? "Thunar")
@@ -40,6 +40,7 @@ alias gdb='libtool --mode=execute gdb'
alias cgdb='libtool --mode=execute cgdb'
alias track_smart='sudo smartctl --attributes /dev/sda > $HOME/smart/$(date +''%Y-%m-%d_%H-%M-%S'')'
alias screen='ln -sf ${SSH_AUTH_SOCK:-/dev/null} $HOME/.ssh/auth-sock; screen'
+alias vimopen='xargs $SHELL -c '\''vim < /dev/tty "$0" "$@"'\'''
mike-tunnel() {
SERVER=${1:-www.fluffypenguin.org}
@@ -0,0 +1,46 @@
+python-find-imports() {
+
+ find_module() {
+ if [[ -z $1 ]]; then
+ return
+ fi
+ local p
+ p=$(python -c "import ${1}; print ${1}" 2>/dev/null | cut -d \' -f 4 | sed -e 's/\.pyc/.py/')
+ if [[ -n $p ]]; then
+ echo $p
+ else
+ local new
+ new="$(echo $1 | sed -e 's/\(.*\)\.[^.]\+/\1/')"
+ if [[ $new == $1 ]]; then
+ return
+ fi
+ echo "Could not resolve $1 to a module, trying one module higher" >&2
+ find_module $new
+ fi
+ }
+
+ normalize_paths() {
+ while read line; do echo $line | cut -d \' -f 4 | sort -u | sed -e 's/\.pyc/.py/'; done
+ }
+
+ gentoo_lookup() {
+ xargs qfile -C | cut -d ' ' -f 1
+ }
+
+ gentoo_couldnotfind() {
+ xargs qfile -C -o
+ }
+
+ tmp=$(mktemp)
+ for module in $(grep -r --exclude-dir .git import ${1:-.} | sed -e 's/.*from \(\S\+\) import \(\S\+\).*/\1.\2/' -e 's/.*:\s*import \(\S\+\)/\1/g' | grep -v : | sort -u); do
+ find_module $module
+ done | normalize_paths > $tmp
+
+ while read line; do gentoo_lookup $line; done < $tmp
+ while read line; do gentoo_couldnotfind $line; done < $tmp >&2
+}
+
+
+
+#while read import; do module=$(echo $import | cut -d ' ' -f 2); python -c "import ${module}; print ${module}"; done < a > paths
+#cat paths | cut -d \' -f 4 | sort -u | sed -e 's/\.pyc/.py/' | xargs qfile | cut -d ' ' -f 1 | sort -u
Oops, something went wrong.

0 comments on commit d21858a

Please sign in to comment.