Posts
Sisir Ghimire Chettri v2
Cancel

Git Tags and Pypi

GIT Tags $ git tag -a 0.1 -m "Release v0.1" # create tag push tags to remote git server $ git push --tags view git tags $ git tag -n alternatively view git tags $ git log --oneline delete tag...

Git Cheatsheet

Deleting last commits # Remove last 2 commits with its changes; where HEAD^ last commit from the top $ git reset --hard HEAD^2 # Remove last commit with working tree around (Remove --hard); whe...

oauth

OAuth 2.0 vs OAuth 1.0 OAuth 2.0 complete rewrite of OAuth 1.0 from ground up, sharing only the overall goals and general user experience. OAuth 2.0 is not backwards compatiable. OAuth 2.0 ...

Alembic Commands

Commands $ alembic init alembic creates the migration folder env.py (for path configuration) script.mako (the script itself) versions/ (where the migrations scripts are l...

Crontab

https://crontab.guru/ $ crontab -e 0 3 * * * pg_dump -U db_user db_name > ~/db_dumps/$(date +\%Y-\%m-\%d-\%H:\%M:\%S).pgsql; $ vim ~/.pgpass localhost:5432:db_name:db_user:secret_password $...

Explore Ansible

Ansible tool to automate IT Tasks system administrator tool for automate repetitive tasks Managing Servers Remotely What are IT Tasks? Repetitive tasks such as: Updates backups s...

Explore CI/CD

Continous Integration / Continous Delivery / Continous Deployment Continous Integration Continous Delivery Continous Deployment Integration of the ...

Cookbook

Range of dates in list from dateutil.rrule import rrule, MONTHLY, DAILY from datetime import date, timedelta start_date = date.today() - timedelta(days=10) # 10 days back dates = list(rrule(DA...

Docker Cheatsheet

Commands # pull images $ docker pull busybox # run an image/ finds no command / gets exited $ docker run busybox # containers are fast / getting into vm doing this and exiting (slow) $ docker...

Basic Mysql Commands

Thanks for coming to this particular blog among many mysql commands cheatsheet. I am gathering all the mysql commands that I go through and update them here. Create User and Grant Privileges CREA...