- Google: ^https://.*google.com$
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -r -np -R "index.html*" <url> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| youtube-dl --write-auto-sub --sub-lang en --skip-download <URL> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew uninstall --ignore-dependencies openssl && brew install openssl && CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install 2.7.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export FZF_DEFAULT_COMMAND='rg --files --no-ignore-vcs --hidden' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -o extendedglob | |
| has_useful_entries() | |
| ()(($#)) ${1-$REPLY}/^(#i)(*.tmp|desktop.ini|Thumbs.db|.picasa.ini)(NDoN[1]) | |
| printf '%s\n' **/*(D/F^+has_useful_entries) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tree -d -R --prune --du -o "<filename>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- more info http://aaron-hoffman.blogspot.com/2017/02/iphone-text-message-sqlite-sql-query.html | |
| select | |
| m.rowid | |
| ,coalesce(m.cache_roomnames, h.id) ThreadId | |
| ,m.is_from_me IsFromMe | |
| ,case when m.is_from_me = 1 then m.account | |
| else h.id end as FromPhoneNumber | |
| ,case when m.is_from_me = 0 then m.account | |
| else coalesce(h2.id, h.id) end as ToPhoneNumber | |
| ,m.service Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Python 2.7, PIL 1.1.7 | |
| import Image | |
| import glob | |
| import os | |
| #Function to resize image, preserving aspect ratio | |
| def resizeAspect(im, size): | |
| w,h = im.size | |
| aspect=min(size[0]/float(w), size[1]/float(h)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| ''' | |
| A script to recursively compare two directories (including file size and file hash changes) | |
| Usage: python3 compare_dirs.py DIR1 DIR2 | |
| ''' | |
| import os, sys, hashlib | |
| COMPARE_FILES = True # should file sizes be compared if their names are the same? |