Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
franciscocpg / install.sh
Last active April 9, 2018 17:38
docker completion for CoreOS
# Run this as CoreOS user at home folder
set -e
toolbox dnf -y install bash-completion wget \
&& toolbox wget https://raw.githubusercontent.com/docker/docker/master/contrib/completion/bash/docker -O /usr/share/bash-completion/completions/docker \
&& toolbox cp /usr/share/bash-completion /media/root/var/ -R \
&& source /var/bash-completion/bash_completion
cp $(readlink .bashrc) .bashrc.new && mv .bashrc.new .bashrc
echo "source /var/bash-completion/bash_completion" >> ~/.bashrc
@gcstang
gcstang / BackupGHRepoToBackblaze.bat
Created July 20, 2018 16:29
Backup a github repository from Windows. Assumes B2 command lines tools, python, and 7ZIP are installed. Script requires some variables (B2 account, etc) to filled in.
@echo off
SETLOCAL
REM Script to backup git repo to Backblaze B2
REM Set bucket, local directory, password and account to use for the backup.
:: NOTE: might want to import these from the outer environment
:: rather than setting them internally