Skip to content

Instantly share code, notes, and snippets.

View Afghano02's full-sized avatar

Afghano02 Afghano02

View GitHub Profile
@alexpchin
alexpchin / Setting_upa_new_repo.md
Last active November 14, 2024 08:35
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin [email protected]:alexpchin/.git

dependencies
virtualenv
http://virtualenvwrapper.readthedocs.io/en/latest/command_ref.html
sudo pip install vitualenvwrapper
in .bash_profile add (or create)
@alexisrolland
alexisrolland / Update apk mirrors for China
Last active November 8, 2023 06:27
Commands used to update the file /etc/apk/repositories which contains the list of mirrors to download packages with apk command. Commands below were tested in a Docker container built with alpine image.
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
apk update