dryben / daily Goto Github PK
View Code? Open in Web Editor NEW무슨 생각을 해... 그냥 하는거지
무슨 생각을 해... 그냥 하는거지
백엔드 고르는 글도 한번 보는데.. 헤더 구별이 잘 안돼서 여기에 정리.
cheatsheet : https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546
psql {디비} {유저}
select id from table where content like '%keyword%';
https://developer.mozilla.org/ko/docs/Learn/Server-side/Django/development_environment
#virtualenv..
sudo pip3 install virtualenvwrapper
vi ~/.bash_profile
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
export PROJECT_HOME=$HOME/Devel
source /Library/Frameworks/Python.framework/Versions/3.6/bin/virtualenvwrapper.sh
source ~/.bash_profile
mkvirtualenv dj_apple
(dj_apple 가상환경에서 계속)
pip3 install django
mkdir dj_apple && cd dj_apple
django-admin startproject djapplesite
cd djapplesite
python3 manage.py runserver
April 15, 2019 - 06:21:12
Django version 2.2, using settings 'djapplesite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
https://reactjs.org/tutorial/tutorial.html#function-components
In React, function components are a simpler way to write components that only contain a render method and don’t have their own state.
class Square extends React.Component {
render() {
return (
<button className="square" onClick={()=> this.props.onClick()}>
{this.props.value}
</button>
);
}
}
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
미션 : 이미 있는 걸 최대한 가져다쓰자
최신버전 2.2를 썼다.
Hooks가 또 힙해보여서 최신버전 16.8을 썼다.
sudo vi /etc/nginx/pie.kr
//프록시
server {
listen 80;
server_name pie.com pie.kr;
location / {
proxy_pass <http://localhost:60001;>
}
}
//리다이렉트
server {
server_name www.pie.kr;
return 301 $scheme://pie.kr$request_uri;
}
sudo ln -s /etc/nginx/sites-available/pie /etc/nginx/sites-enabled/
sudo nginx -t
sudo service nginx restart
기본적으로 세션과 연동되며 admin에서 제공하는 생성/수정/삭제 템플릿이 있습니다.
보안, 세션, 위치, 인증 등의 미들웨어를 제공합니다.
Form 클래스로 구현되어있습니다. DB-모델 / HTML-폼
설정 확인
cat .git/config
현재 브랜치의 리모트 변경
git branch --set-upstream-to REMOTE
깃 리모트 url 수정
git remote set-url REMOTE [email protected]:dryben/custad
➜ cd ~/Library
➜ mkdir KeyBindings
➜ vi KeyBindings/DefaultkeyBinding.dict
{
"₩" = ("insertText:", "`");
}
https://ani2life.com/wp/?p=1753
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
...
mongo | 2019-08-02T02:29:39.478+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /data/db/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /data/db directory, terminating
mongo | 2019-08-02T02:29:39.478+0000 I CONTROL [initandlisten] now exiting
mongo | 2019-08-02T02:29:39.478+0000 I CONTROL [initandlisten] shutting down with code:100
mongo | 2019-08-02T03:28:10.949+0000 E STORAGE [initandlisten] WiredTiger error (11) [1564716490:949521][1:0x7fc0f08c9a00], wiredtiger_open: /data/db/WiredTiger.lock: handle-lock: fcntl: Resource temporarily unavailable
mongo | 2019-08-02T03:28:10.949+0000 E STORAGE [initandlisten] WiredTiger error (16) [1564716490:949563][1:0x7fc0f08c9a00], wiredtiger_open: WiredTiger database is already being managed by another process: Device or resource busy
mongo | 2019-08-02T03:28:10.949+0000 E - [initandlisten] Assertion: 28595:16: Device or resource busy src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 416
mongo | 2019-08-02T03:28:10.949+0000 I STORAGE [initandlisten] exception in initAndListen: Location28595: 16: Device or resource busy, terminating
mongo | 2019-08-02T03:28:10.949+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
mongo | 2019-08-02T03:28:10.949+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
mongo | 2019-08-02T03:28:10.949+0000 I CONTROL [initandlisten] now exiting
mongo | 2019-08-02T03:28:10.949+0000 I CONTROL [initandlisten] shutting down with code:100
mongo exited with code 100
$ sudo mv data/WiredTiger.lock data/WiredTiger.lock.e
$ docker-compose down
Removing backend ... done
Removing mongo ... done
Removing network ㅁㅁㅁㅁㅁㅁ_default
$ docker-compose up
https://www.gatsbyjs.org/docs/quick-start/
npm install -g gatsby-cli
gatsby new kmm2019
cd kmm2019
gatsby develop
https://www.gatsbyjs.org/tutorial/part-four/
작은 사이트의 경우 굳이 graphql까지 쓸 필요는 없다.
https://www.gatsbyjs.org/tutorial/part-six/
In your index page’s GraphQL query, change allMarkdownRemark to allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }). Note: There are 3 underscores between frontmatter and date. Save this and the sort order should be fixed.
https://freestrokes.tistory.com/64
https://subicura.com/2017/01/19/docker-guide-for-beginners-2.html
Client:
Version: 18.09.3
API version: 1.39
Go version: go1.10.8
Git commit: 774a1f4
Built: Thu Feb 28 06:40:58 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.3
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 774a1f4
Built: Thu Feb 28 05:59:55 2019
OS/Arch: linux/amd64
Experimental: false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.