Skip to content

Instantly share code, notes, and snippets.

View jameslutley's full-sized avatar
🎯
Focusing

James Lutley jameslutley

🎯
Focusing
View GitHub Profile
@imranismail
imranismail / turbolinks.ex
Last active November 24, 2020 09:49
Turbolinks Plug
#!/bin/bash
# Totally c&p from various places all accross Internet
# [JohnMosesman]: Even MORE c&p from http://codegists.com/snippet/shell/codeship-elixirsh_paulgoetze_shell & http://www.codegists.com/snippet/shell/elixirsh_lessless_shell
#
# Erlang
ERLANG_VERSION=${ERLANG_VERSION:-19.0}
ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz"
ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"}
# Elixir
ELIXIR_VERSION=${ELIXIR_VERSION:-1.3.4}
@ecpplus
ecpplus / nginx.conf
Last active July 11, 2018 09:02
nginx.conf example for Phoenix Framework
upstream phoenix_server {
server localhost:4001;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
@hhsnopek
hhsnopek / netlify-dns.md
Last active November 30, 2019 14:48
Netlify DNS setup

Netlify DNS Setup

Quick ref for Netlify custom domains

Records

CNAME

Host: www, Value: you-netlify-site.netlify.com, TTL: 30 min

A

Host: @, Value: 198.61.251.14, TTL: 30min

@marcstober
marcstober / jquery-datatables-webpack
Last active October 9, 2020 07:35 — forked from jrunestone/jquery-datatables-webpack
DataTables.net with webpack
Here's how to make jQuery DataTables work with npm and webpack. This is the simplest way I found to do it.
See the previous revision of this gist for a way to do it with forcing AMD to be disabled if you need that.
Install DT core: npm install datatables.net
Install a DT style: npm install datatables.net-dt
Then to initialize DT in your app, do this in your main entry point:
// you can use import or require
import dt from 'datatables.net';
@tieubao
tieubao / codeship-elixir.sh
Created July 7, 2016 10:39 — forked from paulgoetze/codeship-elixir.sh
Codeship Elixir/Phoenix test setup
#!/bin/bash
# Erlang
ERLANG_VERSION=${ERLANG_VERSION:-19.0}
ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz"
ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"}
# Elixir
ELIXIR_VERSION=${ELIXIR_VERSION:-1.3.1}
ELIXIR_CACHED_DOWNLOAD="${HOME}/cache/elixir-v${ELIXIR_VERSION}.zip"
@wesbos
wesbos / commit-msg
Created July 4, 2016 18:55
ESLint 3.0 Git Pre Commit Hook
#!/bin/bash
files=$(git diff --cached --name-only | grep '\.jsx\?$')
# Prevent ESLint help message if no files matched
if [[ $files = "" ]] ; then
exit 0
fi
failed=0
for file in ${files}; do
@paulgoetze
paulgoetze / codeship-elixir.sh
Last active January 9, 2025 01:00
Codeship Elixir/Phoenix test setup
#!/bin/bash
# Erlang
ERLANG_VERSION=${ERLANG_VERSION:-20.2}
ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz"
ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"}
# Elixir
ELIXIR_VERSION=${ELIXIR_VERSION:-1.6.3}
ELIXIR_CACHED_DOWNLOAD="${HOME}/cache/elixir-v${ELIXIR_VERSION}.zip"
/***** Color Variables *****/
:root {
/* Base Colors */
--colorGreen: #95d06d;
--colorRed: #d06d6d;
--colorBlue: #41c1c8;
--colorBlueDark: #00587f;
--colorOrange: #f7931d;
--colorYellow: #d0ca6d;
--colorGray: #979797;
@davoclavo
davoclavo / up-and-running-with-edeliver-on-do.md
Last active June 6, 2022 11:55 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver

Build Server

  • Go to Digital Ocean
  • Create new ubuntu droplet

Setup Server