Skip to content

Instantly share code, notes, and snippets.

View mpapis's full-sized avatar
🙃
I am slow to respond, ping me when it's crucial.

Michal Papis mpapis

🙃
I am slow to respond, ping me when it's crucial.
View GitHub Profile
@mpapis
mpapis / Gemfile
Last active December 19, 2015 00:20 — forked from workmaster2n/Gemfile
# Just part of it
gem 'pg'
gem 'rgeo'
gem 'rgeo-shapefile'
gem 'activerecord-postgis-adapter'
gem 'paperclip'
# Just part of it
gem 'pg'
gem 'rgeo'
gem 'rgeo-shapefile'
gem 'activerecord-postgis-adapter'
gem 'paperclip'
@mpapis
mpapis / setup.sh
Last active December 18, 2015 02:58
#!/usr/bin/env bash
MY_RUBY="jruby-1.7.4"
# install required packages
apt-get update
apt-get install -y build-essential git-core curl openjdk-7-jdk vim ack-grep postgresql postgresql-server-dev-9.1
# install RVM, update dot files
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles
require "rvm/capistrano"
require "bundler/capistrano"
load "deploy/assets"
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
set :application, "vinyl_villain"
set :scm, :git
[[ -d "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"
source ~/.bashrc
@mpapis
mpapis / gist:5391238
Last active December 16, 2015 06:28 — forked from iewnait/gist:5332536
set :stages, %w(production sandbox)
set :default_stage, "sandbox"
require 'capistrano/ext/multistage'
set :application, "blogtest"
set :repository, "git@github.com:iewnait/blogtest.git"
default_run_options[:pty] = true
set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
@mpapis
mpapis / powrc.sh
Last active June 10, 2020 21:31 — forked from nbibler/gist:5307941
if
[ -f "$rvm_path/scripts/rvm" ]
then
__env="$( "$rvm_path/bin/rvm" . do env --path )"
if
[ -n "$__env" ] &&
[ -s "$__env" ]
then
source "$__env"
fi
@mpapis
mpapis / gist:5334353
Last active December 15, 2015 22:39 — forked from iewnait/gist:5332536
set :stages, %w(production sandbox)
set :default_stage, "sandbox"
require 'capistrano/ext/multistage'
set :application, "blogtest"
set :repository, "git@github.com:iewnait/blogtest.git"
default_run_options[:pty] = true
set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
module PythonishDecorator
def method_added(name)
return unless @decorations
decorations = @decorations.dup
@decorations = nil
alias_method "undecorated_#{name}", name
define_method(name) do |*args|
@mpapis
mpapis / log.sh
Last active December 14, 2015 22:09 — forked from wcleveland/gist:5156412
Output of rvm reinstall 1.9.3 --debug
Using ScientificLinux 6.3 and installed rvm with `curl -L https://get.rvm.io | sudo bash -s head`
[user@Scientific ~]$ rvm install 1.9.3 --debug
Already installed ruby-1.9.3-p392.
To reinstall use:
rvm reinstall 1.9.3
__rvm_rm_rf already gone: /usr/local/rvm/tmp/28625*