Skip to content

Instantly share code, notes, and snippets.

View theaxel's full-sized avatar

Axel K. theaxel

  • Chime
  • San Francisco, Hamburg, Cape Town or some Airplane
View GitHub Profile
@theaxel
theaxel / .gitconfig
Last active April 27, 2022 05:09
Mac Setup for Ruby Developer
[url "git@github.com:"]
insteadOf = https://github.com/
@theaxel
theaxel / rails_postgres_enum.rb
Last active February 4, 2019 20:08
Support for PostgreSQL enum types in Rails 5.2 (including schema dump)
# frozen_string_literal: true
# Support for PostgreSQL enum types in Rails 5.2 (including schema dump)
module ActiveRecord
class SchemaDumper
def dump(stream)
header(stream)
extensions(stream)
enums(stream)
tables(stream)
@theaxel
theaxel / rails_postgres_enum.rb
Last active May 13, 2018 06:27
Support for PostgreSQL enum types in Rails 5.1.* (including schema dump)
# Support for PostgreSQL enum types in Rails 5 (including schema dump)
module ActiveRecord
class SchemaDumper
def dump(stream)
header(stream)
extensions(stream)
enums(stream)
tables(stream)
trailer(stream)
stream
@theaxel
theaxel / git_cheatsheet
Created June 26, 2014 07:48
Helpful Git commands
# List branches that contain a given commit
$ git branch -a --contains <commit>
@theaxel
theaxel / gist:6447139
Created September 5, 2013 07:45
U_STRINGPREP_PROHIBITED_ERROR
diff --git a/lib/node-xmpp/lib/xmpp/jid.js b/lib/node-xmpp/lib/xmpp/jid.js
index a25c326..747197a 100644
--- a/lib/node-xmpp/lib/xmpp/jid.js
+++ b/lib/node-xmpp/lib/xmpp/jid.js
@@ -4,7 +4,12 @@ try {
var c = function(n) {
var p = new StringPrep(n);
return function(s) {
- return p.prepare(s);
+ try {
@theaxel
theaxel / .gitignore
Last active October 7, 2015 12:27
Common files and folders to be ignored by git
.DS_Store
._.DS_Store
Thumbs.db
.bash_history
.bashrc
.cache
logs/*
.profile
.viminfo
.idea/*
@theaxel
theaxel / .gitconfig
Created July 19, 2012 15:04
gitconfig to shorten common git commands
[core]
autocrlf = false
quotepath = false
excludesfile = ~/.gitignore
[alias]
st = status
ci = commit
br = branch
co = checkout
mr = merge