Skip to content

Instantly share code, notes, and snippets.

Paul Hoffer phoffer

Block or report user

Report or block phoffer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View run phoenix on amazon
# app deps
sudo yum install git
# erlang deps
sudo yum groupinstall "Development Tools"
sudo yum install ncurses-devel openssl-devel
# erlang
tar -zxvf otp_src_19.2.tar.gz
techgaun /
Last active Oct 7, 2019
Running elixir 1.8.1 on amazon linux



yum install ncurses-devel openssl-devel -y
yum groupinstall "Development Tools" -y

cd /tmp
wget "" -O otp21.tar.gz
mverzilli / circle.yml
Created Jun 15, 2016
CircleCI for Crystal Projects
View circle.yml
# Include this file in your project's root folder to integrate with CircleCI.
# Replace 0.18.0 with the Crystal version you're using.
- "crystal-0.18.0-1"
- if [[ ! -e crystal-0.18.0-1 ]]; then wget && tar xvfz crystal-0.18.0-1-linux-x86_64.tar.gz; fi
- crystal-0.18.0-1/bin/crystal deps
eikes / run phoenix on amazon
Created Dec 28, 2015
run phoenix on amazon linux
View run phoenix on amazon
# app deps
sudo yum install git
# erlang deps
sudo yum groupinstall "Development Tools"
sudo yum install ncurses-devel
# erlang
tar -zxvf otp_src_18.1.tar.gz
FND / content_negotiator.ex
Last active Dec 12, 2017
Phoenix content negotiation
View content_negotiator.ex
defmodule ContentNegotiator do
def init(opts), do: opts
def call(conn, opts) do
|> Phoenix.Controller.accepts(Map.keys(opts))
|> dispatch_by_accept(opts)
notozeki / Makefile
Last active Oct 25, 2019
An example Ruby extension written in Crystal
View Makefile
CRYSTAL = crystal
UNAME = "$(shell uname -ms)"
LIBRARY_PATH = $(shell brew --prefix crystal-lang)/embedded/lib
LIBS = -levent -lpcl -lpcre -lgc -lpthread
LDFLAGS = -Wl,-undefined,dynamic_lookup
TARGET = crystal_example_ext.bundle
$(TARGET): crystal_example_ext.o
$(CC) -bundle -L$(LIBRARY_PATH) -o $@ $^ $(LIBS) $(LDFLAGS)
olivierlacan /
Last active Nov 21, 2019
How to migrate a Homebrew-installed PostgreSQL database to a new major version (9.3 to 9.4) on OS X. See upgraded version of this guide:

This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.

First let's check something.

brew info postgresql

The top of what gets printed as a result is the most important:

boopathi /
Last active Dec 5, 2019
Creating a Swift-ReactNative project


  1. Create a project in XCode with the default settings
    • iOS > Application > Single View Application
    • Language: Swift
  2. Under project General settings, add ReactKit to Linked Framework and Libraries
    • + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
  3. Now ReactKit would have been imported. Link it by choosing it from the list.
    • + > lib.ReactKit.a
  4. Under project Build Settings,
roalcantara / Gemfile
Last active Feb 25, 2018
Rails 4 + Paperclip + Amazon S3
View Gemfile
gem 'paperclip', github: 'thoughtbot/paperclip'
# S3 API
gem 'aws-sdk'
korya / Subfolder to git
Last active Oct 5, 2019
Convert subfolder into Git submodule
View Subfolder to git
You can’t perform that action at this time.