Skip to content

Instantly share code, notes, and snippets.

@kmila
kmila / log4j_udl.xml
Last active December 19, 2019 19:24 — forked from mmdemirbas/LogFile.udl.xml
Notepad++/Scintilla UDL to enable log4j syntax highlighting
<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>

#Sublime Text 2 - Shortcuts (Mac OSX)

##Default

###General

Command Shortcut
Command palette + + P
Toggle side bar + K + B
#!/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 <roberto@baremetal.io>
"""
import hashlib
import os
@kmila
kmila / main.js
Created March 27, 2014 14:12 — forked from lessmilk/main.js
/*
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,
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;
@kmila
kmila / mvncolor.sh
Last active August 29, 2015 14:06 — forked from evocateur/mvncolor.sh
adapted from builddoctor/maven-antsy-color
#!/usr/bin/env bash
unalias mvn
unalias maven
unset -f mvn-color
alias maven="command mvn"
# Wrapper function for Maven's mvn command.
@kmila
kmila / alog.sh
Last active August 29, 2015 14:06 — forked from DavidEGx/alog.sh
#!/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"
; 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.
@kmila
kmila / README.md
Created November 11, 2015 18:57 — forked from nitaku/README.md
Minimal JSON HTTP server in python

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"}