Skip to content

Instantly share code, notes, and snippets.

View inigomarquinez's full-sized avatar
👨‍💻
Programming...

Íñigo Marquínez Prado inigomarquinez

👨‍💻
Programming...
  • One Beyond
  • Madrid, Spain
  • 16:17 (UTC +02:00)
View GitHub Profile
@inigomarquinez
inigomarquinez / vscode-launch-jest-config.jsonc
Created May 12, 2020 13:18
How to configure Visual Studio Code for Jest test debugging
{
"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>/**"
@inigomarquinez
inigomarquinez / vscode-launch-mocha-config.jsonc
Created May 12, 2020 13:19
How to configure Visual Studio Code for Mocha test debugging
{
"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>/**"
@inigomarquinez
inigomarquinez / vscode-launch-cypress-config.jsonc
Created May 12, 2020 13:22
How to configure Visual Studio Code for Cypress test debugging
{
"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}"

Keybase proof

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:

@inigomarquinez
inigomarquinez / dracarys-node-modules
Created September 13, 2022 16:39
Remove node_modules folders recursively
#! /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
@inigomarquinez
inigomarquinez / dracarys-git-local-branches
Created September 13, 2022 16:42
Remove all local branches
#! /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"
@inigomarquinez
inigomarquinez / relative-to-abosulte-dates.go
Created January 31, 2024 08:02
Script to change relative dates to absoulte dates in GitHub
$$('relative-time').forEach(relative => {
relative.shadowRoot.textContent = `${relative.textContent} (${relative.getAttribute('title')})`;
relative.textContent = `${relative.textContent} (${relative.getAttribute('title')})`;
});
@inigomarquinez
inigomarquinez / poc-template.md
Last active January 31, 2024 08:28
Template to create POCs README files

POC TITLE

✅ Is this really a POC?

  • 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.
@inigomarquinez
inigomarquinez / merge-fork-changes.sh
Last active April 15, 2024 10:55
Incorporating changes from another user's fork into your fork
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
@inigomarquinez
inigomarquinez / gpg-failed-fix.sh
Created April 26, 2024 10:33
error: gpg failed to sign the data
# 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>