Skip to content

Instantly share code, notes, and snippets.

View MnHung's full-sized avatar

MnHung

  • Altigen
  • Taiwan
View GitHub Profile
@MnHung
MnHung / pull-all.sh
Created May 16, 2019 04:49
Pull all git directories
# for all directories in current path, do 'git pull'
find . -type d -mindepth 1 -maxdepth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
@MnHung
MnHung / git-fetch-all-and-migrate.sh
Last active May 16, 2019 04:47
Git fetch all branches and move to another remove repository
# git clone
git clone git@xxx1
# fetch all remove branches name
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
# add the new remove repository
git remote add new-origin git@xxx2
# push all sources and tags

前台

  • 前台 基本項目
    • 包括 app 起始畫面3、註冊(CRUD) 12、審核1、主畫面2、營養師建議1、 飲食紀錄(CRUD)15、食物清單1、設定2、提醒2
  • 前台 Email模組 2
    • 給註冊用
  • 前台 成長曲線圖 10
    • 需求不夠清楚
  • 前台 熱量分析圖 10
  • 前台 營養師建議題示推播功能 6
### install mysql
sudo apt-get update
sudo apt-get install mysql-server
# if you ignore the root's password setting, do
# sudo mysql_secure_installation
## under mysql 5.7, do extra:
# sudo mysql_install_db
# install mongo db on Ubuntu 16.04.1 LTS (ec2, 2017.2.9), it takes about 300mb space
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
# let's go
# Import the public key used by the package management system
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# Create a list file for MongoDB.
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
## config file
#vi /etc/mongod.conf
## view log
cat /var/log/mongodb