Skip to content

Instantly share code, notes, and snippets.

View jriverac's full-sized avatar
🏠
Working from home

José Rivera jriverac

🏠
Working from home
View GitHub Profile
@jriverac
jriverac / Show all files.sh
Last active October 10, 2018 17:25
After executing this, restart he finder by alt-right-clicking on it.
defaults write com.apple.finder AppleShowAllFiles YES
@jriverac
jriverac / Test Model.sh
Created September 28, 2018 21:22
This code will generate a test model that we can use to apply the quickform generator to with little changes.
rails g scaffold Product\
alegra_id:integer \
webstudio_id:integer \
proposify_id:integer \
category:string \
product_line:string \
name:string \
description:text \
reference:string \
product_key:string \
@jriverac
jriverac / show_all_files.sh
Created June 19, 2018 22:38
[Show All Files] Run this #bash #osx
defaults write com.apple.finder AppleShowAllFiles YES
@jriverac
jriverac / .rubocop.yml
Last active July 3, 2018 21:35
RuboCop Configurations #rubocop #configurations #ruby
# This is the default configuration file. Enabling and disabling is configured
# in separate files. This file adds all other parameters apart from Enabled.
# inherit_from:
# - enabled.yml
# - disabled.yml
# Common configuration.
AllCops:
# Include common Ruby source files.
@jriverac
jriverac / add_html_to_evernote.scpt
Last active January 18, 2019 23:05
[Add HTML to Evernote] #AppleScript
tell application "Evernote"
set notebook1 to notebook "Jokes"
set mynotes to (get every note in notebook1 whose title is "Test")
if (count of mynotes) is equal to 1 then
set note1 to item 1 of mynotes
tell note1 to append html "<br>"
tell note1 to append html "<a href=\"https://google.com\">link text</a>"
end if
end tell