Skip to content

Instantly share code, notes, and snippets.

View JdeJ's full-sized avatar
🏠
Coding something remotely

Jorge de Juana JdeJ

🏠
Coding something remotely
View GitHub Profile
@JdeJ
JdeJ / git_pull.sh
Last active October 22, 2023 16:45
Script to fetch the current branch of all repositories on a folder
#!/bin/bash
# By default it will fetch the base branch of the current directory,
# if we want to fetch all branches, pass -all or -A param.
# Run it without downloading:
# bash <(curl -s https://gist.githubusercontent.com/JdeJ/410660ab2bcc4b19d3648e9c92faf9d1/raw/9f4a2d7e08b1e0d41d0825aad3813da4d0481bc1/git_pull.sh)
pull_all_branches() {
local directory="$1"
cd "$directory" || return
@JdeJ
JdeJ / vscode-extensions.sh
Created September 27, 2020 18:53
A bash script to install Visual Studio Code extensions via the CLI
#! /bin/bash
echo "Hello World!"
@JdeJ
JdeJ / Katas
Created November 29, 2018 22:36
/**************************
Is there a vowel in there?
**************************/
function isVow(a){
for(let i=0; i<a.length; i++){
switch(a[i]){
case 97:
a[i] = 'a';
break;