Skip to content

Instantly share code, notes, and snippets.

joeblau / git yolo
Created Feb 3, 2014
git yolo command
View git yolo
alias gityolo='git commit -am "DEAL WITH IT" && git push -f origin master'
justinmayer /
Last active Sep 20, 2019
Menlo font, patched for Powerline. Includes regular, bold, italic, and bold italic variants.
jtadeulopes /
Last active Sep 5, 2021
Server setup with ubuntu, nginx and puma for rails app.

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

linjunpop /
Last active May 9, 2018
Deploy Rails 4 app with Dokku on DigitalOcean

Deploy Rails 4 app with Dokku on DigitalOcean

Install dokku

First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel

Then ssh with root account, run this in termianl:

$ wget -qO- | sudo bash
inopinatus / hstore_accessor.rb
Last active Feb 22, 2019
hstore accessor class method for AR
View hstore_accessor.rb
# include from an initializer
module HstoreAccessor
def self.included(base)
module ClassMethods
def hstore_accessor(hstore_attribute, *keys)
Array(keys).flatten.each do |key|
johnrees / opacity_mixin.css.scss
Created May 2, 2012
SASS/SCSS Internet Explorer Compatible Opacity Mixin
View opacity_mixin.css.scss
@mixin opacity($alpha) {
// IE 8
// IE 5-7
filter: alpha(opacity=$alpha*100);
// Real Browsers
-webkit-opacity: $alpha;
-moz-opacity: $alpha;
-khtml-opacity: $alpha;
opacity: $alpha;
erikh /
Created Mar 31, 2012 — forked from DAddYE/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
johnrees /
Last active May 29, 2018
Standard Rails 5.* setup for Ubuntu 14.04 LTS
# As root user
sudo su
# Update the OS
sudo apt-get update -y
# Add this to ~/.bashrc to remove timezone warnings
echo 'export LC_ALL="en_US.UTF-8"' >> ~/.bashrc
source ~/.bashrc
panuta / gist:1852087
Last active Apr 8, 2020
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew
View gist:1852087

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)
endolith / Has weird right-to-left characters.txt
Last active Oct 19, 2021
Unicode kaomoji smileys emoticons emoji
View Has weird right-to-left characters.txt