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
javascript: | |
([].forEach.call(document.scripts, function(el, p) { | |
var code = el.innerHTML.trim(); | |
if ( (p = code.indexOf('q("talkPage.init",')) > -1 ) { | |
var json = code.slice(p + 18, -1).trim(); | |
var talk = JSON.parse(json).talks[0]; | |
var url = talk.nativeDownloads.high || talk.nativeDownloads.medium; | |
var a = document.createElement('a'); | |
a.href = url; | |
a.download = url.match(/([^\/\?]+)(\?.+?)?$/)[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
var net = require('net'); | |
function log(msg) { | |
process.stdout.write(msg.trim() + "\n", 'utf8'); | |
} | |
var port = Number(process.argv[2]); | |
if ( !port || isNaN(port) ) { | |
return log('Need valid PORT number as argument.'); | |
} |
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
curl -X PUT -d '"Jeff"' https://cr2jl3cpyv7.firebaseio.com/users/jeff/name.json | |
curl -X PUT -d '"Carla"' https://cr2jl3cpyv7.firebaseio.com/users/carla/name.json | |
curl -X PATCH -d '{"jeff/city": "Houston", "carla/city": "Atlantis"}' https://cr2jl3cpyv7.firebaseio.com/users.json | |
curl -X PATCH -d '{"jeff/family": {"children": 1, "parents": 0, "siblings": 1}, "carla/family": {"children": 4, "parents": 2, "siblings": 3}}' https://cr2jl3cpyv7.firebaseio.com/users.json | |
curl -X PATCH -d '{"jeff/family/children": 2, "carla/family/parents": 0}' https://cr2jl3cpyv7.firebaseio.com/users.json | |
{ | |
"carla":{"city":"Atlantis","family":{"children":4,"parents":0,"siblings":3},"name":"Carla"}, | |
"jeff":{"city":"Houston","family":{"children":2,"parents":0,"siblings":1},"name":"Jeff"} | |
} |
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
javascript: | |
performance.setResourceTimingBufferSize(5000); | |
performance.getEntriesByType('resource').some(function(res) { | |
if (res.name.slice(-5) == '-1.ts') { | |
console.log(res.name); | |
return prompt('COPY THIS URL', res.name), true; | |
} | |
}); | |
void(0); |
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 | |
// SELECT a.*, c.d, (c.e = 'foo') AS ee, c.f AS ff | |
// FROM table1 a, table3 m | |
// LEFT JOIN table2 b ON a.x = c.x AND a.x <> '4' | |
// WHERE m.x = a.x AND a.y < 100 AND (a.z BETWEEN 1 AND 9 OR a.z = -1) | |
// GROUP BY (c.e = 'foo'), c.f | |
// HAVING MAX(m.n) > 2 | |
// ORDER BY c.e DESC | |
// LIMIT 100 |
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
javascript: | |
alert((function(list) { | |
console.log(list); | |
var arr = []; | |
for (var host in list) arr.push(host + ': ' + list[host]); | |
arr.sort(function(a, b) { return parseInt(b.split(': ')[1]) - parseInt(a.split(': ')[1]); }); | |
return arr; | |
})(performance.getEntriesByType('resource').reduce(function(list, res) { | |
var host = res.name.match(/\/\/([^/]+)/)[1]; | |
list[host] ? (list[host]++) : (list[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
<?php | |
// List of Item objects | |
$items = [new Item]; | |
// List of strings | |
$strings = ["Oele"]; |
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
<?xml version="1.0"?> | |
<Tests> | |
<Test TestId="0001" TestType="CMD"> | |
<Name>Convert number to string</Name> | |
<CommandLine>Examp1.EXE</CommandLine> | |
<Input>1</Input> | |
<Output>One</Output> | |
</Test> | |
<Test TestId="0002" TestType="CMD"> | |
<Name>Find succeeding characters</Name> |
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 | |
/** | |
* Smartqueue providers ('owners') can do this: | |
*/ | |
/** | |
* Implements hook_nodequeue_sqids(). | |
*/ | |
function USER_SMARTQUEUE_nodequeue_sqids($queue) { |
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
GET /api/user HTTP/1.1 | |
User-Agent: Super ultra fast super HTTP browser | |
Host: xxxxxx.xx | |
Accept: */* | |
HTTP/1.1 200 OK | |
Date: Sat, 25 Apr 2015 17:52:51 GMT | |
Content-Length: 62 |