Skip to content

Instantly share code, notes, and snippets.

@jgryffindor
jgryffindor / cosmovisor-poa-sw-upgrade-group.md
Last active August 1, 2024 19:25 — forked from fmorency/cosmovisor-poa-sw-upgrade-group.md
cosmovisor + POA + Software Upgrade + Group Proposal
@jgryffindor
jgryffindor / mediaqueries.css
Created July 24, 2018 05:15 — forked from needim/mediaqueries.css
Device Specific CSS Media Queries Collection
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone 6 in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
# This file should be placed on the directory of ~/blog/config
upstream unicorn {
server unix:/tmp/unicorn.todo.socket fail_timeout=0;
}
server {
listen 80 default;
#server_name example.com;
root /home/username/blog/public;
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@jgryffindor
jgryffindor / install-ruby-on-rails.sh
Created August 18, 2013 20:02
Ruby Installation: Install dependencies, Install Ruby, Update RubyGems, Test Gems, Install Rails
# Navigation to TMP Directory
cd /tmp
# Remove old Ruby if present
yum remove ruby
# Install dependencies
yum groupinstall "Development Tools"
yum install zlib zlib-devel
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev