Skip to content

Instantly share code, notes, and snippets.

@ramonsnir
ramonsnir / prepare.sh
Last active February 24, 2022 17:19
Eetoul Codeship prepare script
#!/bin/bash
set -e
# Keep in sync with elixir_buildpack.config (heroku config)
#export GIT_VERSION="v2.8.2" # set by Codeship
#export ERLANG_VERSION="18.0" # set by Codeship
#export ELIXIR_VERSION="v1.0.5" # set by Codeship
#export LIBGIT2_VERSION="v0.22.1" # set by Codeship
export INSTALL_PATH="$HOME/cache"
@ramonsnir
ramonsnir / make.log
Created December 7, 2016 17:45
rvm/issues/3831
[2016-12-07 12:39:49] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /home/ramon/.rvm/src/ruby-1.9.3-p551
GEM_HOME=/home/ramon/.rvm/gems/ruby-1.9.3-p551
PATH=/home/ramon/.rvm/gems/ruby-1.9.3-p551/bin:/home/ramon/.rvm/gems/ruby-1.9.3-p551@global/bin:/home/ramon/.rvm/rubies/ruby-1.9.3-p551/bin:/home/ramon/.rvm/bin:/home/ramon/.nvm/versions/node/v6.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/home/ramon/.cabal/bin:/bin:/home/ramon/npm/bin:/home/ramon/.opam/system/bin:/usr/local/bin:/home/ramon/.cabal/bin:/bin:/home/ramon/npm/bin:/home/ramon/.opam/system/bin
GEM_PATH=/home/ramon/.rvm/gems/ruby-1.9.3-p551:/home/ramon/.rvm/gems/ruby-1.9.3-p551@global
command(2): __rvm_make -j8
@ramonsnir
ramonsnir / git-pushu.sh
Created July 16, 2016 10:10
/usr/local/bin/git-pushu (assumes that you always like your `origin` remote)
#!/bin/bash
if ( git status | grep "origin" -q ); then
git push $@
else
branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
git push --set-upstream origin "${branch_name##refs/heads/}"
git push $@
fi
@ramonsnir
ramonsnir / Dockerfile
Created February 21, 2016 13:13
leaking docker-compose
FROM node:4.3.1
ADD . .
RUN npm install
CMD node test.js
@ramonsnir
ramonsnir / msgpack-increment.lua
Created January 26, 2016 14:43
Simple Lua script for our test
--[[
ARGUMENTS
KEYS:
1 - key
ARGV:
1 - sub-key to increment
--]]
-- unpack data, or empty data
local data = redis.call("get", KEYS[1])
@ramonsnir
ramonsnir / .bashrc
Last active January 25, 2016 15:31
Ramon.bgptheme
# your other stuff...
# git prompt
GIT_PROMPT_THEME=Ramon
GIT_PROMPT_ONLY_IN_REPO=0
GIT_PROMPT_FETCH_REMOTE_STATUS=0
. ~/.bash-git-prompt/gitprompt.sh