Skip to content

Instantly share code, notes, and snippets.

View florish's full-sized avatar

Floris Huetink florish

View GitHub Profile
@florish
florish / errors.po
Last active December 6, 2018 14:13
Ecto.Changeset priv/gettext/nl/LC_MESSAGES/errors.po template for Dutch / Nederlands ("nl" locale)
## This is a PO Template file.
##
## `msgid`s here are often extracted from source code.
## Add new translations manually only if they're dynamic
## translations that can't be statically extracted.
##
## Run `mix gettext.extract` to bring this file up to
## date. Leave `msgstr`s empty as changing them here has no
## effect: edit them in PO (`.po`) files instead.
## From Ecto.Changeset.cast/4

Keybase proof

I hereby claim:

  • I am florish on github.
  • I am florish (https://keybase.io/florish) on keybase.
  • I have a public key whose fingerprint is E680 80A6 9031 97E6 EE39 86D8 2F7B 833B 65BA 35AE

To claim this, I am signing this object:

@florish
florish / MySQL Dump Tables
Created November 7, 2012 13:27 — forked from stupergenius/MySQL Dump Tables
Bash script that dumps all the tables of a given database, each table to its own file.
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 [output-path]"
exit 1
fi
TABLES=`mysql -B -N -e "select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA='$1'"`
OUT="$2"
@florish
florish / install_homebrew.rb
Created October 3, 2011 10:53 — forked from mxcl/install_homebrew.markdown
Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end