Skip to content

Instantly share code, notes, and snippets.

View pedro-mass's full-sized avatar
🎯

Pedro Mass pedro-mass

🎯
View GitHub Profile
@pedro-mass
pedro-mass / Setting-up-Semantic-Release.md
Last active October 17, 2024 10:12
Setting up semantic-release with commit linter and commit message helper
@pedro-mass
pedro-mass / set-brew-permissions.sh
Last active October 3, 2019 19:18 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
sudo chgrp -R admin $(brew --prefix)/*
sudo chmod -R g+w $(brew --prefix)/*
# everything brew is self-contained in `$(brew --prefix)/*` - so you're all set!
@pedro-mass
pedro-mass / new-project-resources.md
Last active July 6, 2021 14:42
New Project Resources

New Project Resources

Some good resources that will help with getting a project going


Table of Contents
@pedro-mass
pedro-mass / package.json
Last active November 18, 2021 14:31
Allows you to have a default port set, but also override when calling
{
"scripts": {
"pedro": "PORT=${PORT:-3001} && echo $PORT"
}
}
@pedro-mass
pedro-mass / gcoo.sh
Last active November 18, 2021 16:30
zsh scripts
# Interactive way to select branch. Lists out the commits to help pick the right branch
gcoo() {
is_in_git_repo || return
git branch -a --color=always | grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn} -v '/HEAD\s' | sort | fzf --ansi --multi --tac --preview-window right:70% --preview 'git log --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | sed 's/^..//' | cut -d' ' -f1 | sed 's#^remotes/origin/##' | xargs git checkout
}
{
// docs: https://code.visualstudio.com/docs/editor/userdefinedsnippets
// Place your risks-client workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
@pedro-mass
pedro-mass / updateSFproperty.json
Created July 24, 2023 21:13
updateSFproperty.json
{"keys":["heroku_id", "name", "city__c", "state__c", "zip__c"],"values":[["18a5348f-8292-4bd5-8781-278f7c1e493c","5467 Tanner Grove Ct","Kernersville","NC","27284"],["2f554310-1af6-459a-b782-94f4e4461623","10558 Toffenham Dr","Frisco","TX","75035"],["af7a4963-609b-44ba-94e8-92160b09158e","10558 Toffenham Dr","Frisco","TX","75035"],["e9c71f5a-0546-44e5-be49-1890d2194f37","9 Fisher Pines Way","Dartmouth","MA","02747"],["635aaeae-b053-4a3d-beb1-ef7282462dcc","9 Fisher Pines Way","Dartmouth","MA","02747"],["eabccccc-d572-4329-a27e-2eae363277a0","14608 Tanglewood Dr","Farmers Branch","TX","75234"],["f8a700ec-ace0-4ff6-bf18-5fbfb2f962cf","3809 Duncan Dr","Forest Hill","TX","76119"],["d13dc412-d50e-45a1-88de-fd583ba733e5","3809 Duncan Dr","Forest Hill","TX","76119"],["4acd15ab-d38a-45bf-91df-eba5c433439a","2924 Lucas Dr","Dallas","TX","75219"],["45f06e64-ddee-41d7-9a4d-809f406abf5a","2924 Lucas Dr","Dallas","TX","75219"],["4f6c4d4d-8e5e-4fc9-b601-cecad3ef47c2","506 Magazine Ave","New Braunfels","TX","78130"],["67bcb
@pedro-mass
pedro-mass / Update SF Quote Request.json
Last active February 6, 2024 22:33
Update SF Quote Request.json
{"keys":["heroku_id", "payment_type__c", "state__c"],"values":[["0000d1de-86f1-45cd-bfb1-08033dd9b20d","One Time","TX"],["00012520-713f-41ce-b9c5-b53bc83e9f1f","Monthly","MD"],["0001673b-899f-45d4-922c-c43c5eb1a559","One Time","TX"],["000170f4-b2be-43a9-911e-e213ed19b11e","Monthly","TX"],["0001f9aa-09eb-41c7-970e-ef8f0bad095d","Monthly","AL"],["00027f00-a570-4cee-9e56-3c2f1d368c6c","One Time","TX"],["0002ac96-1423-4fa7-9a9c-13c650ccdf52","One Time","TX"],["0002ea7f-bc98-4dfb-930f-e93e1e65e71f","One Time","IL"],["00032a24-b785-4f6c-8396-85f3991527b4","One Time","TX"],["0003506c-d86b-4358-af56-01f575fdf6a8","Monthly","TX"],["0003873c-647f-4a71-b873-9dacb8a0bc32","One Time","MO"],["0003b344-6db4-4fb1-812c-05333694453b","Monthly","IL"],["0004268b-3e48-467f-96c3-fedd12701a88","Monthly","AZ"],["00050c95-5364-485d-a7a9-502744dcdde1","Monthly","CO"],["00051c20-3a4f-4a83-8c5c-a7baded49481","Monthly","TX"],["00056ee4-0f68-4b74-97ae-dbf52a6f9425","Monthly","TX"],["00058132-942a-412d-b9ba-0fb806fb3c73","Monthly","TX"],["