This file contains 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! | |
} | |
} |
This file contains 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 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 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 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 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 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 'Word' | cpio -pdm ./append |
This file contains 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
:%s/^/\=printf("%04d\t", line('.')) |
This file contains 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
"verbose show file which produce remap keybinding | |
:redir! > vim_keys.txt | |
:silent verbose map | |
:redir END |
This file contains 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
when i try | |
docker swarm init --advertise-addr=192.168.56.105 | |
I got message: | |
Error response from daemon: --live-restore daemon configuration is incompatible with swarm mode | |
I edit docker config | |
vi /etc/sysconfig/docker | |
and remove --live-restore options |
OlderNewer