#Image tag <img alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" />
#CSS background background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
/** | |
* @desc Do cURL request to some API | |
* @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
* @link https://gist.github.com/5055906 | |
*/ | |
$currentSID = null; | |
$SESSION_NAME = '<PUT_YOUR_SESSION_NAME_HERE>'; | |
$API_KEY = '<PUT_YOUR_API_KEY_HERE>'; | |
$API_URL = 'http://host/api/v1/?alt=json' |
<?php | |
class SecureHash | |
{ | |
const SECRET = 'PUT_YOUR_SECRET_HERE'; | |
const SEPARATOR = '|'; | |
/** | |
* hash string |
/** | |
* @desc Inject ingress portal range circle | |
* @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
* @link https://gist.github.com/5224508 | |
*/ | |
//More info on ranges http://ingressfieldguide.com/content/portals-linking | |
//goto http://www.ingress.com/intel?latE6=48740985&lngE6=9253478&z=19 | |
// open your console and paste this code |
java -jar /usr/share/java/batik-rasterizer-1.7.jar -m application/pdf 11_0520_PREVIEW.svg -scriptSecurityOff |
#start selenium headless on display 1 | |
Xvfb :1 -screen 1 1024x768x24 2>&1 >/dev/null & | |
export DISPLAY=:1 | |
nohup xvfb-run java -jar selenium-server-standalone-2.2.0.jar > selenium-rc.log & | |
#run selenium task with custom firefox profile | |
java -jar /var/lib/selenium/selenium-server.jar -singleWindow -firefoxProfileTemplate /home/cr/.mozilla/firefox/umzxo5dc.default/ -htmlSuite " *firefox /usr/lib/firefox/firefox" http://www.googe.com/ /home/cr/bin/selenium/m.kupriyanov/ingress/make_screenshot.html "./result.html" |
#Image tag <img alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" />
#CSS background background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
function doGet() { | |
var app = UiApp.createApplication(); | |
var t = app.createTextBox().setName('t').setId('t'); | |
app.add(t); | |
app.add(app.createButton('OK', app.createServerHandler('click').addCallbackElement(t))); | |
return app; | |
} | |
function click(e) { | |
var app = UiApp.getActiveApplication(); | |
if(e.parameter.t == '') return; |
function doGet() { | |
var app = UiApp.createApplication(); | |
var t = app.createTextBox().setName('t').setId('t'); | |
app.add(t); | |
app.add(app.createButton('OK', app.createServerHandler('click').addCallbackElement(t))); | |
return app; | |
} | |
function click(e) { | |
var app = UiApp.getActiveApplication(); | |
if(e.parameter.t == '') return; |
function testGA() { | |
doTrack_('UA-NNNNNN-1', 'YORR_KEY', 'YOUR_SERVICE', 'YOUR_ID'); | |
} | |
function doTrack_(utmac, key, service, user) { | |
var path = '/' + key + '/' + service + '/' + user; | |
try { | |
var host = 'YOUR_HOST'; | |
var utmGifLocation = "http://www.google-analytics.com/__utm.gif"; |