Skip to content

Instantly share code, notes, and snippets.

View nmrshll's full-sized avatar
🦀
rusting

Nicolas Marshall nmrshll

🦀
rusting
View GitHub Profile
fn passErr(err) ==> { throw err }
fn logErr(err) ==> { log.Error(err) }
fn ignoreErr(err) ==> {}
out1 := try SomeFunc1(arg1,arg2), catch logErr
out2 := try SomeFunc2(arg1),
catch passErr
out3 := try SomeFunc3(arg1). catch (err) ==> errwrap.wrapErr("additional error info")
for dir in *
do
DIR=${dir} sh -c 'cd ${DIR}; git remote remove origin; git remote add origin [email protected]:n-marshall/companyname-${DIR}.git; git push -u origin master'
done
#!/bin/sh
echo "Installing XCode CLT..."
xcode-select --install
read -p "Press [Enter] key to once CLT finished..."
clear
echo "Creating dev environment..."
mkdir ~/dev
mkdir ~/dev/go
clear