One liner:

pass=`cat /dev/urandom | head -2 | tr -cd 'a-zA-Z0-9!@#$%^&*()_+-=][';/.,'`; echo ${pass:4:30}

function in .bashrc:

pass(){
    password=`cat /dev/urandom | head -2 | tr -cd 'a-zA-Z0-9!@#$%^&*()_+-=][';/.,'`;
    echo ${password:4:30}
}

Continue reading

openSUSE on Rasbperry Pi has missing package which makes difficult to use irssi or anyother application that have UTF8 on std-in or std-out especially on zsh!

agilob:~/ $ locale a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
agilob:~/ $ localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8
character map file UTF-8 not found: No such file or directory
cannot read character map directory /usr/share/i18n/charmaps: No such file or directory

Login as root:

root:~/  zypper ref
root:~/  zypper in glibc-i18ndata

Continue reading

Aby używać TOR’a w Linux potrzebujesz klienta TOR oraz privoxy.

1. Przejdź na roota.

Oba pakiety zainstalujesz jedną z poniższych komend:

zypper in tor tor-geoipdb privoxy
yum install tor tor-geoipdb privoxy
apt-get install tor tor-geoipdb privoxy -y

Continue reading

Many people have problem like this one above, even if they configured and installed ATI SDK + OpenCL + ATI Catalyst correctly, without any errors or warnings. But they still cannot run any application which uses their GPU. So here I’ll show you how to fix it and we will try to run oclHashcat to check if the driver is OK after the fix.

At the beginning after installation, I had this error:

$ ./oclHashcat-lite64.bin 9fe8bcafcd86d85172097bd41abc29c0 ?d?d?d?d?d?d?d?d
oclHashcat-lite v0.4 starting...
ERROR: clGetPlatformIDs() -1001

Continue reading

  • Będąc w powłoce używaj CTRL+R do wyszukiwania wpisanych już kiedyś poleceń
  • Dodaj “set -o vi” w swoim ~/.bashrc by używać skrótów klawiaturowych z VI zamiast emacsowych
  • używaj sedowej składni zastępowania tesktu w bashu
$ ls Downloads/
$ ^wnload^cument
 
  • używaj składni !!:n, gdzie n to parametry poprzedniego polecenia, możesz je podawać w zakresie:
$ ls Downloads/ Documents/ Projects/
ls Documents/:
ls Downloads/:
ls Projects/:

$ ls !!:1-2
ls Downloads/ Documents/

Continue reading