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 fs = require('fs'); | |
| var sites = [ | |
| 'example.com', | |
| 'test.com' | |
| ]; | |
| if(process.argv[2]) { | |
| if(process.argv[2] == 'enable' || process.argv[2] == 'disable') { |
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 fs = require('fs'); | |
| var url = require('url'); | |
| var path = require("path"); | |
| var request = require('sync-request'); | |
| var base_url = "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q="; | |
| function downloadImages(type) { | |
| var res = JSON.parse(request('GET', base_url + type + '&as_filetype=' + type + '&start=' + Math.floor((Math.random() * 50) + 1)).body.toString('utf-8')); | |
| if(res['responseData']['results']) { | |
| var images = res['responseData']['results']; |
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 sys = require('sys'), url = require("url"), path = require("path"), fs = require("fs"), | |
| querystring = require("querystring"), folder = "/", port = process.argv[3] || 25565; | |
| var server = require("http").createServer(HTTP_Server).listen(parseInt(port, 10)); | |
| function HTTP_ProcessPost(request, response, callback) { | |
| var queryData = ""; | |
| if(typeof callback !== 'function') return null; |
NewerOlder