Skip to content

Instantly share code, notes, and snippets.

View idealhack's full-sized avatar
💭
I may be slow to respond.

Y idealhack

💭
I may be slow to respond.
View GitHub Profile
@idealhack
idealhack / static_server.js
Created May 6, 2012 14:13 — forked from respectTheCode/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require('http'),
url = require('url'),
path = require('path'),
fs = require('fs'),
mime = require('mime'),
port = process.argv[2] || 8888;
http.createServer(function(req, res) {
var uri = url.parse(req.url).pathname,
@idealhack
idealhack / ingress-passcode.js
Last active November 13, 2020 07:20 — forked from DragorWW/ingress-passcode.js
ingress passcode auto run
// disable iitc plugin if it's on
// go to https://www.ingress.com/intel
// open console and paste in the code below, press enter
// join https://t.me/passcodes for more passcodes
// add jquery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);