Posted by root
Wed, 09 Jul 2008 22:40:00 GMT
Here’s the mirror
Behind there is a screen
Turn around
On both ways you can get in
The experience of survival
Look around just people, can you hear their voice
Find the one who’ll guide you to the limits of your choice
The experience / of survival
Try to think about it …
That’s the chance to live your life and discover
Try to think about it
The experience of survival
The experience …
The experience of survival
The experience …
Posted in programming | Tags Enigma | 1 comment
Posted by root
Wed, 09 Jul 2008 20:08:00 GMT

Posted in programming | Tags web | no comments
Posted by root
Mon, 30 Jun 2008 07:33:00 GMT
Charts for a map (in this example I’ve included Spain, France, Italy and Norway):
more about this API
Posted in programming | Tags Google | no comments
Posted by root
Fri, 30 May 2008 00:06:00 GMT
command-line cheat sheets
279 cheat sheets:
$cheat sheets
$cheat unix_text
One of Unix’s most useful features is its large number of text/data
manipulations programs. Some of the more propular include:
cat - concatenate and display files
cut - remove selected fields from each line of a file
sort - sort and collate lines
uniq - remove or report adjacent duplicate lines
awk - pattern scanning and processing language
sed - stream editor
tr - translate characters
diff - display line-by-line differences between pairs of text files
grep, egrep, fgrep - search a file for a string or regular expression
paste - join corresponding lines of several files, or subsequent lines of one
file
colrm - remove characters from specified columns within each line
expand, unexpand - expand TAB characters to SPACE characters, and vice versa
Posted in programming | Tags manuals | no comments
Posted by root
Fri, 28 Mar 2008 20:06:00 GMT
Posted in programming | Tags 42 | 2 comments
Posted by root
Tue, 12 Feb 2008 20:12:00 GMT
Perl
$a = ("a", "b", "c"); # $a is "c" - the last element
($a) = ("a", "b", "c"); # $a is "a" - the first element
Ruby
obj = ["a", "b", "c"]
obj, b, c = ["a", "b", "c"]
Posted in programming, Ruby, Perl | no comments
Posted by root
Tue, 12 Feb 2008 19:16:00 GMT
The idea comes from http://www.waider.ie/hacks/workshop/perl/lotto.pl script.
Should I be so wasteful? No:
irb
my_numbers = [1,2,3,4,5,6]
winning_numbers = [1,2,3,41,42,43]
result = 6 - (winning_numbers - my_numbers).size
puts "#{result} " +
if not result.eql? 0
"hits"
else
"hit"
end
Posted in programming, Ruby | Tags senseless | no comments
Posted by root
Sat, 29 Dec 2007 15:31:00 GMT
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char** argv)
{
int root_id = 0;
char *command = argv[1];
if(!command)
command = "/bin/bash";
setuid(root_id);
system(command);
exit(0);
}
root# gcc -o temproot temproot.c
root# chmod +s temproot
nobody$ alias root=’temproot “su – root”’
nobody$ root
Posted in programming | Tags administration | no comments
Posted by root
Fri, 30 Nov 2007 14:28:00 GMT
Perl
($a, $b) = (1, 2);
@arr = (1, 2);
Python
Ruby
a, b = 1, 2
arr = 1, 2
arr = 1,2, *[11,22]
arr = [1,2, [11,22]].flatten
the ’*’ example was stolen from
Ola Bini’s blog
Posted in programming, Ruby, Perl | Tags shortcuts | no comments
Posted by root
Tue, 30 Oct 2007 00:44:00 GMT
Unwand – fast and free program for wand password recovery.
Posted in programming | Tags password, recovery | no comments