Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* InfernoBot 3.0
* Created by Robertof
* Released under GNU/GPL 3.0
*
* http://www.informarts.org
*/
<?php
if (isset ($_GET["risposta"]) && $_GET["risposta"] == "quadrato") {
$_COOKIE["LQui"] = md5 ("3rd");
header ("Location: third.php");
exit;
} else {
header ("Location: second.php");
exit;
}
?>
@Robertof
Robertof / lufny_dark_theme.css
Created May 14, 2012 18:29
Lufny Dark theme v1.0
@namespace url(http://www.w3.org/1999/xhtml);
/* Lufny dark theme v1.0 */
/* Author: Robertof */
/* The code is very bad, but I wrote this in 15 minutes, so.. */
/* Screenshot: http://i.imgur.com/yuTVX.png */
/* Fix for /about.html page */
@-moz-document url("http://lufny.it.cx/about.html") {
body { color: #fff; }
@Robertof
Robertof / imgur.pl
Created May 15, 2012 21:31
imgur uploader v1.1
#!/usr/bin/perl
# Robertof's imgur uploader version 1.1
# Author: Guess who? Robertof
# Requirements: LWP::UserAgent, Term::ProgressBar, Getopt::Long, Term::ANSIColor, File::Basename, Pod::Usage
# Based on shura's imageshack uploader.
use strict;
use LWP::UserAgent;
use Term::ProgressBar 2.00;
use Getopt::Long;
use Term::ANSIColor qw(:constants);
@Robertof
Robertof / zippyshare_downloader.pl
Created August 5, 2012 18:49
This snippet allows to download without going through the site from Zippyshare. Licensed under GNU/GPL v3 (I'm too lazy to add the header)
#!/usr/bin/perl
# =================================
# @author Robertof #
# @license GNU/GPL v3 #
# @name Zippyshare downloader #
# @reqby deletefile #
# @requires curl #
# =================================
use strict;
use warnings;
@Robertof
Robertof / encryption_manager.php
Created August 26, 2012 16:13
This snippet allows to encrypt and decrypt with mcrypt in PHP. Default algorithm and mode are Rijndael256 and CBC.
<?php
// Author: Robertof
// You are free to use this, but please don't remove my name from the source. ty :3
class EncryptionManager
{
private $algorithm;
private $mode;
private $cipher;
public function __construct ($algorithm="rijndael-256", $mode="cbc")
@Robertof
Robertof / EncManager.java
Created October 23, 2012 14:17
[sharing time] Java AES256 CBC Helper Encryption/Decryption/Keygeneration/Serialization class
/**
* Created by Robertof <robertof.public@gmail.com / http://about.me/roberto.f>.
* File creation date: 10-ott-2012 19.12.25
* Licensed under GNU/GPL v3.
*/
package com.robertof;
import java.io.UnsupportedEncodingException;
import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
@Robertof
Robertof / EncryptionManager.pm
Created October 23, 2012 14:19
[sharing time] Perl module for encrypting/decrypting/keygenerating/serializating of DSA, RSA and AES256CBC data
#!/usr/bin/env perl
########################################
# Author............Robertof #
# Website...........about.me/roberto.f #
# Mail.......robertof.public@gmail.com #
# License...........GNU/GPL version 3 #
########################################
# Provides methods for RSA key #
# generation, DSA signing and more. #
########################################
@Robertof
Robertof / Utils.java
Created October 23, 2012 14:23
[sharing time] Utils class for gist 3938993
/**
* Created by Robertof <robertof.public@gmail.com / http://about.me/roberto.f>.
* File creation date: 10-ott-2012 19.14.37
* Licensed under GNU/GPL v3.
*/
package com.robertof;
public class Utils {
public static String bytesToHex(byte[] bytes) {
final char[] hexArray = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
@Robertof
Robertof / bffixer.css
Created November 4, 2012 15:24
facebook big fonts fixer (just because I'm a smallfonts fag)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
.messageBody, .uiStreamHeadline { font-size: 11px !important; }
.actorName a { font-size: 12px !important; }
.uiStreamMessage { margin-top: -2px !important; }
}