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
rm --recursive <foldername> -f |
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/mongo | |
use test; | |
db.dropDatabase(); | |
db.mytable.drop(); |
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 request = require('request'); | |
var Iconv = require('iconv').Iconv; | |
var iconv = new Iconv('GBK', 'UTF-8//TRANSLIT//IGNORE'); | |
request.get('http://foo.bar', {encoding:null}, function(e, r, body) | |
{ | |
console.log(iconv.convert(body).toString()); | |
}); |
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
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" |
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
(1234622225).toLocaleString("zh-Hans-CN-u-nu-hanidec")//firefox下输出 "1,234,622,225" IE与chrome下输出 "一,二三四,六二二,二二五" |
NewerOlder