Skip to content

Instantly share code, notes, and snippets.

@boxmo
boxmo / asdf_ruby_install_openssl_error_fix.md
Last active August 28, 2020 18:05
How to install old ruby versions on arch linux using asdf - Fix SSLV3 error

Install the core/openssl-1.0 and aur/gcc5 packages

curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt > ruby2.x-openssl.patch
CC=gcc-5 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig:/usr/lib/pkgconfig RUBY_EXTRA_CONFIGURE_OPTIONS="--with-openssl-dir=/usr/lib/openssl-1.0" RUBY_APPLY_PATCHES=~/ruby2.x-openssl.patch asdf install ruby 2.0.0-p648 
@boxmo
boxmo / History|-4e620301|entries.json
Last active June 22, 2023 06:40 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
{"version":1,"resource":"file:///home/boxmo/projects/invitebox/app/views/landing/index.html.erb","entries":[{"id":"XT7r.erb","timestamp":1687414919953}]}
@boxmo
boxmo / gist:4adeecad9846915fd66f542877965610
Created October 27, 2016 17:41 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@boxmo
boxmo / gist:11186607
Created April 22, 2014 16:56
Show tables rows qty.
SELECT schemaname,relname,n_live_tup
FROM pg_stat_user_tables
ORDER BY n_live_tup DESC;