Skip to content

Instantly share code, notes, and snippets.

@lfx
lfx / docker-compose.yml
Created October 3, 2016 16:57
WP + MariaDB + NGINX + phpMyAdmin + Mailhog
version: "2"
services:
mariadb:
image: wodby/wordpress-mariadb
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
@lfx
lfx / gist:f7d165ffc25e06711092
Created March 23, 2016 22:07
find node_modules
find . -path "*/node_modules/*" -type d | awk -F'/node_modules/' '{print $NF}' | cut -f1 -d'/' | sort | uniq > mods.txt
#!/bin/sh
#
# Adam Sharp
# Aug 21, 2013
#
# Usage: Add it to your PATH and `git remove-submodule path/to/submodule`.
#
# Does the inverse of `git submodule add`:
# 1) `deinit` the submodule
# 2) Remove the submodule from the index and working directory

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: