- It's used to learn/explore something very SPECIFIC (hyper focus).
- It's simple and solves a SINGLE question.
- It's AGNOSTIC to the business details.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List the secret keys available in GPG. | |
gpg --list-secret-keys --keyid-format=long | |
# Copy your key | |
# Set your key for your user in git | |
git config --global user.signingkey <your key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add <remote-alias> <remote-url> | |
git pull <remote-alias> <remote-branch> | |
# Example | |
➜ expressjs-expressjs.com git:(gh-pages) git remote -v | |
origin git@github.com:inigomarquinez/expressjs-expressjs.com.git (fetch) | |
origin git@github.com:inigomarquinez/expressjs-expressjs.com.git (push) | |
➜ expressjs-expressjs.com git:(gh-pages) git remote add ulises git@github.com:ulisesgascon/expressjs.com.git | |
➜ expressjs-expressjs.com git:(gh-pages) git remote -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('relative-time').forEach(relative => { | |
relative.shadowRoot.textContent = `${relative.textContent} (${relative.getAttribute('title')})`; | |
relative.textContent = `${relative.textContent} (${relative.getAttribute('title')})`; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
help(){ | |
echo -e 'Usage: dracarys-git-local-branches <main-branch>\n' | |
echo -e '\tRemove all local branches except main branch.' | |
echo -e '\tMain branch should be master or main, depending on your project' | |
exit 1 | |
} | |
MAIN_BRANCH="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
CWD=$(pwd) | |
echo -e "Are you sure you want to remove all your node_modules folders recursively from here? (Press CTRL+C to cancel)" | |
echo -e "Current location: \e[32m$CWD\e[39m" | |
echo -n "Only 'yes' will be accepted to continue: " | |
read NEW_VALUE | |
if [ "$NEW_VALUE" = "yes" ]; then |
I hereby claim:
- I am inigomarquinez on github.
- I am inigomarquinez (https://keybase.io/inigomarquinez) on keybase.
- I have a public key whose fingerprint is B657 731C 05C3 4BA0 CFBE E740 D3D5 AB75 88DB 34FD
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
// Configuration used to debug the application (default configuration created by Visual Studio Code ) | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome against localhost", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceFolder}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
// Configuration used to debug the application (default configuration created by Visual Studio Code ) | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"skipFiles": [ | |
"<node_internals>/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
// Configuration used to debug the application (default configuration created by Visual Studio Code ) | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"skipFiles": [ | |
"<node_internals>/**" |