I hereby claim:
- I am pirafrank on github.
- I am pirafrank (https://keybase.io/pirafrank) on keybase.
- I have a public key whose fingerprint is 8CE5 6166 AD46 3442 9E3A CF7C 03F3 1E01 C9DC 0E67
To claim this, I am signing this object:
| #!/bin/bash | |
| # reset/update script to deploy a new stable version of a rails 4.x app served by Puma. | |
| ### REQUIREMENTS ### | |
| # this script makes use of another script, 'pumascript'.you can find it in my gists. | |
| # http://gist.github.com/pirafrank | |
| # this script assumes RAILS_ENV is set to 'production' on your server. |
| /** | |
| * Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
| * | |
| * This function was born in http://stackoverflow.com/a/6832721. | |
| * | |
| * @param {string} v1 The first version to be compared. | |
| * @param {string} v2 The second version to be compared. | |
| * @param {object} [options] Optional flags that affect comparison behavior: | |
| * <ul> | |
| * <li> |
| #!/bin/sh | |
| # | |
| # Orinally made by Lovell Fuller for sharp | |
| # https://github.com/lovell/sharp | |
| # | |
| # Usage: | |
| # curl -s https://gist.githubusercontent.com/h2non/89bb2f87c6499d0b25f1/raw/bf3d0743107f02f5db2b93c53f7f0e07a1c33112/libvips-installer.sh | sudo bash - | |
| # |
| #coding: utf-8 | |
| import keychain | |
| import console | |
| import editor | |
| import time | |
| import re | |
| import requests | |
| import json |
| #!/bin/bash | |
| if [[ $# > 1 ]]; then | |
| echo "Error: wrong number of arguments" | |
| exit -1 | |
| else | |
| if [[ $1 == "" ]]; then | |
| while read -r line | |
| do | |
| USER=$(echo $line | awk '{print $2}') |
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo -e " | |
| ROOT PRIVILEDGES NEEDED! | |
| You have to run this script as root. | |
| Aborting... | |
| " | |
| exit 1 | |
| else |
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo -e " | |
| ROOT PRIVILEDGES NEEDED! | |
| You have to run this script as root. | |
| Aborting... | |
| " | |
| exit 1 | |
| else |
I hereby claim:
To claim this, I am signing this object:
| # Linux | |
| alias ll='ls -Fhla --color=auto' | |
| alias ls='ls -Fh --color=auto' | |
| # OS X | |
| alias ll='ls -Fhla' | |
| alias ls='ls -Fh' |
| import sys | |
| import subprocess | |
| import os | |
| import platform | |
| def open_with_default(path): | |
| current_platform = platform.system() | |
| if current_platform == "Linux": | |
| subprocess.call(["xdg-open", path]) |