Skip to content

Instantly share code, notes, and snippets.

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

Luis Osnet LuisOsnet

🏠
Working from home
  • Modyo
  • Mexico City
  • 04:37 (UTC -06:00)
  • X @LuisOsnet
View GitHub Profile
@LuisOsnet
LuisOsnet / GitCommitEmoji.md
Created September 21, 2022 01:20 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@LuisOsnet
LuisOsnet / pre-commit.rspec.rb
Created October 6, 2021 16:55 — forked from sebthemonster/pre-commit.rspec.rb
pre-commit git hook, runs rspec if branch is master
#!/usr/bin/env ruby
# pre-commit git hook
# will run rspec if and only if current branch is master
# script adapted from http://book.git-scm.com/5_git_hooks.html
# source : https://gist.github.com/1141992
NO_COMMIT_MESSAGE = "\aDID NOT COMMIT YOUR FILES!"
FORMAT = :html
@LuisOsnet
LuisOsnet / pre-commit
Created October 6, 2021 16:52 — forked from koppen/pre-commit
Run rubocop on pre-commit
# .git/hook/pre-commit
#!/bin/sh
#
# Check for ruby style errors
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
NC='\033[0m'
@LuisOsnet
LuisOsnet / rails http status codes
Created May 6, 2021 20:10 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing