Home
Blog
Misc. Utilities
Do tail -f to latest file of your directory
November 20, 2016
tail -f $(find . -maxdepth 1 -type f -printf "%T@ %p\n" | sort -n | tail -n 1 | cut -d' ' -f 2-)
Change file premissions in Git on Windows
June 21, 2017
C:\views\myproject>git update-index --chmod=+x script.sh
Calculate return of investment after some years
October 28, 2017
initInvestment = 250000 intrate = 0.15 years = 25 def calcIntrestForOneYear(): return initInvestment + (initInvestment * intrate) for i in range (1 , years): initInvestment = calcIntrestForOneYear()…
simple tax calculator india
March 13, 2018
# simple tax calculator india total_salary = 100000 tax_total = 0 updated_salary = total_salary - 250000 # first slab removed from main salary updated_salary = updated_salary - 150000 # 80c removed…