Skip to content

Instantly share code, notes, and snippets.

@ruuke
ruuke / books_list.txt
Created May 24, 2019 07:23 — forked from fedorkk/books_list.txt
Список книг для обучения
Алгоритмы:
1) Стивен Скиена "Алгоритмы. Руководство по разработке"
2) Томас Кормен "Алгоритмы. Построение и анализ"
3) Дональд Кнут "Искусство программирования" (никто в реальности не читал этот многотомный труд целиком, но в любой подборке по алгоритмам он обязан быть)
Общее:
1) Род Хаггарти "Дискретная математика для программистов"
2) Керниган, Ритчи "Язык программирования С" - для общего понимания принципов программирования
3) Дж. Андресон "Дискретная математика и комбинаторика"
4) Романовский И.В. "Дискретный анализ"
ActiveRecord::Schema.define(version: 2018_11_07_062032) do
create_table "answers", force: :cascade do |t|
t.boolean "correct", default: false
t.text "answer", null: false
t.integer "question_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["question_id"], name: "index_answers_on_question_id"
end
ruuke-> \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
ruuke | ruuke | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
template0 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
@ruuke
ruuke / ssh
Created October 17, 2018 07:15
ssh
ruuke@ruuke-VPCEB1M1R:~/blog/blog$ ssh-keygen -t rsa -b 4096 -C ruuke@mail.ru
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ruuke/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ruuke/.ssh/id_rsa.
Your public key has been saved in /home/ruuke/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:wKTgpFs8fZkzq/vzHtq+jfusVkmjeMPkQeHadXPDvfM ruuke@mail.ru
The key's randomart image is:
@ruuke
ruuke / GET method
Created October 16, 2018 08:55
Part 1 - task1
ruuke@ruuke-VPCEB1M1R:~$ ncat -C httpbin.org 80
GET /anything HTTP/1.1
Host:httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Tue, 16 Oct 2018 07:38:20 GMT
Content-Type: application/json
Content-Length: 245