'''sh diskutil cs list '''
'''sh diskutil coreStorage revert lvUUID
| cat repo_list.txt | cut -d' ' -f1 | awk '{print $2}' >> repo_links_list.txt |
| for i in ~/git_repos/*; do cd "$i"; git remote -v >> ~/git_repos/repo_list.txt; done |
| sed -e '1s/.*\,\{,4\}/col1\,col2\,col3\,col4/g' some_file.csv |
| sloccount: | |
| find . -name "*.go" -print0 | xargs -0 wc -l |
| #!/bin/bash | |
| # Create an array of the strings we want to remove | |
| remove_string=(); | |
| # CAUTION: using * grabs all files and folder in current directory | |
| # you've been warned | |
| for i in * | |
| do | |
| a=$((a+1)); #counts up |
| cat page.html | \ | |
| grep -i -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | \ | |
| sed -e 's/^<a href=["'"'"']//Ig' -e 's/["'"'"']$//' > striped_links.txt |
| #!/usr/bin/env perl | |
| $timeout = 60; | |
| use Finance::Quote; | |
| use POSIX qw(strftime localtime time); | |
| die "Usage: $0 FROM TO\n" unless defined($ARGV[1]); | |
| my $q = Finance::Quote->new; |
| #LEDGER Quick Print Converted Accounts | |
| bal() { | |
| re='^[A-Za-z0-9]+$' | |
| if [[ "$1" == "GBP" ]] | |
| then | |
| perl /usr/local/Cellar/ledger/*/share/ledger/contrib/getquote.pl CAD GBP > ~/.currencydb | |
| elif [[ "$1" == "CAD" ]] | |
| then | |
| perl /usr/local/Cellar/ledger/*/share/ledger/contrib/getquote.pl GBP CAD > ~/.currencydb | |
| else |
| ;; -*- mode: Emacs-Lisp; tab-width: 2; indent-tabs-mode:nil; -*- ;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Author: Anton Strilchuk <[email protected]> ;; | |
| ;; URL: http://ype.env.sh ;; | |
| ;; Created: 22-07-2014 ;; | |
| ;; Last-Updated: 22-07-2014 ;; | |
| ;; Update #: 5 ;; | |
| ;; By: Anton Strilchuk <[email protected]> ;; | |
| ;; ;; | |
| ;; Filename: lazypostman ;; |