Skip to content

Instantly share code, notes, and snippets.

View awscherb's full-sized avatar
💭
Ask me about my Scherbware!

Alex Scherb awscherb

💭
Ask me about my Scherbware!
View GitHub Profile
@awscherb
awscherb / number.py
Created June 18, 2020 17:29
number.py
playerwin = False
lives_left = lives
while lives_left > 0 :
if lives_left == 1:
print('Last life! Make it count')
else:
print(f'You have {lives_left} lives remaining')
try:
@awscherb
awscherb / gitclone.sh
Created February 24, 2017 23:25
Script to copy all branches from one git repo to another.
#!/bin/bash
# Usage: `./gitclone.sh path-to-other-repo.git`
eval "git fetch"
eval "git remote add origin-remote $1"
for branch in $(git branch -r); do
cleaned=${branch//origin\//}
eval "git checkout $cleaned"
eval "git push --set-upstream origin-remote $cleaned"
done