Skip to content

Instantly share code, notes, and snippets.

@Robertof
Robertof / Xenon.cs
Created March 16, 2014 18:39
Xenon. An IP renewal manager. Works with Netgear routers (or any router which supports telnet & telnetEnable). Generate the packet with the source provided here: http://wiki.openwrt.org/oldwiki/OpenWrtDocs/Hardware/Netgear/TelnetConsole
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Xenon
{
class Xenon
{
private static string pcName;
115 | download | | | | |
180upload | download | upload | | | probe |
1fichier | download | upload | delete | list | probe |
2shared | download | upload | delete | | probe |
4shared | download | upload | | list | probe |
anonfiles | download | upload | | | probe |
anonymousdelivers|download | upload | | | probe |
bayfiles | download | upload | delete | | probe |
bayimg | download | upload | delete | | probe |
billionuploads | download | upload | | | probe |
@Robertof
Robertof / HoloColorSequenceGenerator.java
Created August 6, 2013 15:12
Class for Android application to generate Holoish color sequences.
package it.robertof.rpm.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Wanna some cool colors? Enjoy.
* (see {@link HoloColorSequenceGenerator#randomColor()})
* @author Robertof
#!/usr/bin/perl
# PlIB's Googlefight module
# Description: battles given keywords based on amount of google search results and announces the winner
# BASED ON: rbot's plugin googlefight
# Originally written by: Raine Virta <[email protected]>
# Usage: !googlefight keyword1 keyword2 [keyword3 ...]
package Plib::modules::googlefight;
use strict;
use warnings;
<?php
/**
* Robertof's CMS config parser.
* Written by Robertof, released under GNU/GPL version 3.
* Strictly coded while hearing Children of Bodom! \m/
* It's gonna be quite complex, it will support the following options:
* - configuration options grouping (groupa.optiona, groupb.optionb, ecc.)
* - configuration options delimited by '='. Lines terminated by a ';'.
* - support for string and integer values
* - support for hashes with { 'k1' > 'v1' } and
@Robertof
Robertof / JDownloaderPwdDecrypter.java
Created April 12, 2013 18:44
Decrypts JDownloader account data from 'org.jdownloader.settings.accountsettings.accounts.ejs' files. Supports dumping to file and direct printing. For educational purposes only. (...)
/**
* Created by Robertof <[email protected] / http://about.me/roberto.f>.
* File creation date: 12-apr-2013 16.24.15
* Licensed under GNU/GPL v3.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@Robertof
Robertof / mailinator_client.pl
Created December 20, 2012 17:20
Provides a simple Mailinator mail fetcher from commandline. Usage: perl mailinator.pl -m yourmailinatormail perl mailinator.pl -l -- enables loop mode, which never stops the script from execution perl mailinator.pl -- generates a random address.
#!/usr/bin/perl
# Mailinator Client, by Robertof (about.me/roberto.f)
use strict;
use warnings;
use Getopt::Long;
use Term::ANSIColor qw(:constants);
use LWP::UserAgent;
$Term::ANSIColor::AUTORESET = 1;
$|++;
@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; }
}
@Robertof
Robertof / Utils.java
Created October 23, 2012 14:23
[sharing time] Utils class for gist 3938993
/**
* Created by Robertof <[email protected] / 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 / 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 #
# [email protected] #
# License...........GNU/GPL version 3 #
########################################
# Provides methods for RSA key #
# generation, DSA signing and more. #
########################################