Posts by badsamurai@infosec.exchange
 (DIR) Post #B6K9GEqcOxVgdYa5BY by badsamurai@infosec.exchange
       0 likes, 0 repeats
       
       @jackryder @cR0w @DaveMWilburn @nyanbinary I don’t know if these memes have a hashtag, but I’m in!
       
 (DIR) Post #B6zu5kloGBVR71k4OW by badsamurai@infosec.exchange
       0 likes, 0 repeats
       
       @alina oh i got u. This used to be (I got better!) my Friday 4pm scheduled task to auto commit+push all my non-prod branches.$me = whoami /upn; gci -r -dir -force -filter .git|%{$r=$_.Parent.FullName;$b=git -C $r branch --show-current 2>$null;if(!$b){Write-Host "skip (detached/no commits): $r" -ForegroundColor Yellow}elseif((git -C $r config user.email) -eq $me -and $b -notin 'main','master','prod','production'){Write-Host "commit+push: $r ($b)" -ForegroundColor Green;git -C $r add -A;git -C $r commit -qm 'Push to prod Friday';if($LASTEXITCODE -eq 0){git -C $r push}}else{Write-Host "skip: $r (branch: $b)" -ForegroundColor DarkGray}}