Skip to content

Instantly share code, notes, and snippets.

View orlissenberg's full-sized avatar

Onno Lissenberg orlissenberg

View GitHub Profile
@renalpha
renalpha / phpstorm settings.txt
Created September 20, 2019 11:49
phpcs on save
Preferences -> tools -> File watchers
// Program
vendor/path/to/phpcs
// Arguments
--standard=phpcs.xml --encoding=utf-8 $FilePath$
// Working directory and environments variables
/path/to/your/project/dir
@mraaroncruz
mraaroncruz / chat.go
Created July 9, 2015 10:34
golang chat server
// Chat server code from this blog post http://www.badgerr.co.uk/2011/06/20/golang-away-tcp-chat-server/
package main
// Imports required packages
import "fmt"
import "net"
import "container/list"
import "bytes"
// Defines a Client with a name and connection object, and
@mrbanzai
mrbanzai / example.yaml
Created January 30, 2014 21:31
Hiera lookup module for Ansible
---
- name: Load NRPE variables from Hiera
connection: local
hiera: path=lib/hiera/bin/hiera key="{{ item.value }}" fact="{{ item.key }}" source=hiera.yaml
args:
context:
environment: "{{ environment }}"
sitecode_lc: "{{ sitecode_lc }}"
with_dictionary:
nrpe_server_port: "nrpe_server_port"
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 5, 2024 22:16 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 05:34
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@coldnebo
coldnebo / Default (Linux).sublime-keymap
Created August 10, 2011 23:20
simple scripts to prettify your xml and json in sublime text 2
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
@karmi
karmi / nginx-elasticsearch-proxy.conf
Created May 23, 2011 08:16
Route requests to ElasticSearch to authenticated user's own index with an Nginx reverse-proxy
# Run me with:
#
# $ nginx -p /path/to/this/file/ -c nginx.conf
#
# All requests are then routed to authenticated user's index, so
#
# GET http://user:password@localhost:8080/_search?q=*
#
# is rewritten to:
#