A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
| ; A REPL-based, annotated Seesaw tutorial | |
| ; Please visit https://github.com/daveray/seesaw for more info | |
| ; | |
| ; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
| ; Seesaw's basic features and philosophy, but only scratches the surface | |
| ; of what's available. It only assumes knowledge of Clojure. No Swing or | |
| ; Java experience is needed. | |
| ; | |
| ; This material was first presented in a talk at @CraftsmanGuild in | |
| ; Ann Arbor, MI. |
| #!/bin/bash | |
| # Tail an apache log an put some colors into the output | |
| # www.davideg.es | |
| shopt -s expand_aliases | |
| alias grey-grep="GREP_COLOR='1;30' grep -E --color=always --line-buffered" | |
| alias red-grep="GREP_COLOR='1;31' grep -E --color=always --line-buffered" | |
| alias green-grep="GREP_COLOR='1;32' grep -E --color=always --line-buffered" | |
| alias yellow-grep="GREP_COLOR='1;33' grep -E --color=always --line-buffered" |
| #!/usr/bin/env bash | |
| unalias mvn | |
| unalias maven | |
| unset -f mvn-color | |
| alias maven="command mvn" | |
| # Wrapper function for Maven's mvn command. |
| server { | |
| listen 80; | |
| server_name url.dev.infra; | |
| location / { | |
| proxy_pass http://url.dev.infra:3200; | |
| proxy_redirect off; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| /* | |
| Code of "Dark Bleu" game from www.lessmilk.com/10/ | |
| Made with Phaser Javascript framework | |
| Note: the is the main source code. I skiped the boring part (preloading the assets, and the menus) | |
| */ | |
| /* | |
| Programming and art made by www.lessmilk.com | |
| You can freely look at the code below, |
| #!/usr/bin/env python | |
| """ | |
| http://www.openldap.org/faq/data/cache/347.html | |
| As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4 | |
| Author: Roberto Aguilar <[email protected]> | |
| """ | |
| import hashlib | |
| import os |
#Sublime Text 2 - Shortcuts (Mac OSX)
##Default
###General
| Command | Shortcut |
|---|---|
| Command palette | ⌘ + ⇧ + P |
| Toggle side bar | ⌘ + K + B |
| <NotepadPlus> | |
| <UserLang name="log4j" ext="log"> | |
| <Settings> | |
| <Global caseIgnored="yes" /> | |
| <TreatAsSymbol comment="no" commentLine="no" /> | |
| <Prefix words1="no" words2="no" words3="no" words4="yes" /> | |
| </Settings> | |
| <KeywordLists> | |
| <Keywords name="Delimiters">[(0])0</Keywords> | |
| <Keywords name="Folder+"></Keywords> |