Skip to content

Instantly share code, notes, and snippets.

View defulmere's full-sized avatar

Sean Fulmer defulmere

View GitHub Profile
@defulmere
defulmere / install_gnupg.sh
Last active October 14, 2023 15:50
Install latest (as of 2023-02) gnupg on Opalstack
#!/bin/bash
mkdir -p ~/opt/{tmp,src}
export TMPDIR=~/opt/tmp
export CPPFLAGS="-I$HOME/opt/include $CPPFLAGS"
export LDFLAGS="-L$HOME/opt/lib $LDFLAGS"
export LD_LIBRARY_PATH=$HOME/opt/lib
export PATH=$HOME/opt/bin:$PATH
echo 'export PATH=$HOME/opt/bin:$PATH' >> ~/.bashrc
@defulmere
defulmere / bootstrap_rails.md
Last active December 7, 2024 20:28
Bootstrap a Rails project without having Rails installed first

Bootstrap a rails project without rails installed

Set GEM_HOME to an ephemeral directory then use gem exec to run rails:

export GEM_HOME=$( mktemp -d )
gem exec rails new myproject
cd myproject
bundle config set deployment true
bundle install