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
| grep -rl $'\xEF\xBB\xBF' | |
| # remove file with bom | |
| # if remove .bak then sed not create backup | |
| find . -type f -exec sed '1s/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \; |
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 ./2016 -newermt '2016-03-01' ! -newermt '2016-03-31' | xargs tar -czvf march-jpg.tar.gz |
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
| Sub ReplaceNextLine() | |
| Selection.Replace What:=Chr(10), Replacement:=" " | |
| End Sub |
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
| grep -o '/opendata\S*.*200.*' access_log | grep -o '/opendata\S*' | sort | uniq -c | sort -nr |less |
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
| diff dir-site-id.txt site-id.txt | sed -n '/>/s/>\s\(.*\)/\1/p' | xargs -I {} rm res/{} |
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
| // http://www.webtipblog.com/unit-testing-private-methods-and-properties-with-phpunit/ | |
| class Foo { | |
| private $foobar; | |
| private function bar( $number ) | |
| { | |
| // keep me private! | |
| } | |
| } |
NewerOlder