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
| git config --global credential.helper store |
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
| edit php.ini and add a line: | |
| mongo.native_long=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
| mongoexport -d h5pop_dc -c user -q "{ appid: '56fceb9f340cc5571a8b4567'}" --csv --fields openid,phone --out test.csv |
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
| git reset --hard <commit_id> | |
| git push origin HEAD --force |
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
| 设置全屏(撑满不留黑框) https://www.raspberrypi.org/forums/viewtopic.php?f=46&t=47152 | |
| vi /boot/config.txt | |
| disable_overscan=1 | |
| 开机后自运行app | |
| sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart | |
| 防黑屏 | |
| nano /etc/lightdm/lightdm.conf | |
| [SeatDefaults] |
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
| git config core.filemode false |
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 ./ -type f -exec sed -i 's/string1/string2/g' {} \; |
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
| curl -u xxx:xxx -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "SELECT * FOM cp.`employee.json` LIMIT 20"}' http://drill.datahunter.cn/query.json |
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
| curl -L https://raw.githubusercontent.com/citusdata/docker/master/docker-compose.yml > docker-compose.yml | |
| docker-compose -p citus up -d | |
| #test | |
| docker exec -it citus_master psql -U postgres | |
| #shutdown | |
| docker-compose -p citus down |
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
| docker run -d --name some-postgres -e POSTGRES_PASSWORD=redmine -e POSTGRES_USER=redmine postgres | |
| docker run -e "TZ=Asia/Shanghai" -d --name some-redmine -p 3000:3000 -v /data/redmine:/usr/src/redmine/files --link some-postgres:postgres redmine | |
| set time | |
| option 1: -v /etc/localtime:/etc/localtime:ro | |
| option 2: -e "TZ=Asia/Shanghai" |