Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Required header that tells the browser how to render the text.
print "Content-Type: text/plain\n"
# Print a simple message to the display window.
print "Made with Python and honour."
<?php
function checkEmail($email){
// checks proper syntax
if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email)){
return false;
}
// gets domain name
list($username,$domain)=split('@',$email);
// checks for if MX records in the DNS
$mxhosts = array();
<?php
header("Content-type: image/png");
if ($_GET["size"] != "")
$size = $_GET["size"];
else
$size = 128;
if ($_GET["frame"] != "")
$frame = $_GET["frame"];
else
$frame = 8;
@PixelRobot
PixelRobot / blocky.py
Created January 9, 2014 23:49
A little script for blocking or unblocking sites editing your hosts file. It can't add lines, but it comments or uncomments it to unblock or block sites.
from colorama import init, Fore
from os import system, name
init()
route = "/etc/hosts"
f = open(route)
lines = f.readlines()
f.close()

Keybase proof

I hereby claim:

  • I am PixelRobot on github.
  • I am pixelrobot (https://keybase.io/pixelrobot) on keybase.
  • I have a public key whose fingerprint is 0E57 154D B294 36CC B8CA 86CE B1CF 30C6 B5EC 8AC5

To claim this, I am signing this object:

@PixelRobot
PixelRobot / notes.js
Last active January 20, 2024 22:11
A bookmarklet for taking notes in the browser
javascript:(
function(doc){
doc.write('<body contenteditable style="font:12px monospace; max-width:50em; margin:0; padding:10px;">');
var key = 'PixelRobot';
var body = doc.querySelector('body');
if (localStorage[key] != undefined)
body.innerHTML = localStorage[key];
else
body.innerHTML = 'Type your notes here';
body.oninput = function(){
@PixelRobot
PixelRobot / links.js
Last active March 24, 2016 11:12
A bookmarklet for linking to fragments inside a text
### Keybase proof
I hereby claim:
* I am PixelRobot on github.
* I am pixelrobot (https://keybase.io/pixelrobot) on keybase.
* I have a public key whose fingerprint is 9655 E4F3 B758 B651 FEE7 D328 B0F9 D937 1D85 A7DA
To claim this, I am signing this object:
BEGIN MESSAGE.
Ae7ppe55USttzMQ Ajg3Yt7ZBg52YTC sAw88IK7JawfHDb 2HQEwQNsQw6fgRq
OKQJ1g4CrSpoLEC uO0i1nfMnU5TCKq 6Xr2MZHgg7F8PL7 VszbvYIZATEeB6R
FTcu8JvZWQC23OA 8QlGwoZNtc0QQIg b1PETRWCLRjvz4B 1dSLCHVPEJ3OF68
gHXs1q5x3KyRwzz hdxjhBqwoAB2GHW EUV7M7tiSkCT.
END MESSAGE.