Skip to content

Instantly share code, notes, and snippets.

View wlizama's full-sized avatar
💻
Making amazing things 🔣

Wilder Lizama wlizama

💻
Making amazing things 🔣
View GitHub Profile
# detener todos los contenedores
for a in `docker ps -a -q`
do
echo "Stopping container - $a"
docker stop $a
done
docker ps
# f43a902fdef agitated_bassi
docker exec -it f43a902fdef bash
@wlizama
wlizama / merge_commit_files_changed.sh
Created September 15, 2020 23:18
Ver archivos cambiados en un merge commit
git log -m -1 --name-only --pretty="format:" commit_id_here
function solution(inputString) {
for(let i = 0; i < inputString.length / 2; i++) {
if (inputString[i] != inputString[inputString.length - i - 1 ])
return false;
}
return true
}
@wlizama
wlizama / revert-merge-commit.sh
Created January 12, 2024 16:49
Revert merge commit
# ensure you are on the correct branch where the merge commit needs to be undone
git checkout main
# find the hash of the merge commit that you want to undo
git log
# Use git revert with the -m option followed by the commit hash to revert the
# merge commit. The -m option specifies the mainline parent, which is usually the branch you merged into
git revert -m 1 <merge_commit_hash>