Skip to content

Instantly share code, notes, and snippets.

View Sandstorm750's full-sized avatar
💭
I'm learning

Sandstorm750

💭
I'm learning
  • Chelyabinsk
View GitHub Profile
postgres=# CREATE DATABASE chapter_four;
CREATE DATABASE
postgres=# CREATE TABLE new_tests (
postgres=# id serial PRIMARY KEY,
postgres=# title varchar(40),
postgres=# level int
postgres=# );
CREATE TABLE
postgres=# CREATE TABLE users (
postgres(# id serial PRIMARY KEY,
postgres=# CREATE DATABASE chapter_four;
CREATE DATABASE
postgres=# CREATE TABLE tests (
postgres(# id serial PRIMARY KEY,
postgres(# title varchar(40),
postgres(# level int
postgres(# );
ОШИБКА: отношение "tests" уже существует
postgres=# SELECT*
postgres-# FROM tests;
postgres=# CREATE DATABASE test_guru;
CREATE DATABASE
postgres=# CREATE TABLE categories (
postgres(# id serial PRIMARY KEY,
postgres(# title varchar(40)
postgres(# );
CREATE TABLE
postgres=# CREATE TABLE tests (
postgres(# id serial PRIMARY KEY,
postgres(# title varchar(40),
postgres=# CREATE DATABASE test_guru;
CREATE DATABASE
postgres=# CREATE TABLE categories (
postgres(# id serial PRIMARY KEY,
postgres(# title varchar(40)
postgres(# );
CREATE TABLE
postgres=# CREATE TABLE tests (
postgres(# id serial PRIMARY KEY,
postgres(# title varchar(40),
@Sandstorm750
Sandstorm750 / post3
Created March 15, 2019 20:42
POST3
C:\Program Files (x86)\Nmap>ncat httpbin.org 80 -C
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 8
vint=258
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
@Sandstorm750
Sandstorm750 / gistnum3
Created March 15, 2019 20:01
GET + Params
C:\Program Files (x86)\Nmap>ncat httpbin.org 80 -C
GET /anything?time_continue=5&v=KlZv4MSF5I8 HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Fri, 15 Mar 2019 19:59:18 GMT
Server: nginx
C:\Program Files (x86)\Nmap>ncat httpbin.org 80 -C
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Fri, 15 Mar 2019 18:48:53 GMT
Server: nginx
C:\Program Files (x86)\Nmap>ncat httpbin.org 80 -C
GET / HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/html; charset=utf-8
Date: Fri, 15 Mar 2019 18:14:01 GMT
Server: nginx