Шпаргалка с командами Docker
YARD CHEATSHEET http://yardoc.org
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
version: '3' | |
services: | |
db: | |
env_file: .env.docker.local | |
image: postgres:9.6-alpine | |
ports: | |
- "5432:5432" | |
volumes: | |
- database:/var/lib/postgresql/data |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
PG_VERSION="9.5" | |
ETC_PG="/etc/postgresql/$PG_VERSION" | |
cd $ETC_PG/backups | |
rm -rf * | |
pg_basebackup --xlog -U postgres --format=t -D $ETC_PG/backups/ |
require 'bundler/capistrano' | |
require 'capistrano_colors' | |
load 'deploy/assets' | |
# ssh forwarding and shell | |
set :default_run_options, { :pty => true } | |
set :ssh_options, { :forward_agent => true } | |
set :scm_verbose, true | |
set :scm, :git |
# base requirements | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common | |
sudo apt-get install -y python-setuptools python-dev libffi-dev libssl-dev git sshpass tree | |
sudo easy_install pip | |
sudo -H pip install cryptography | |
# sudo -H pip install ansible==2.1.1.0 if you don't need virtualenv | |
# virtualenv |
This is a small list of vulnerabilities, links and books which help to junior developers with learning security. The knowledge came to me bit by bit. Accidentally I knew about "OWASP" after seven months of my work. I knew about the "ranbow table" when I was reading the "Learning NodeJs". More programmes don't know about the "HttpOnly" flag although they have more than year of experience of development. Why is this happening? This is not an article. I won't to explain your about "race condition" or other a specific vulnerability or something else... The goal of this list that you will see links and books which you can read. I want to save your time. Do you know what does "vulnerability scanner" mean? No? So you can read about it here. Now you hear about "vulnerability scanner", you read about "vulnerability scanner" and may be you will use it in the future. This is awesome! My goal was achieved!
The Open Web Application Security Project (OWASP) is a 501(c)(3) worldwide not-for-profit cha
Нужно сверстать два макета. Сетка общая. При вестке необходимо придерживаться БЭМ методологии (в части именования классов). Будет будет плюсом, если это будет на gulp + jade + scss. Выложите результат в свой репозиторий на github и пришлите на него ссылку.
package main | |
import ( | |
"log" | |
"net" | |
"strconv" | |
"strings" | |
) | |
const ( |