- 
Install youtube downloader brew install youtube-dl
- 
Install avconv / libav-tools brew install libav
- 
Install Tor browser 
  
    
      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
    
  
  
    
  | // line 143 | |
| $url = tx_webkitpdf_utils::sanitizeURL($url, $allowedHosts); | 
  
    
      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
    
  
  
    
  | # configure date/time and locale | |
| export LC_ALL=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | 
  
    
      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
    
  
  
    
  | pip install mitmproxy | |
| # start mitmproxy on default port 8080 | |
| mitmproxy | |
| emulator-arm -avd NAME_OF_AVD -http-proxy 127.0.0.1:8080 | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| bfname=$(dirname "$1")/"`basename "$1" .tex`" | |
| makeindex -s "$bfname".ist -t "$bfname".alg -o "$bfname".acr "$bfname".acn | |
| makeindex -s "$bfname".ist -t "$bfname".glg -o "$bfname".gls "$bfname".glo | 
  
    
      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
    
  
  
    
  | # | |
| # png | |
| # | |
| optipng -c 4 -o7 *.png && advpng -z4 *png && advdef -z4 *.png | |
| # | |
| # jpeg | |
| # | |
| jpegoptim *.jpg --strip-all | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| LC_NUMERIC=C LC_COLLATE=C | |
| start_time=`date +%s` | |
| err () | |
| { | |
| echo $1 | |
| exit $code | |
| } | 
  
    
      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
    
  
  
    
  | [alias] | |
| # tidy = "!git fetch --prune && git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d" | |
| # pretty format git log | |
| hist = log --decorate --oneline --graph --all --date=format:\"%Y-%b-%d %H:%M:%S\" --pretty=format:\"%C(auto)%d%Creset %C(auto)%h%Creset - %C(cyan)%an%Creset %Cgreen(%ad)%Creset : %s\" | |
| [tag] | |
| # sort git tags by semver | |
| sort = version:refname | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| # -------------------------------------------------------- | |
| # Installation | |
| # $ git config --global init.templatedir '~/.git-templates' # setup global templatedir | |
| # $ mkdir -p ~/.git-templates/hooks # create hooks direcotry | |
| # $ touch ~/.git-templates/hooks/pre-commit # copy & paste this content into ~/.git-templates/hooks/pre-commit | |
| # $ chmod a+x ~/.git-templates/hooks/pre-commit | |
| # $ git init # reinitialized existing git repositories | |
| # -------------------------------------------------------- | 
  
    
      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
    
  
  
    
  | var style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.innerHTML = [ // credits https://www.w3schools.com/css/css_tooltip.asp | |
| '.debug-tooltip {', | |
| 'position: relative;', | |
| 'display: inline-block;', | |
| 'border-bottom: 1px dotted black;', | |
| '}', | |
| '.debug-tooltiptext {', | |
| 'visibility: visible;', | 
OlderNewer