Skip to content

Instantly share code, notes, and snippets.

View nanduzira's full-sized avatar
🔥
Coffee Break

ANAND KRISHNA SUNIL nanduzira

🔥
Coffee Break
View GitHub Profile
@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);
@tony4d
tony4d / mysql-analyze-all-tables.sh
Created October 13, 2015 03:31
Analyze all tables in a mysql database from the command line (bash)
#!/bin/bash
# To avoid doing things like putting your mysql password on the cli which is not secure
# Use mysql config editor http://dev.mysql.com/doc/refman/5.6/en/mysql-config-editor.html
for table in $(mysql --login-path=mylogins -D database_name -Bse "show tables");
do mysql --login-path=mylogins -D database_name -Bse "analyze table $table";
done
@DragorWW
DragorWW / ingress-passcode.js
Created September 24, 2015 03:39
ingress passcode auto run
// go to https://www.ingress.com/intel
// open passcode popup
// open console
// 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);
// add pascode
// passcode by this list - http://pastebin.com/XQLGzRqi
@soheilhy
soheilhy / nginxproxy.md
Last active May 7, 2024 14:55
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers