Skip to content

Instantly share code, notes, and snippets.

@profh
profh / decode_session_cookie.rb
Last active January 9, 2025 12:23
A simple script to decode Rails 4 session cookies
@fernandoaleman
fernandoaleman / fix-libv8-mac.txt
Created May 5, 2016 15:14
Fixing libv8 and therubyracer on Mac
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install
@iamstoick
iamstoick / import.md
Created June 14, 2017 05:03
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p.

@matt-dray
matt-dray / gac-xml-df-csv.R
Last active October 3, 2018 13:22
Read XML files to dataframes in a list and then save each as a CSV
# FIREBREAK Q2 2018
# Government Art Collection
# Matt Dray
# 2 October 2018
# Purpose: Wrangle XML files output from GAC database to CSV
# Call packages -----------------------------------------------------------
@onlurking
onlurking / Ruby and Rails Study Roadmap.md
Created February 25, 2019 23:58
Ruby and Rails Study Roadmap
@sihugh
sihugh / GOV.UK API cheat sheet.md
Last active October 3, 2024 13:38
This is a quick start for working with GOV.UK's APIs