Skip to content

Instantly share code, notes, and snippets.

@vkroz
vkroz / Git cheatsheet.md
Last active October 17, 2019 19:42
GIT cheatsheet

Reset remote origin/master to a commit

git checkout master
git reset --hard e3f1e37
git push --force origin master
# Reset remote to a current HEAD
git reset --hard HEAD
@vkroz
vkroz / Python frequent stuff.md
Last active June 14, 2021 12:09
Examples of mocking python unit tests

Virtual environments with Anaconda

List virtual environments

conda info --envs

Create virtual environment

conda create -n yourenvname python=x.x

Collection of Linux tools to deal with network issues