Skip to content

Instantly share code, notes, and snippets.

View rubysolo's full-sized avatar

Solomon White rubysolo

View GitHub Profile
@rubysolo
rubysolo / Phoenix esbuild with Tailwind and Fontawesome
Created October 11, 2021 16:16 — forked from ks2211/Phoenix esbuild with Tailwind and Fontawesome
Phoenix with esbuild, fortawesome, and tailwindcss
Phoenix esbuild with Tailwind+Fontawesome
@rubysolo
rubysolo / terragrunt_light.js
Created December 31, 2020 20:02 — forked from dmattia/terragrunt_light.js
A less verbose terragrunt
/**
* Wrapper around terragrunt to display output succinctly on Atlantis.
*
* Terragrunt is notoriously verbose, which can cause Atlantis to output
* hundreds of comments on single PRs, which can be annoying.
*
* This script will output just the final plan for resources to update on
* successful terragrunt runs, but will output all terragrunt output on
* errors.
*/
@rubysolo
rubysolo / data.js
Created March 1, 2017 00:07 — forked from NPashaP/data.js
Stacked Density and Quantile Graphs
var dqData=[];
dqData.push({title:'Product Groups',
mean:0.0393,
dP:[
['GROUP01',-0.0435,32937],
['GROUP10',-0.2651,132],
['GROUP11',-0.0694,1164],
['GROUP12',0.0345,17127],
['GROUP13',-0.0288,8858],
['GROUP18',-0.3741,46],
@rubysolo
rubysolo / meme.rb
Created December 14, 2015 21:18 — forked from marcinbunsch/meme.rb
Meme generator using local images
#!/usr/bin/env ruby
#
# OMG THIS CODE IS SO UGLY
# but...
# IT WORKS!!
#
# Hacked together by http://github.com/marcinbunsch
#
# This assumes the following:
# - That you're on a Mac
@rubysolo
rubysolo / config.exs
Created October 11, 2015 19:35 — forked from limhoff-r7/config.exs
nginx + phoenix configuration to server phoenix behind nginx at path 'phoenix'. nginx rewrites incoming URLs to strip the /phoenix, while the config.exs for phoenix ensures URLs are prefixed with /phoenix using the config.url.path
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the namespace used by Phoenix generators
config :my_app,
app_namespace: MyApp
@rubysolo
rubysolo / up-and-running-with-edeliver-on-do.md
Created October 7, 2015 22:45 — 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 droplet
  • London
  • Ubuntu
  • No apps
  • Add SSH keys
@rubysolo
rubysolo / a.rb
Last active August 29, 2015 14:20 — forked from ahoward/a.rb
segment = Segment::TwitterFollowers.create(
name: "Demo Twitter Followers Segment #{ timestamp }",
account: account,
client: client,
definition_data: "@nike\n"
)
VS
@rubysolo
rubysolo / nginx.conf
Last active August 29, 2015 14:07 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
PG_OLD=9.1
PG_NEW=9.4
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-$PG_NEW postgresql-server-dev-$PG_NEW postgresql-contrib-$PG_NEW -y
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'"
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'"
sudo su - postgres -c "service postgresql stop"
@rubysolo
rubysolo / index.html
Last active August 29, 2015 14:00 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">How Simpleton Works</tspan>
</label>
<actor t="translate(76,42)" pose="-11,9|-4,117|-11,99|-13,87|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59">