Home > personal > #!Hackgust -w

#!Hackgust -w

#!Hackgust -w

# RANDOM STUFF
echo $RANDOM

Yep now I can save a life:


I have network problems almost all this month
Script to login wireless network in Martin Luther King Jr Public Library:

#!/bin/bash
# use your card number and pin, but not work this anymore
#card=____________ # your number card
#pass=____________ # your password
#curl -k -d "user=$card&password=$pass&cmd=authenticate&Login=Log+In" \
#"https://securelogin.arubanetworks.com/cgi-bin/login" > /dev/null
 
# Now all wireless access use this account:
curl -k -d "user=mlkjr&password=library&cmd=authenticate&Login=Log+In" \
"https://securelogin.arubanetworks.com/cgi-bin/login" > /dev/null

I use the public library wireless to access Skype but the port was blocked, no problem use a proxy

My .bash_aliases are something like this:

alias proxy1='ssh -C -D $PORT -fN $user1@domain1' # -C compress slow connection
alias proxy2='ssh -D $PORT -fN $user3@domain3' 
alias proxyn='ssh -D $PORT -fN $user3@domain2'
# using amazon ec2 ?
alias proxyamazon='cd ~/.ec2; ssh -D $PORT -fN -i $USER.pem $USER@$AMAZON_SERVER'

Proxy tools tsocks and proxychains

sudo apt-get install tsocks proxychains

I have problems with tsocks for GUI applications so I use proxychains for Opera and Skype:
My proxychains.conf:

strict_chain
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks5 127.0.0.1 $PORT

Run many firefox profiles with diff (proxy, addons, etc):

#!/bin/sh
firefox -P $1 --no-remote &

Use Google Chrome with this extensions:

Read about CSS frameworks:


Using recaptchalib on PHP

<?php
// Hide e-mail using recaptchalib
require_once('recaptchalib.php');
 
// return link (click popup to recaptcha)
function hide_mail($mail) {
    $mailhide_pubkey='____'; // your public key
    $mailhide_privkey='____'; // your private key
    $mail_url =  recaptcha_mailhide_url ($mailhide_pubkey, $mailhide_privkey, $mail);
    return "<a href=\"$mail_url\" onclick=\"window.open('$mail_url', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">e-mail</a>";
}
?>

I use Python to improve the speed I put my eye and use this modules: thread, multiprocessing

I check this projects too (asynchronous io):

Howto export txt to doc and pdf (using python and openoffice):

#!/bin/bash
# convert resume.txt resume.pdf # very bad quality (ImageMagick)
soffice -accept="socket,port=8100;urp;" # for remote access
python DocumentConverter.py resume.txt resume.doc # Word Document
python DocumentConverter.py resume.doc resume.pdf # PDF Document

Download PyODConverter


I Use Perl:

How to try and catch on Perl (Handling exceptions):

# Error handling on Perl:
eval {
    # your perl code here
};
if ($@) {
    print "Error: "$@;
}

Perl is amazing for regular expressions a simple example XML file to CSV:

#!/bin/sh
curl -o "feed.xml" "http://albertux.ayalasoft.net/feed/"
perl -ne  'if (/<title>(.*)</) {print $1}
    elsif (/<link>(.*)</) {print ",$1"}
    elsif (/<pubDate>(.*)</) {print ",$1\n"}' "feed.xml"

NoSQL

Read about NoSQL and check this projects:

Only play with CouchDB and MongoDB on my notebook.


Personal Web projects:

Screens:


I will finish this two on this month (that the plan)


Post Youtube videos on facebook using fbcmd:

#!/bin/bash
# HOWTO: ./script.sh "text" "url"
fbcmd post flash "$1" "http://www.youtube.com/v/${2#*=}" \
"http://img.youtube.com/vi/${2#*=}/0.jpg"

Thanks Mom for this pillow:


My Grandpa, Mother and Uncle on the Skydeck Chicago:

The last two pics with long hair:

apt-get remove long-hair

and now:



For the next month I’m ready.

#include "spanish.h"

Se me olvido mandar saludos a toda la banda en especial a los que ya son papas un saludo a Hector y a Hector Jr, un Saludo a Tere y a Sara su baby, un saludo a toda la banda de MTY pro (Ron, Ortiz Antonio, Texky, Saul (El Unhappy), Alberto Jorge (El champi), la banda del SITE de FIME (Dante, Moy, Felipe), a toda la banda ex Sinemed, a toda la banda ex DGI o DGI (Joaquin el big boss, Joel, a los dos Javieres Rene, Ofelia, Alberto, Jaquelin, Zaira) y a la raza de Softtek (Angel Tomas, Alfredo Pedraza), a la raza del Hacker Room Mx (Hugo, Cesar Salasar, DFectuoso)

SI se me olvida alguien porfavor perdonenme no lo hago a proposito

No e tomado video por que mi camara no funciona (las fotos fueron tomadas con el celular)

Categories: personal Tags: , , , , ,
  1. Hector Monsivais
    September 3rd, 2010 at 20:37 | #1
    Surfing Firefox 3.6.8 Firefox 3.6.8 on Windows XP Windows XP

    Y mis saludos? ¬¬! :@

    Ya no te dare retweet :(

    jajajajaja

    Chido we, mejor ya no consigas jale de Sistemas, mejor vete de socorrista :D , creo que todo lo que es salud por alla es mejor pagado no? :P

  2. Albertux
    September 3rd, 2010 at 21:03 | #2
    Surfing Firefox 3.6.8 Firefox 3.6.8 on Ubuntu Ubuntu

    De hecho ando pensando en ser voluntario de la cruz roja (lo tengo que pensar bien), primero quiero terminar unos proyectos que tengo en mente y ya veremos despues que pasa :D

    Esta mejor freelancear un rato de momento en California.

  3. September 30th, 2010 at 16:22 | #3
    Surfing Firefox 3.6.10 Firefox 3.6.10 on Mac OS Mac OS

    Pues acabalos y entra de apoyo voluntario, capas te mandan aca para veracruz :P

    Hechale ganas we pronto algo pega chido y te quedas otro tiempo mas en el desarrollo.

    Saludos.

  1. No trackbacks yet.