- free on weekend: Sept/06 to Sept/08
- 19$ for a month
- 169$ for a year
- Algorithms and Data Structures - Part 1 https://www.pluralsight.com/courses/ads-part1
| alias via="vim ~/.my_aliases.sh" | |
| alias reload="source ~/.my_aliases.sh" | |
| # common | |
| alias c="clear" | |
| alias lk="ls -lrt" | |
| alias lka="ls -lrta" | |
| alias cdd="cd .." | |
| alias rmf="rm -rf" |
run using user with root access or append sudo before each command:
$ apt update
$ apt install software-properties-common
# optional: required for installing pip packages which needs compiler. ex: uwsgi
$ apt-get install build-essential
$ add-apt-repository ppa:deadsnakes/ppa
$ apt install python3.7| Bracket Pair Colorizer | |
| Excel Viewer | |
| Git Blame | |
| GitLens — Git supercharged | |
| IntelliSense for CSS class names in HTML | |
| JSON Parse & Stringify | |
| JSON Tools | |
| Markdown All in One | |
| Python | |
| REST Client |
to get system public IP
curl ifconfig.me
install virtualenv
apt install virtualenv
change hostname:
| import zmq | |
| import baker | |
| from multiprocessing import Process | |
| @baker.command | |
| def start(name, topicfilter="10001", port="5566"): | |
| print(f"listening pub-server at port:{int(port)}; topic:{topicfilter}") | |
| # Socket to talk to server | |
| context = zmq.Context() |
| from os.path import exists as orig_exists | |
| from unittest.mock import Mock | |
| exists = orig_exists | |
| def new_exists(file): | |
| print(f"new_exists: checking if '{file}' exists:", orig_exists(file)) | |
| print("but will send exists = True") | |
| return True |
| from unittest.mock import Mock | |
| import builtins | |
| len = builtins.len | |
| def new_len(o): | |
| return builtins.len(o) + 1 | |
| $ git status -s | |
| ?? bmp.log | |
| ?? log.html | |
| ?? output.xml | |
| ?? report.html | |
| $ git ls-files --others --exclude-standard | |
| bmp.log | |
| log.html | |
| output.xml |
| #!/usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| ''' | |
| Simple utility to change the active global git profile. | |
| sample profile config file (yaml): | |
| mygit: | |
| user: Abhijit | |
| email: [email protected] |