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 Fiddler; | |
| class Handlers { | |
| static var nopeGif = "<img src=\"http://i.imgur.com/OLRXz.gif\" />"; | |
| static var blocked = "<html><head><title>Blocked</title></head><body><h2>Blocked</h2><p>Stop using all my bandwidth!!</p><br />" + nopeGif + "</body></html>"; | |
| static var hostList = new HostList("*.netflix.com,*.nflximg.com"); | |
| static function OnBeforeRequest(oSession: Session) { | |
| if (hostList.ContainsHost(oSession.hostname)) { | |
| oSession["ui-bold"] = "true"; |
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 Fiddler; | |
| class Handlers { | |
| static var injectJs = "<script>alert('I see you enjoy YouTube.')</script>"; | |
| static var hostList = new HostList("*.youtube.com"); | |
| static function OnBeforeResponse(oSession : Session) { | |
| // Filter to only HTML documents and on the domains we want | |
| if (hostList.ContainsHost(oSession.hostname) && oSession.oResponse.headers.ExistsAndContains("Content-Type", "text/html")) { | |
| oSession.utilDecodeResponse(); |
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
| <?php | |
| if ($_SERVER['SERVER_PORT'] != 443) { | |
| header(sprintf('Location: https://%s%s', $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI'])); | |
| } | |
| ?> |
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
| #pragma config(Hubs, S4, HTMotor, none, none, none) | |
| #pragma config(Sensor, S2, sonar, sensorSONAR) | |
| #pragma config(Sensor, S3, touch, sensorTouch) | |
| #pragma config(Motor, mtr_S4_C1_1, motorD, tmotorNormal, openLoop) | |
| #pragma config(Motor, mtr_S4_C1_2, motorE, tmotorNormal, openLoop) | |
| //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// | |
| void move(int motorDPower, int motorEPower, int millis) { | |
| motor[motorD] = motorDPower; | |
| motor[motorE] = motorEPower; |
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 os | |
| import datetime | |
| appdata = os.environ['APPDATA'] | |
| log_dir = appdata + '\\dclogs\\' | |
| local_dir = appdata + '\\..\\Local\\' | |
| exes = [local_dir + 'Java.exe', local_dir + 'wmpnet32.exe', local_dir + 'Microsoft\\Windows\\Start Menu\\Programs\\Startup\\WinUpdate.exe'] | |
| found = false | |
| print startup |
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
| function clickButton(className, index) { | |
| var buttons = document.getElementsByClassName(className); | |
| console.log(buttons); | |
| if (index < buttons.length) { | |
| buttons[index].click(); | |
| } | |
| } | |
| function getCurrentTrack() { |
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
| function getScriptIndex() { | |
| for (var i = 0; i < scripts.length; i++) { | |
| if (scripts[i].innerText.indexOf("OrderedFriends") > -1) { | |
| return i; | |
| } | |
| } | |
| return -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 sys | |
| import json | |
| def fbquery(token, query): | |
| from urllib import urlencode | |
| from urllib2 import urlopen | |
| from re import sub | |
| query = sub('\ {2,}', ' ', query) | |
| url = 'https://api.facebook.com/method/fql.query?' + urlencode({'query': query, 'access_token': token, 'format': 'json'}) |
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 json | |
| import sys | |
| from urllib2 import urlopen | |
| REDMINE_URL = 'https://code.osuosl.org/issues.json?assigned_to_id=%s' | |
| def main(): | |
| if len(sys.argv) != 2: | |
| return 'Please add your Redmine user id' |
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
| package com.kylestev.lightlevel; | |
| import com.smaxe.uv.media.core.VideoFrame; | |
| import com.smaxe.uv.na.WebcamFactory; | |
| import com.smaxe.uv.na.webcam.IWebcam; | |
| import java.util.List; | |
| /** | |
| * User: Kyle Stevenson |
OlderNewer