Skip to content

Instantly share code, notes, and snippets.

View luccasmaso's full-sized avatar

Luccas Maso luccasmaso

View GitHub Profile
@luccasmaso
luccasmaso / Gemfile
Created December 11, 2020 12:28 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@luccasmaso
luccasmaso / run-on-heroku.sh
Created April 13, 2020 03:25
Run local ruby scripts on Heroku with ENV variables
cat /path/to/script.rb | heroku run ENV_A=1 ENV_B=2 rails console -a your-application --no-tty
@luccasmaso
luccasmaso / gist:ce51d9875c6d4fb60cc4ca53ca50395d
Last active February 2, 2017 13:46
Script for backup app data from androids 4.4
adb shell
bu 1 backup -apk your.package.name > /sdcard/backup.ab
exit
adb pull /sdcard/backup.ab
# https://sourceforge.net/projects/adbextractor/
java -jar abe.jar unpack backup.ab backup.tar