리터럴은 컴파일타임에 스택에 new는 런타임에 들어가는거임 그냥 리터럴 쓸수있을때 쓰는게 더좋음?
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
''' run server in c9 IDE ''' | |
from os import environ | |
if __name__ == '__main__': | |
app.run(host=environ['IP'], port=int(environ['PORT'])) | |
''' 한글 인코딩 ''' | |
# -*- coding: utf-8 -*- | |
''' setup.py 설정시 pip 명령어 ''' |
APP_SETTINGS=config.DevelopmentConfig
config란는 모듈에서 DevelopmentConfig라는게 있는거임
app= Flask(name)
app.config 하면 Flask에서 제공하는 config변수임
$VIRTUAL_ENV/bin/postactivate
여기에 env변수 설정 가능
export APP_SETTINGS="config.DevelopmentConfig"
export DATABASE_URL="postgresql://localhost/이름"
#zsh
sudo apt-get update
sudo apt-get install zsh
chsh -s /bin/zsh oiojin831
echo $SHELL
#git
sudo apt-get install git
###ruby-prefix가 머지? ruby가 gem들이 설치된 경로를 찾기위해서는 gem이 설치할떄 경로를 찾아야하니까
gem env
로 쳐보면 You should see an entry INSTALLATION DIRECTORY, but there is also GEM PATHS which is where it's loading all your gems from in your current environment.
ruby-prefix/lib/ruby/gems/1.9.1/gems/rspec-core-XX.YY/exe/rspec 여기에 있는게 오리지널인데 여기에는 같은 rspec이라도 버젼별로 저장됨
vim .zshrc
change theme to ys
ADD vimrc vimrc.local vimrc.bundles vimrc.bundles.local
upgrade tmux
add tmux.conf
디비에서 파일려 가져오기
sudo mysqldump --user root --password=didwoehd33 mylodev > mylodev.sql
다른 서버로 전송
scp ~/mylodv.sql [email protected]:~/
내 서버에서 mysql에 저장하기
-
aws cli install
-
middleman build
-
aws configure credential setting
aws s3 mb s3://rollintiger.com
aws s3 rm s3://rollintiger.com --recursive
aws s3 sync build s3://rollintiger.com --acl public-read --cache-control "public, max-age=86400"
aws s3 website s3://rollintiger.com --index-document index.html
aws route53 change-resource-record-sets --hosted-zone-id ZXXTN8ME7HY7P --change-batch file:///home/oiojin831/aws-setting/sub.json
{
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
OlderNewer