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 8000
<html> | |
<head> | |
<script src="/javascripts/CryptoJS/rollups/aes.js"></script> | |
<script src="/javascripts/CryptoJS/components/mode-cfb-min.js"></script> | |
<script src="/javascripts/encrypt.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
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 8000
ssh -f -N -L 24800:server-hostname:24800 server-hostname
)// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
Republished on my website, keeping this version here for historical reasons.
Install FAHClient as documented in the official guide. Stop the traditional init script service that was created and automatically started.
# do it once | |
seq 1 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
# do it twice | |
seq 2 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
# do it 4 times, but at 2 a time | |
seq 4 | parallel -n0 -j2 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
# you can also put all your commands into a file |
/connect irc.freenode.net 8001
/join #nginx
/msg NickServ IDENTIFY <account> <password>
†/msg <person> <msg>
to start a private message†
/msg NickServe IDENTITY Integralist <password>
or/msg nickserv SENDPASS Integralist
to change password (sends link to your email)
Commands Reference: http://www.deepspace.org/nickserv.htm#REGISTER
Freenode Help: https://freenode.net/kb/answer/registration
#!/bin/bash | |
# update apt-get | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# remove previously installed Docker | |
sudo apt-get purge lxc-docker* | |
sudo apt-get purge docker.io* |
# ... | |
shell_command: | |
clean_db: python3 /path/to/purge_sensor.py | |
automation: | |
- trigger: | |
platform: time | |
after: '03:00:00' | |
action: |
Tested on Ubuntu 16.04 and Windows 10 Redstone 1
Both boxes need to be on the same network (such that multicast packets can be passed between them)