Skip to content

Instantly share code, notes, and snippets.

View ravidorr's full-sized avatar
🏢
Working

Raanan Avidor ravidorr

🏢
Working
View GitHub Profile
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@ravidorr
ravidorr / updateAllTheGit.sh
Created April 12, 2022 08:49
Scan the subdirectories for git repository, fetch, stash changes, switch to master, pull, switch back to original branch and pop stash
#!/usr/bin/env zsh
# change this to the directory containing your repositories
DIR=~/dev
CURRENT_DIR=`pwd`
for repo in "${DIR}/"*; do
if [[ -d "${repo}/.git" ]] then
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
</body>
</html>