Random string generator php 12345678910111213141516171819202122// Generate a random character string function rand_str($length = 63, $chars = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_-[]\,./’) { // Length of character list $chars_length = (strlen($chars) – 1); // Start our string $string = $chars{mt_rand(0, $chars_length)}; // Generate random string for [...]
ICT.ba
Information and Communication Technologies
Tag Archives: bash
Duple datoteke
Sa vremena na vrijeme imam potrebu ocistiti neke duple datoteke sa masine tako da sam nasao skriptu koja savrseno radi svoj posao tj pronalazi duple datoteke. Instalacija: Debian way: apt-get install fdupes RH way: yum install fdupes i vrlo jednostavno pretrazite direktorij npr. 1fdupes -r /var/www/vhosts/domena.tld/httpdocs/usr/slike/ > ~/duple_slike.txt

