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
var match = { | |
'date': { | |
'$gte': '2017-06-24', | |
'$lte': '2017-06-30', | |
} | |
} | |
var group = { | |
'_id': {'account_name':'$account_name','region':'$region'}, |
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
mongo --host dds-2ze14d04d8fb07e42.mongodb.rds.aliyuncs.com:3717 --authenticationDatabase admin -u root -p zhihuishe1201 staging-beijing < group.js > result.csv |
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
(* | |
Open Terminal Here | |
A toolbar script for Mac OS X 10.3/10.4 | |
Written by Brian Schlining | |
*) | |
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
test_file = 'test.csv' | |
test_data = pd.read_csv(test_file) | |
predictions = predictions_3(test_data) | |
result = open('result.csv', 'w') | |
for item in predictions: | |
result.write("%s\n" % item) |
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
du -h -d=1 . |
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
df.dropna(subset=[1]) |
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
sudo lsof -iTCP -sTCP:LISTEN -n -P |
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
if 'Met' not in df: | |
df['Met'] = df['freqC'] * df['coverage'] | |
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
docker exec -it account env LANG=C.UTF-8 bash |
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
git rm --cached config-dev.php && git commit -m "config-dev.php" | |
echo config-dev.php >> .gitignore | |
git add .gitignore | |
git commit -m "adding config-dev.php to .gitignore" |