Skip to content

Instantly share code, notes, and snippets.

View buurzx's full-sized avatar
🎯
Focusing

Pavel Romanov buurzx

🎯
Focusing
  • Earth
View GitHub Profile
@buurzx
buurzx / docker_rus.md
Created January 3, 2023 21:29 — forked from wtw24/docker_rus.md
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@buurzx
buurzx / yardoc_cheatsheet.md
Last active April 27, 2020 07:49 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

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.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@buurzx
buurzx / docker-compose.yml
Created September 13, 2018 09:57
docker-compose.yml
version: '3'
services:
db:
env_file: .env.docker.local
image: postgres:9.6-alpine
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
@buurzx
buurzx / docker-cleanup-resources.md
Created May 8, 2018 13:08 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// 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

@buurzx
buurzx / postgres_wal_backup.sh
Created February 12, 2018 18:08
Postgres WAL
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/
@buurzx
buurzx / deploy.rb
Created January 26, 2018 16:17 — forked from natew/deploy.rb
Puma + Nginx + Capistrano
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
@buurzx
buurzx / Ansible install
Created January 24, 2018 12:48 — forked from dpalomar/Ansible install
Steps to install Ansible on Debian/Ubuntu
# 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
@buurzx
buurzx / list.md
Last active June 3, 2019 00:14
This is a small list of vulnerabilities, links and books which help to junior developers with learning security.

Security

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!

OWASP

The Open Web Application Security Project (OWASP) is a 501(c)(3) worldwide not-for-profit cha

@buurzx
buurzx / frontend.md
Created November 16, 2017 13:16 — forked from sshkarupa/frontend.md
Тестовое задание на вакансию верстальщика

Нужно сверстать два макета. Сетка общая. При вестке необходимо придерживаться БЭМ методологии (в части именования классов). Будет будет плюсом, если это будет на gulp + jade + scss. Выложите результат в свой репозиторий на github и пришлите на него ссылку.

@buurzx
buurzx / client.go
Created October 25, 2017 07:06 — forked from kenshinx/client.go
golang socket server & client ping-pong demo
package main
import (
"log"
"net"
"strconv"
"strings"
)
const (