I hereby claim:
- I am joaopizani on github.
- I am joaopizani (https://keybase.io/joaopizani) on keybase.
- I have a public key whose fingerprint is A24C A3FF 5F98 97AB F02D 59DA 392A 829D B04D BC17
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| """ | |
| Copyright (c) 2009 Simeon Franklin | |
| MIT Licensed: see http://www.opensource.org/licenses/mit-license.php | |
| pydelatt.py - Strips attachments from maildir format mail | |
| files. Sample usage: | |
| $ find ./Maildir -mtime +120 -size +3M | xargs -ix pydelatt.py -v 'x' |
| # Default session directory. Make sure you don't run multiple instances with the same dir. | |
| session = ~/torrent/session | |
| # Maximum and minimum number of peers to connect to per torrent. | |
| min_peers = 50 | |
| max_peers = 400 | |
| # Same as above but for seeding completed torrents (-1 = same as downloading) | |
| min_peers_seed = 20 |
| " set makeprg so that when you activate :make, then make -j<N+1> is | |
| " run, where N is the exact number of processor cores in your machine. | |
| function! SetMakeprg() | |
| if !empty($NUMBER_OF_PROCESSORS) | |
| let n = $NUMBER_OF_PROCESSORS + 0 | |
| elseif filereadable('/proc/cpuinfo') | |
| let n = system('grep -c ^processor /proc/cpuinfo') + 0 | |
| else | |
| let n = 1 | |
| endif |
| {-# LANGUAGE PackageImports, BangPatterns, QuasiQuotes #-} | |
| module Main where | |
| import Data.Word | |
| import Control.Monad | |
| import System.Environment | |
| import Data.Array.Repa as R | |
| import Data.Array.Repa.IO.BMP | |
| import Data.Array.Repa.IO.DevIL | |
| import Data.Array.Repa.Stencil |
| IFS=$'\n'; for i in $(find /media/midia/musicas -type f -name '*.wma'); do | |
| mplayer -vc dummy -vo null -ao pcm:fast:file=/tmp/tmp.wav $i | |
| lame /tmp/tmp.wav $(dirname $i)/$(basename $i .wma).mp3 | |
| done; rm /tmp/tmp.wav; unset $IFS |
| # the following two lines give a two-line status, with the current window highlighted | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
| # huge scrollback buffer | |
| defscrollback 5000 | |
| # no welcome message | |
| startup_message off |
| " Some simple customization that should not depend on plugins. | |
| " Mostly UI tweaks, mappings and segregation of backup files. | |
| " Some mappings trigger plugin actions, but if the plugins are not installed | |
| " you can just avoid using these (few) mappings. | |
| " where your segregated vim metafiles should all reside - change if you want | |
| let $VIMROOT = expand("$HOME") . "/vimfiles" | |
| set nocompatible | |
| filetype plugin indent on |