Skip to content

Instantly share code, notes, and snippets.

View facundobianco's full-sized avatar

Facundo Bianco facundobianco

View GitHub Profile
@facundobianco
facundobianco / procmail for trac
Created May 5, 2015 15:15
I use trac as ticket report systen and I don't want to store emails with status "accepted" or "fixed"
MAILDIR=/home/vando/spool/mail
DEFAULT=/home/vando/spool/mail/inbox/
:0
* ^X-Trac-Version
{
:0B:
* \* status.*(accepted|closed)
/dev/null
ssh()
{
if [ -z "$SSH_AUTH_SOCK" ]
then
eval `/usr/bin/ssh-agent`
elif [ "$SSH_AUTH_SOCK" != "`echo /tmp/ssh-*/agent.*`" ]
then
export SSH_AUTH_SOCK=`echo /tmp/ssh-*/agent.*`
fi
#!/bin/bash
MAILDIR=/home/vando/.getmail
MAILNAM="account0 account1 account2"
GETMAIL=`whereis getmail`
if [ -z "`pgrep -f ${GETMAIL}`" ]
then
for NAM in ${MAILNAM}
do
@facundobianco
facundobianco / 30_process
Created May 13, 2015 13:42
Action script to kill process before suspend.
#!/bin/sh
#
# /etc/pm/sleep.d/30_process
# Action script to kill process before suspend.
PROCESS="ssh getmail"
PATH=/usr/bin
case ${1} in
suspend|hibernate)
@facundobianco
facundobianco / Proxy de Fibertel bloquea remote access
Created May 22, 2015 23:13
Imposible conectarse con Fibertel de forma remota a tu casa porque tienen un proxy
> nmap -sV MYIP | sed -n '/PORT/,$p'
PORT STATE SERVICE VERSION
25/tcp filtered smtp
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
1080/tcp filtered socks
1720/tcp filtered H.323/Q.931
3128/tcp filtered squid-http
@facundobianco
facundobianco / compaq presario mouse pointer issue
Created May 27, 2015 16:15
If you have a Compaq Presario and your mouse pointer moves up without your control, try this
echo "install psmouse proto=imps" > /etc/modprobe.d/touchpad
rmmod psmouse
modprobe psmouse proto=imps
$> wget -qO - http://distfiles.gentoo.org/distfiles/dina-pcf-2.89.tar.gz | tar ztf -
Dina-PCF/
Dina-PCF/DinaBold10.pcf
Dina-PCF/DinaBold8.pcf
Dina-PCF/DinaBold9.pcf
Dina-PCF/DinaBoldItalic10.pcf
Dina-PCF/DinaBoldItalic8.pcf
Dina-PCF/DinaBoldItalic9.pcf
Dina-PCF/DinaItalic10.pcf
Dina-PCF/DinaItalic8.pcf
@facundobianco
facundobianco / esmtp on openBSD
Created May 27, 2015 19:42
I used it on openBSD 5.5
# libesmtp
# with "--enable-debug=yes" you can use "-X /tmp/esmtp" option
ftp -4 http://www.stafford.uklinux.net/libesmtp/libesmtp-1.0.6.tar.gz
tar zxf libesmtp-1.0.6.tar.gz && cd libesmtp-1.0.6
./configure --prefix=/usr/local --enable-debug=yes
make && make install
# esmtp
ftp -4 ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/esmtp-1.2.tar.bz2
tar jxf esmtp-1.2.tar.bz2 && cd esmtp-1.2
@facundobianco
facundobianco / vifmrc
Created May 27, 2015 19:43
For vifm 0.5
# I really hate vifm 0.7.x, I still using vifm 0.5
VI_COMMAND=jed
USE_TRASH=0
USE_ONE_WINDOW=1
USE_SCREEN=0
LEFT_WINDOW_SORT_TYPE=1
RIGHT_WINDOW_SORT_TYPE=1
LWIN_FILTER=\.o$
LWIN_INVERT=1
RWIN_FILTER=\.o$
apt-get install --no-install-recommends -y hdparm lshw
hdparm -I /dev/sda | sed -n '/Number/p;/size.*GB/p'
lshw -class disk -class storage