Skip to content

Instantly share code, notes, and snippets.

@moarbytes
moarbytes / cloudbox-develop-upgrade.md
Created December 9, 2018 18:57
Update to cloudbox develop branch
cd ~/cloudbox

git fetch

git checkout develop

git reset --hard origin/develop
@moarbytes
moarbytes / gist:41c2cafe8ae0fecbdd8f95495019846f
Created January 30, 2019 20:23 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@moarbytes
moarbytes / site_archiver.sh
Created March 17, 2019 08:28
small bash script that uses wget to create a local archive
#!/bin/bash
wget -mbc -np "$1" \
--convert-links \
--adjust-extension \
--page-requisites --no-check-certificate --restrict-file-names=nocontrol \
-e robots=off \
--waitretry 10 \
--timeout 120 \
--tries 10 \
--wait 1 \
from github import Github # pip install github
# Github API Token
ACCESS_TOKEN= ''
# Github Users stars you want to hoard
githubUser = 'stankye'
# File name you want to save as
fileName = 'myStars.txt'