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
.popup { | |
position:fixed; | |
color: #4c3327; | |
font-family: Helvetica, Arial, sans-serif; | |
top:0; | |
left:0; | |
width:100%; | |
height:100%; | |
max-width:100%; | |
max-height:100%; |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
__all__ = ["transform"] | |
__version__ = '0.3' | |
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>' | |
__url__ = 'http://github.com/cburgmer/upsidedown' |
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
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
; Map ctrl-backspace to delete (similar to MacOS) | |
^BS:: | |
Send {DEL} | |
return | |
; Map Caps lock to escape | |
Capslock::Esc | |
; Toggles default audio device in Control Panel (switches between headset and speakers). | |
!s:: |
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
curl 'https://www.unitedwifi.com/payment/ajax/notification.do' --data 'actionkey=FLIGHT_TIME_NOTIFICATIONS' --compressed | |
# [{ | |
# "class":"com.bluebird.business.flightimebar.FlightimeBarResponse", | |
# "destinationIATA":"MCO", | |
# "eventType":"FLIGHTTIMEBAR", | |
# "flightETA":"8:58PM", | |
# "flightRunningStatus":89, | |
# "flightStatusText":"0h 33m with United Wi-Fi!", | |
# "flightTotalDuration":332, | |
# "markers":[{ |
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
alert(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
// npm install request | |
var request = require('request'), | |
redirectCount = 0; | |
function printRedirects(site) { | |
request(site, {followRedirect: false}, function (error, response, body) { | |
if (error){ | |
console.log(error); | |
return; | |
} |
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 count_redir { | |
curl -L -I -D - -o /dev/null $1 | awk 'BEGIN { redir = 0; status = 200; } tolower($1) ~ /http/ { redir=redir+1; status=$2 } tolower($1) ~ /location:/ { print redir, status, $2 } END { print "Completed, with ", redir-1, "redirects. Final result: ", status }' | |
} |
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 keys = []; | |
db.domains.find().forEach(function(doc) { | |
for( key in doc ){ | |
if( keys.indexOf(key) === -1 ){ | |
keys.push(key); | |
} | |
} | |
}); | |
print(keys); |
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
'use strict'; | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var source = require('vinyl-source-stream'); | |
var notify = require('gulp-notify'); | |
// Helper functions | |
function handleErrors(){ | |
var args = Array.prototype.slice.call(arguments); |
OlderNewer