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 8000| //var BinarySerializer = require('./BinarySerializer') | |
| //var BinaryType = require('./BinaryType') | |
| // axis-aligned bounding box | |
| /* PARAMS: (Point)center, (Point)half */ | |
| function AABB(x, y, halfWidth, halfHeight) { | |
| this.initialize(x, y, halfWidth, halfHeight) | |
| } | |
| AABB.pool = [] |
| #!/usr/bin/env bash | |
| # Script stores the current IP in a tmp file and later checks if it changed when run. POSTS to a Telegram bot. | |
| # Check how you can create a bot at https://core.telegram.org/bots | |
| old_ip=`cat /tmp/currentip` | |
| current_ip=`wget -qO- https://ipecho.net/plain` | |
| if [ $current_ip != $old_ip ]; then | |
| curl -s -X POST https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/sendMessage -d chat_id=<CHAT_ID> -d text="Machine changed IP from: ${old_ip} to ${current_ip}" |