Skip to content

Instantly share code, notes, and snippets.

View raysegantii's full-sized avatar

Ray Cheung raysegantii

View GitHub Profile
@raysegantii
raysegantii / README.md
Last active October 15, 2016 02:43 — forked from joakimk/README.md
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.

@raysegantii
raysegantii / README.md
Last active June 3, 2020 21:24 — forked from scrogson/README
Use bootstrap-sass npm package with Phoenix's brunch
  1. install npm packages
  2. update brunch-config.js
  3. rename web/static/css/app.css to web/static/css/app.scss
  4. update web/static/css/app.scss
@raysegantii
raysegantii / rake
Created January 29, 2016 06:03
Check if missing migrations from engines.
bundle exec rake railties:install:migrations FROM=$ENGINES | awk '/Copied/ { print "Missing migrations detected."; exit 1 }'
@raysegantii
raysegantii / byzanz-record-window-gui
Last active October 14, 2015 07:00 — forked from seyfer/byzanz-record-window-gui
byzanz-record-window-gui
#!/bin/bash
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc)
# NAME: GIFRecord 0.1
# DESCRIPTION: A script to record GIF screencasts.
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd libnotify-bin)
# Time and date
TIME=$(date +"%Y-%m-%d_%H%M%S")