This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void(prompt('Encoded:',encodeURIComponent(prompt('Stringtoencode:')))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
public class UDPListener | |
{ | |
private const int listenPort = 11000; | |
private static void StartListener() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#seen on http://www.unixmen.com/11-useful-commands-for-linuxunix-administrators/ | |
read -s pass; echo $pass | md5sum | base64 | cut -c -16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAlbumPhotos(albumid){ | |
FB.api("/"+albumid+"/photos",function(response){ | |
var photos = response["data"]; | |
var html = "count "+photos.length; | |
for(var i=0;i<photos.length;i++) { | |
var images = photos[i]["images"]; | |
html+= "Photo "+(v+1); | |
html+= '<img src="'+images[(images.length-1)]["source"]+'" />'; | |
var tmp = ""; | |
for(var j = 0 ;j<images.length;j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$content = file_get_contents("http://whatthecommit.com/"); | |
preg_match("#<p>(.*)#i",$content,$match); | |
$message = $match[1]; | |
echo $message; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map = function() { emit(this.e, { notifications : this.notifications});}; | |
var reduce = function(key, values) { | |
var count = 0; | |
values.forEach(function(docs) { | |
for(var doc in docs.notifications){ | |
if(docs.notifications[doc].date>1332836355){ | |
count+=1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// has also some orther sites that is not a disposable mail service | |
$disposalbe = array( | |
'veryrealemail.com', // mirror of mailinator | |
'rtrtr.com', | |
'bobmail.info', | |
'tradermail.info', // mirror of mailinator | |
'omurtlak.com', | |
'mp3dinleq.com', // top spammer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ !-d "reduced" ]]; then | |
mkdir "reduced"; | |
fi | |
b=0 | |
for i in `ls -v`; do convert -quality 50 $i reduced/`printf %03d $b`.jpg; ((b++)); done |