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
apt install postgresql | |
编辑 /etc/postgresql/9.6/main/pg_hba.conf 允许本地 trust | |
apt install redmine redmine-pgsql | |
apt install apache2 libapache2-mod-passenger | |
cp /usr/share/doc/redmine/examples/apache2-passenger-host.conf /etc/apache2/sites-available/redmine.conf | |
edit /etc/apache2/sites-available/redmine.conf | |
a2enmod passenger | |
a2ensite redmine.conf |
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 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" |
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
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 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 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 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 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 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 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 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 |