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
'Twas the night before Christmas, when all through the racks | |
Not a server was alerting, not even Compaqs. | |
The backups were written to tapes with care | |
In hopes that later the data would be there. | |
The machines were nestled all snug in their sleds | |
Whilst visions of vengeance danced in their heads; | |
And oncall in his three-wolf and I in my rack. | |
Had just settled down for some syn and some ack. |
#!/usr/bin/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
import time | |
######################## Functions ######################### |
# alternative to what is explained in the article Ruby Blocks as Dynamic Callbacks: | |
# http://www.mattsears.com/articles/2011/11/27/ruby-blocks-as-dynamic-callbacks | |
class Callbacks | |
def initialize(block) | |
block.call(self) | |
end | |
def callback(message, *args) | |
callbacks[message].call(*args) |
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
https://github.com/[yourname]
[Describe ambitions: type of work, attributes of team, what you want to learn & teach]
[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
(* | |
Add to Reading List | |
Script for Apple Mail to find http and https links in emails and add them to Safari's Reading List automatically. | |
Best practice: setup with "any recipient contains '+reading'". Actions "mark as read", "execute AppleScript", "delete message", "stop evaluating rules" | |
Created by Andreas Zeitler on 2012-10-07 | |
Mac OS X Screencasts. www.macosxscreencasts.com | |
*) |
--- | |
#### | |
#### THIS IS OLD AND OUTDATED | |
#### LIKE, ANSIBLE 1.0 OLD. | |
#### | |
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
#### | |
#### IF IT BREAKS I'M JUST SOME GUY WITH | |
#### A DOG, OK, SORRY | |
#### |
curl -s http://confreaks.com/events/rubyconf2012 | grep "/videos/" | cut -d '"' -f 2 | while read url; do curl -s "http://confreaks.com$url" | grep "large.mp4?" | grep -v "xtra" | cut -d '"' -f 2 >> /tmp/cf-vids.txt; done; cat /tmp/cf-vids.txt | uniq |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer