Skip to content

Instantly share code, notes, and snippets.

View konung's full-sized avatar
💭
💙💛

Nick Gorbikoff konung

💭
💙💛
View GitHub Profile
FROM crystallang/crystal:0.27.2
WORKDIR /opt/src
# Install nodejs
COPY bin ./bin
RUN bin/nodesource_11.x
RUN apt-get update && apt-get install -y nodejs
# npm install
@konung
konung / 00_notes.txt
Created February 15, 2019 05:33 — forked from jwoertink/00_notes.txt
Our production deployment setup for deploying Lucky on to Elastic Beanstalk in production.
We develop locally on MacOS. Due to some issues with cross compilation, we build the crystal binary on docker locally,
then zip that up and ship that along with the docker stuff to elasticbeanstalk.
@konung
konung / README.md
Last active July 26, 2018 23:31 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
# And, to activate, you need to tell Rails to load it up:
# config/application.rb
config.middleware.insert_before 0, Rack::Attack
@konung
konung / gource.sh
Created March 13, 2018 00:01
Gource
gource -1280x720 -s 0.01 --max-file-lag 0.1 --auto-skip-seconds 0.25 --user-image-dir ./avatar --hide progress,filenames,dirnames,mouse --date-format "%Y-%m-%d" --multi-sampling --bloom-multiplier 0.4 --bloom-intensity 0.8 --user-scale 1 --max-user-speed 50 --file-idle-time 0 --key --font-size 25 --title "Cell Commits" --font-colour FF0000 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 8 -bf 0 gource_cell_commits.mp4
module Shopify.Product.Model where
type alias Product =
{ created_at : String,
id : Int,
product_type : String,
published_at : String,
published_scope : String,
title : String,
updated_at : String,
@konung
konung / how-to-squash-commits-in-git.md
Created February 8, 2018 18:01 — forked from patik/how-to-squash-commits-in-git.md
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

# ## Docs setup
# ### On Github
# Fork api-docs repo on github to your account.
# Any change you make you should push to your repo first ( into a branch preferably) and then create a pull-request to trailblazer
#
# ## Locally
# Create a local folder like ~/projects/trailblazer/docs ( or whatever)
# Where you are going to keep local copies of the gems.
#
# cd into the said directory
@konung
konung / ree-1.8.7-2011.03
Last active February 2, 2017 16:40 — forked from fgrehm/ree-1.8.7-2011.03
ruby-build REE definitions for Ubuntu 12.04
build_package_patched() {
# These three patches are included when RVM builds REE
cd source
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch'
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch'
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/no_sslv2.diff'
patch -p1 < tcmalloc.patch
patch -p1 < stdout-rouge-fix.patch
patch -p1 < no_sslv2.diff
cd ..
@konung
konung / ubuntu-install-ruby-1.8.7.sh
Created February 2, 2017 15:34 — forked from murphyslaw/ubuntu-install-ruby-1.8.7.sh
Install Ruby 1.8.7 with rbenv on Ubuntu
# Install system libraries.
sudo apt-get install zlib1g-dev openssl libssl-dev libreadline-dev git-core
# Install rbenv.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
# Setup bash.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL