This file contains hidden or 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
import glob | |
import sys | |
import os | |
import hashlib | |
import collections | |
def log(message): | |
print(message) |
This file contains hidden or 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
<html> | |
<head> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var target_date = new Date("Nov 25, 2015 3:30 pm").getTime(); | |
var days, hours, minutes, seconds; | |
var countdown = document.getElementById("countdown"); | |
setInterval(function () { |
This file contains hidden or 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
<!doctype html> | |
<form> | |
HTML with span tags: | |
<br><br> | |
<input type="text" name="html"> | |
<br><br> | |
<input type="submit" value="Remove ALL the spans!"> | |
</form> | |
{% if html %} |
This file contains hidden or 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
#!bin/bash | |
set -eu | |
# Revoke old open grants, add new password protected local-only grants. | |
mysql --user=root << EOF | |
revoke all privileges on \`polaris\`.* from 'aerofsdb'@'%'; | |
revoke all privileges on \`bifrost\`.* from 'aerofsdb'@'%'; | |
revoke all privileges on \`aerofs_sp\`.* from 'aerofsdb'@'%'; | |
revoke all privileges on \`aerofs_ca\`.* from 'aerofsdb'@'%'; | |
grant all privileges on \`polaris\`.* to 'aerofsdb'@'localhost' identified by 'your-db-password-here'; |
This file contains hidden or 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
""" | |
Script to delete large folder in gmail. | |
Adapted from: http://ae.ro/1upv7rt | |
Notes: | |
1. For this to work with gmail, you will need to adjust into your IMAP settings | |
so that they look like this: | |
* IMAP: enabled |
This file contains hidden or 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
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: $0 <appliance_host>" | |
exit 1 | |
fi | |
appliance_host=$1 |
This file contains hidden or 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
import java.util.*; | |
import java.io.*; | |
import java.net.*; | |
public class ProxyTest | |
{ | |
public static void main(String[] args) { | |
System.setProperty("java.net.useSystemProxies", "true"); | |
List<Proxy> list = null; | |
try |