Skip to content

Instantly share code, notes, and snippets.

View senechaux's full-sized avatar
🎯
Focusing

Angel senechaux

🎯
Focusing
View GitHub Profile
@senechaux
senechaux / git_pull_all.sh
Created October 3, 2018 14:04
Git pull all subdirectories in current directory
#!/bin/bash
DIRS=`ls -d */`
for dir in ${DIRS[@]}; do
cd $dir
if [ -d .git ]; then
echo '=================='
echo '=================='
echo $dir
find . -maxdepth 2 -name docker-compose.yml -exec grep -i '3306' {} \;
@senechaux
senechaux / escribir_palabras_wordle.js
Last active June 27, 2022 10:15
Script wordle para escribir palabras
const words=["pauta","enero","dudar","logro","sushi","pañal","caida","cargo","tenaz","firme","fresa","teñir"];
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const writeWords = async (words) => {
let index = 0;
for (const word of words) {
console.log('write word '+(++index)+'/'+words.length+': '+word);
const letters = Array.from(word);
@senechaux
senechaux / adivinar_palabras_wordle.js
Last active June 22, 2022 13:40
Script wordle para adivinar palabras
let numberOfWordsToGuess = 10;
let guessedWords = new Array();
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const guessWords = async () => {
const intentos = [1, 2, 3, 4, 5, 6];
const word = 'reino';