{"repo":"shawwn/scrap","free":true,"listed":false,"github":"https://github.com/shawwn/scrap","clone":"git clone https://github.com/shawwn/scrap.git","description":"Nearly a thousand bash and python scripts I've written over the years.","language":"Python","stars":134,"topics":["cli","bash"],"license":null,"category":"cli-tools","readme_excerpt":"scrap Various scripts I've written over the years. installation examples mkbin Make a new scrap script with a predefined bash template. If already exists, the script is edited instead. If you save an empty file, the script is deleted. mkpy Make a new scrap script with a predefined python template. If already exists, the script is edited instead. If you save an empty file, the script is deleted. math Evaluate math. narrow [filter1] [filter2] .... Filter lines by each filter. A filter is a python regex. NOTE: You must explicitly put whitespace within [ ] . For each line, the line is discarded unless it matches the filter. If a filter starts with ! , all lines are kept except those matching the filter. The general idea is that you can do narrow foo to see all lines containing foo, and narrow foo bar to see all lines containing foo and bar, and so on. This is a very easy way of trimming down output to exactly what you care about. llbin [filter1] [filter2] ... List all scrap scripts. Complete listing of all scripts","default_branch":null,"files":null,"tree":[],"storefront":"/r/shawwn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shawwn/scrap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}