http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
- 200 - ok
- request 성공
- ex) resource 목록/resource 상세/resource 수정/그외 대부분의 API 성공
- 201 - create
- request 성공
- ex) resource 생성 성공
| require 'spec_helper' | |
| describe "User Model" do | |
| context "Association" do | |
| it { should have_many(:groups) } | |
| end | |
| context "Validation" do | |
| it "name과 email속성을 가진다." do |
http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
| # References: | |
| # http://blog.mixu.net/2011/08/13/nginx-websockets-ssl-and-socket-io-deployment/ | |
| # http://blog.exceliance.fr/2012/09/10/how-to-get-ssl-with-haproxy-getting-rid-of-stunnel-stud-nginx-or-pound/ | |
| # | |
| global | |
| nbproc 2 | |
| maxconn 16384 | |
| defaults |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| # docker stack deploy --compose-file ./docker-stack.yml prom-stack | |
| version: "3" | |
| services: | |
| prometheus: | |
| image: prom/prometheus:latest | |
| networks: | |
| - monitoring | |
| ports: | |
| - 9001:9090 |
| global: | |
| scrape_interval: 30s | |
| evaluation_interval: 30s | |
| external_labels: | |
| monitor: "prometheus-swarm" | |
| rule_files: | |
| scrape_configs: | |
| - job_name: 'prometheus' |
| # Neofetch config file | |
| # https://github.com/dylanaraps/neofetch | |
| # Speed up script by not using unicode | |
| export LC_ALL=C | |
| export LANG=C | |
| myprin() { | |
| if [ "$2" ]; then | |
| get_$2 &>/dev/null |