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
| for i in {0..1000000} | |
| do | |
| rm -rv /Volumes/DRIVE/FODLER.sparsebundle/bands/$(printf "%x" $i) | |
| done |
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
| 1. set the launcdctr log level to debug | |
| sudo launchctl log level debug | |
| other levels: (debug, info, notice, warning, error, critical, alert, emergency) | |
| 2. Tail the system.log | |
| tail -f /var/log/system.log | |
| 3. set the launcdctr log level back to error | |
| sudo launchctl log level error |
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
| Error: accept EMFILE | |
| sudo sysctl -w kern.maxfiles=20480, | |
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
| html, | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| button { | |
| margin: 0; | |
| padding: 0; | |
| border: 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
| # add this to your shell | |
| server() { | |
| open "http://localhost:${1}" && python -m SimpleHTTPServer $1 | |
| } |
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
| whonetwork() { | |
| sudo lsof |grep TCP | grep ESTAB | |
| } |
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
| phantomjs screenshot.js |
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
| <p> | |
| hello | |
| </p> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <script> | |
| $("p").text("hello more") | |
| </script> |
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
| javascript:document.write(%27<!DOCTYPE html><html><head><meta charset%3D"utf-8"><title>Responsive Design Testing</title><style>body %7B margin: 20px%3B font-family: sans-serif%3B overflow-x: scroll%3B %7D.wrapper %7B width: 6000px%3B %7D.frame %7B float: left%3B %7Dh2 %7B margin: 0 0 5px 0%3B %7Diframe %7B margin: 0 20px 20px 0%3B border: 1px solid %23666%3B %7D</style></head><body><div class%3D"wrapper"><div class%3D"frame"><h2>320<span> x 480</span> <small>(mobile)</small></h2><iframe src%3D"%27 %2B window.location %2B %27" sandbox%3D"allow-scripts allow-same-origin allow-forms" seamless width%3D"320" height%3D"480"></iframe></div><div class%3D"frame"><h2>480<span> x 640</span> <small>(small tablet)</small></h2><iframe src%3D"%27 %2B window.location %2B %27" sandbox%3D"allow-scripts allow-same-origin allow-forms" seamless width%3D"480" height%3D"640"></iframe></div><div class%3D"frame"><h2>768<span> x 1024</span> <small>(tablet - portrait)</small></h2><iframe src%3D"%27 %2B window.location %2B %27" sandbox% |
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
| find mydir -type f | while read -r; do rm -v "$REPLY"; sleep 0.2; done | |