Skip to content

Instantly share code, notes, and snippets.

View koehn's full-sized avatar
🧐
Coaching

Brad Koehn koehn

🧐
Coaching
View GitHub Profile
@koehn
koehn / # protobuf - 2020-08-05_07-26-06.txt
Created August 5, 2020 14:02
protobuf on macOS 11.0 - Homebrew build logs
Homebrew build logs for protobuf on macOS 11.0
Build date: 2020-08-05 07:26:06

Keybase proof

I hereby claim:

  • I am koehn on github.
  • I am koehn (https://keybase.io/koehn) on keybase.
  • I have a public key ASAxVSsmthQySpAjuJlqGcI4c5bVXQHf9H5bRcwT_fEchwo

To claim this, I am signing this object:

@koehn
koehn / cleanup.sh
Created July 1, 2016 18:32
Clean up dangling docker volumes
docker volume ls -qf dangling=true | xargs -r docker volume rm
@koehn
koehn / txt
Created March 7, 2016 20:02
Fix Mac Docker
Run the Docker Quickstart Terminal app
Run docker-machine restart default
Run eval $(docker-machine env default)
@koehn
koehn / diaspora-init
Created December 16, 2015 15:27
Required for my `/etc/init.d/diaspora` init script. Put this into `/home/diaspora/diaspora/diaspora-init`.
#!/bin/bash --login
shopt -s expand_aliases
export RAILS_ENV=production
export DB=postgres
cd /home/diaspora/diaspora
./script/server
@koehn
koehn / diaspora
Last active August 14, 2016 18:50
Init file to start/stop Diaspora. Requires a file in /home/diaspora/diaspora/diaspora-init (see my gists for more). Hit me up on diaspora at bkoehn@diaspora.koehn.com if you have any questions.
#! /bin/sh
### BEGIN INIT INFO
# Provides: diaspora
# Required-Start: apache2
# Required-Stop:
# Should-Start:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Diaspora social networking pod server
@koehn
koehn / java2groovy.vim
Last active August 29, 2015 14:03
These VIM macros help to covert Java to Groovy. Sadly neither IntelliJ nor Eclipse has regex that can handle this, but VIM is always available.
# no semicolons at eol
:%s/;[ \t]*$//
# no 'public'
:%s/public //
# convert Java 'bar.getFoo()' to Groovy 'bar.foo' in VIM
:%s/\.\(get\|is\)\(\u\)\(\w\+\)()/.\l\2\3/g
# convert Java 'foo.setBar(baz)' to Groovy 'foo.bar = baz'
@koehn
koehn / welcome.md
Created May 30, 2014 14:05
My standard welcome message.

Welcome to the pod! Be sure to check out the tutorials and wiki to learn how diaspora works.

Enjoy!

@koehn
koehn / configure-dovecot.sh
Created May 14, 2014 13:37
Configure dovecot 2.x build
./configure --with-pam --with-solr --with-sql --with-mysql --with-zlib --with-bzlib
@koehn
koehn / GenericsQuiz.java
Last active January 3, 2016 09:39
Test your Java generics knowledge with this pop quiz: which are the valid statements?
import java.util.List;
public class GenericsQuiz {
List<Number> listOfNumber;
List<? extends Number> listOfExtendsNumber;
List<? super Number> listOfSuperNumber;
List<Integer> listOfInteger;
List<? extends Integer> listOfExtendsInteger;
List<? super Integer> listOfSuperInteger;