Skip to content

Instantly share code, notes, and snippets.


Dirk Breuer code-later

View GitHub Profile

Keybase proof

I hereby claim:

  • I am code-later on github.
  • I am codelater ( on keybase.
  • I have a public key whose fingerprint is 558C 4BCB 769B 6C58 D0C8 99F2 D845 39FC 9C9B 31F1

To claim this, I am signing this object:

code-later / playbook.yml
Created Mar 19, 2018
Install Python 2.7 with Ansible in pre_tasks
View playbook.yml
- hosts: all
become: True
gather_facts: False
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: False
- setup: # aka gather_facts
View vimrc
set nocompatible " Turn off vi-compatibility, must be the first config to set
filetype off " required for Vundle to work (See Vundle for details)
set encoding=utf-8
set timeout timeoutlen=1000 ttimeoutlen=100 " Fix slow O inserts from Gary Bernhardt
set shell=/bin/sh " some commands seem to have problems with zsh (i.e. RVM)
set cursorline " Highlight the line with the cursor
set hlsearch " highlight search
set incsearch " Incremental search, search as you type
set ignorecase smartcase " Ignore case when searching
code-later / gh2trello.rb
Created Sep 25, 2014
Creates Trello cards in the Backlog based on open GitHub issues with the link to the issue as description
View gh2trello.rb
require 'trello'
@repo, @prefix = ARGV
Trello.configure do |config|
config.developer_public_key = TRELLO_DEVELOPER_PUBLIC_KEY
config.member_token = TRELLO_MEMBER_TOKEN
require 'octokit'
code-later / mcabber_notifier.rb
Created Sep 3, 2014
OS X Notification Center for mcabber
View mcabber_notifier.rb
#!/usr/bin/env ruby
require 'logger'
require 'terminal-notifier'
type, direction, jid = ARGV
if type == 'MSG' && direction == 'IN'
TerminalNotifier.notify "Message from #{jid}",
group: jid,
code-later /
Created Aug 16, 2014
Help debugging Guacamole
#!/usr/bin/env bash
bundle exec rake db:guacamole:purge
bundle exec rails runner 'users_count = UsersCollection.all.count; puts "There are #{users_count} users in the DB!"'
echo "Creating a test user Bob..."
bundle exec rails runner 'u = "Bob", password: "123456", password_confirmation: "123456"); u'
echo "Fetching the user from the DB..."
code-later /
Created Jul 3, 2014
Problems with building ArangoDB 2.2 on OS X 10.9
make clean
make setup
./configure --enable-all-in-one-v8 --enable-all-in-one-libev --enable-all-in-one-icu --enable-relative --enable-maintainer-mode --with-bison=/usr/local/Cellar/bison/3.0.2/bin/bison
make -j4
View Gemfile.lock
revision: b2614406dd87d5ea30946da90b9c9a532905472e
devtools (0.0.2)
remote: .
guacamole (0.1.0)
code-later / keyword_or_method.rb
Created May 1, 2014
private: Keyword or Method #Ruby
View keyword_or_method.rb
class Foo
send :private
def bar
puts "I'm private"
# private method `bar' called for #<Foo:0x00000102816480> (NoMethodError)
code-later / README.markdown
Created Nov 15, 2013
Export your Octopress files to Ghost
View README.markdown

This is a very rough script to export your octopress files to Ghost. You will still need to check your data but it will give you a head start. Feel free to fork and optimize the script for your purpose.

The following should be considered:

  1. You need to execute the script in the source/_posts directory
  2. You need to manually copy all the images to /var/www/ghost/content/images
  3. Images with external URLs are not handled
  4. Blockquotes have their issues
  5. Lists are not exported correctly
You can’t perform that action at this time.