Skip to content

Instantly share code, notes, and snippets.

Jeremy Pinnix jpinnix

Block or report user

Report or block jpinnix

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 Oh my zsh with autosuggestions & syntax-highlighting.md

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@jpinnix
jpinnix / convert_itermcolors.py
Created Apr 20, 2020 — forked from MSylvia/convert_itermcolors.py
Convert .itermcolors file to html hex
View convert_itermcolors.py
#!/usr/bin/env python
#
# Convert .itermcolors files to hex colors for html
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
@jpinnix
jpinnix / iterm2kitty.py
Created Apr 20, 2020 — forked from qrbounty/iterm2kitty.py
Convert .itermcolors file to kitty term theme colors
View iterm2kitty.py
#!/usr/bin/env python3
#
# Convert .itermcolors files to kitty terminal color settings.
# Modded from https://gist.github.com/MSylvia/4e90860743f1a4de187d
# Might need to adjust dicts[i][NUMBER].text per your file.
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
@jpinnix
jpinnix / webflow-breakpoints.css
Created Apr 17, 2020 — forked from vejnoe/webflow-breakpoints.css
Webflow Standard Breakpoints
View webflow-breakpoints.css
@media screen and (max-width: 991px) {
/* Your responsive CSS */
}
@media screen and (max-width: 767px) {
/* Your responsive CSS */
}
@media screen and (max-width: 479px) {
/* Your responsive CSS */
}
View 1-rambox-pro-exclusive-diff.txt
10000ft
ActiveCollab
Additor
Aha!
Airtable
Amazing Marvin
Android Messages
Any.do
AnywhereWorks
Arc Studio Pro
View git-cheat-sheet.md
command usage
git init Creates an empty Git repository in the specified directory.
git clone Clones a repository located at onto your local machine.
git add Stages only the specified changes for the
View config_compiler.exs
# This is the target module which will be overwritten after dynamic compilation
# You'll be using this to read configuration in your code. For instance, if you
# have a configuration key called `:redis_timeout`, you could read it using
# `MM.Config.get(:redis_timeout)`
defmodule MM.Config do
# we use a default implementation which raises an error when our code tries
# to read configuration before it is compiled.
def get(_key), do: raise("Config has not been compiled yet!")
end
@jpinnix
jpinnix / fitter_happier.txt
Created Aug 3, 2018
Fitter Happier by Radiohead
View fitter_happier.txt
Fitter, happier
More productive
Comfortable
Not drinking too much
Regular exercise at the gym, three days a week
Getting on better with your associate employee contemporaries
At ease
Eating well, no more microwave dinners and saturated fats
A patient, better driver
A safer car, baby smiling in back seat
@jpinnix
jpinnix / soap_method.ex
Created Jun 20, 2018 — forked from aoswalt/soap_method.ex
soap method macro for building request body and handling soap responses
View soap_method.ex
defmodule MdToolbox.Api.SoapMethod do
alias __MODULE__
alias MdToolbox.Api.Request
@doc "Builds the request from params"
@callback build_request(params :: list()) :: map()
@doc "Parses the request's response into data"
@callback parse_response(request :: Request.t()) :: Request.t()
@jpinnix
jpinnix / Flexible Dockerized Phoenix Deployments.md
Created May 25, 2018 — forked from jswny/Flexible Dockerized Phoenix Deployments.md
A guide to building and running zero-dependency Phoenix (Elixir) deployments with Docker. Works with Phoenix 1.2 and 1.3.
View Flexible Dockerized Phoenix Deployments.md

Prelude

I. Preface and Motivation

This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.

For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai

You can’t perform that action at this time.