I hereby claim:
- I am suchoudh on github.
- I am suchoudh (https://keybase.io/suchoudh) on keybase.
- I have a public key whose fingerprint is CDA9 249A 9E45 E33B A392 7B3A 2226 EE91 5B2F 3CA0
To claim this, I am signing this object:
| 296 .o | |
| 322 .xls | |
| 352 .sample | |
| 357 .cpp | |
| 366 .gif | |
| 391 .jar | |
| 462 .a | |
| 632 .txt | |
| 673 .json | |
| 832 .js |
I hereby claim:
To claim this, I am signing this object:
| find . -type d -exec touch {}/"${DT}.txt" \; | |
| $DT is variable you have already defined.. my case Date and time | |
| ## Does not work for large folder may be taking up softlinks not helpful for me. | |
| This one is more controlled. | |
| for f in *; do if [ -d ${f} ]; then touch $f/_myProgress_$f.txt; fi; done |
| for filename in *.pdf ; do pdftoppm -jpeg $filename Social$filename; done |
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| function mv() { | |
| if [ "$#" -ne 1 ]; then | |
| command mv "$@" | |
| return |
| ls * | sort -t . -k 2 | |
| t is for separator | |
| k 2 is for sort by second field. |
| 74 Script done on 2020-06-04 12:57:09+0530 | |
| 75 find . -name *.txt -not -path '*/\.*' -print0 | xargs -0 -exec l s -la {} + | |
| 76 find . -name *.txt -not -path '*/\.*' -print0 | xargs -0 sed -i 's/#/~/g' | |
| 77 | |
| 78 -exec rename _dbg.txt .txt '{}' \; | |
| 79 | |
| 80 | |
| 81 | |
| 82 Find txt files and rename them to be md | |
| 83 |
| import requests | |
| import csv | |
| import os | |
| import json | |
| import re | |
| from bs4 import BeautifulSoup | |
| import mechanize | |
| from random import choice | |
| user_agents = ['Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7','Konqueror/3.0-rc4; (Konqueror/3.0-rc4; i686 Linux;;datecode)','Opera/9.52 (X11; Linux i686; U; en)'] | |
| random_user_agent = choice(user_agents) |
| ls | sort | awk '{ print "alias " $0"=cd $HBox/"$0";cat readme*.md"}' | |
| alias Upskillin=cd $HBox/Upskillin;cat readme*.md | |
| alias UrgentlyGet=cd $HBox/UrgentlyGet;cat readme*.md | |
| alias Whatis=cd $HBox/Whatis;cat readme*.md | |
| alias WorkingWith=cd $HBox/WorkingWith;cat readme*.md |
You will need Docker installed! Here is a link to get you started. Proceed after you are done installing.