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 / 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
@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 / 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 / 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
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 / Hide 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 NO
@jriverac
jriverac / SearchInProject.sublime-settings.json
Last active October 11, 2018 20:55
Search In Project User Preferences #sublime #sublime_text #pt
{
"search_in_project_ThePlatinumSearcher_mandatory_options": "--column --nogroup --nocolor",
"search_in_project_ThePlatinumSearcher_path_to_executable": "pt",
"search_in_project_engine": "the_platinum_searcher"
}
@jriverac
jriverac / Preferences.sublime-settings.json
Last active October 11, 2018 20:54
Sublime Text 3 User Preferences #sublime #sublime_text
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"draw_indent_guides": true,
"fade_fold_buttons": false,
[
{ "keys": ["ctrl+h"], "command": "dash_doc"},
{
"command": "reveal_in_side_bar",
"keys": [
"ctrl+shift+r"
]
},
{
"command": "dash_doc",
{
// Utilizar IntelliSense para aprender acerca de los posibles atributos.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"debugServer": 4711,
"configurations": [
{
"name": "Debug Local File",