Skip to content

Instantly share code, notes, and snippets.

View zgfif's full-sized avatar
🙃

Pasha Bratanov zgfif

🙃
  • Odesa, Ukraine
View GitHub Profile
@BKDruby
BKDruby / Процесс работы над задачей
Last active January 27, 2020 09:17
Процесс работы над задачей
Выбираете задачу из тех что заасайнены на вас в трело
переводите задачу в колонку in progress
переходите в ветку master (git checkout master)
стягиваете последние изменения (git pull)
создаете на ее основе свою новую ветку с номером задачи и кратким ее описанием (git checkout -b task/1-add-devise-and-user-model)
выполняете задачу (в процессе обращаетесь ко мне если что-то не понятно\возникают блокеры)
после окончание задачи проверяете рубокопом и фиксите оффенсы (рубокоп еще не добавлен)
создаете коммит с номером задачи и ее описанием (git add . && git commit -m '1 add Devise and user model')
пушите свою ветку и создаете ПР, назначаете меня как reviewer и присылаете ссылку на ПР
после ревью правите все замечания и создаете ОТДЕЛЬНЫЙ коммит и пушите в свою ветку
@subfuzion
subfuzion / curl.md
Last active April 17, 2024 04:24
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@eliotsykes
eliotsykes / rails_new_help_output.md
Last active March 31, 2024 17:09
"rails new" options explained

Run rails new --help to view all of the options you can pass to rails new:

$ bin/rails new --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
@joyrexus
joyrexus / README.md
Last active January 21, 2024 21:51 — forked from btoone/curl.md
curl tutorial

An introduction to curl using GitHub's API.

Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Includes HTTP-Header information in the output

@Kartones
Kartones / postgres-cheatsheet.md
Last active April 19, 2024 13:15
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)