Skip to content

Instantly share code, notes, and snippets.

View lewixlabs's full-sized avatar

Luigino De Togni lewixlabs

View GitHub Profile
@lewixlabs
lewixlabs / install_go_pi.sh
Created August 30, 2019 10:24 — forked from pcgeek86/install_go_pi.sh
Install Go Lang 1.11.1 on Raspberry Pi 3 B+
cd $HOME
FileName='go1.11.1.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@lewixlabs
lewixlabs / git-clearHistory
Created July 23, 2019 11:21 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git