Skip to content

Instantly share code, notes, and snippets.

View johnrlive's full-sized avatar

John Rodriguez johnrlive

  • NY
View GitHub Profile
@johnrlive
johnrlive / deploy.rb
Created June 12, 2013 03:17 — forked from dariocravero/deploy.rb
deployment script using "mina -f config/deploy.rb"
require 'mina/git'
require 'mina/rbenv'
require 'mina-contrib/rbenv'
require 'mina-contrib/config'
require 'mina-contrib/bundler'
require 'mina-contrib/safety-check'
require 'mina-contrib/nginx'
require 'mina-contrib/puma'
set :term_mode, :pretty
require 'mina/git'
require 'mina/rbenv'
require 'mina-contrib/rbenv'
require 'mina-contrib/config'
require 'mina-contrib/bundler'
require 'mina-contrib/safety-check'
require 'mina-contrib/nginx'
require 'mina-contrib/puma'
set :term_mode, :pretty
@johnrlive
johnrlive / tmux.conf
Created July 22, 2013 14:54
My Tmux settings
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
############################################################################
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@johnrlive
johnrlive / config.fish
Last active October 30, 2017 18:51
config.fish
set -U fish_user_paths /usr/local/bin $fish_user_paths
### rbenv ###
#set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
#set -gx RBENV_ROOT /usr/local/bin/rbenv
### OpenSSL fix for Rbnev Install ###
set -g fish_user_paths "/usr/local/opt/openssl/bin" $fish_user_paths
@johnrlive
johnrlive / foo-bar.html
Created November 16, 2017 17:33
Snuggsi Components
<template onclick=onfoo>
<h1>foo-bar custom element</h1>
<slot name=content>Some Default Content</slot>
<ul>
<template name=bat>
<li>Item {#} - Value {self}
</template>
@johnrlive
johnrlive / one-click-hugo-cms-theme-config.sh
Last active March 12, 2018 18:27
one-click-hugo-cms-theme-config.sh
#!/bin/bash
git clone https://github.com/netlify-templates/one-click-hugo-cms
cd one-click-hugo-cms
npm install
echo "use the config.yml"
sleep 1
# delete config.toml
rm site/config.toml
# create config.yml
@johnrlive
johnrlive / .aliases
Last active April 6, 2022 02:30
Basic .vimrc config for DevOps
#V1 test
###### Aliases ######
## TMUX ALIASES ##
alias t="tmux"
alias tl="tmux ls"
alias tk="tmux kill-session -t"
alias tn="tmux new -s"
alias tat="tmux attach-session -t"
## PYTHON ALIASES
alias pip="pip3"
#!/bin/bash
echo 'Install vim'
sudo apt-get install vim
echo 'Install vim-plug'
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo 'mkdir ~/.vim/plugged'