Skip to content

Instantly share code, notes, and snippets.

View nullableocean's full-sized avatar
☀️

Max nullableocean

☀️
View GitHub Profile
@J-Yaghoubi
J-Yaghoubi / sql-cheat-sheet.md
Last active October 7, 2025 23:39
Postgres SQL query cheat sheet
@hartfordfive
hartfordfive / HttpProxy.go
Created July 8, 2022 01:07 — forked from yowu/HttpProxy.go
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
@zmts
zmts / tokens.md
Last active November 14, 2025 12:31
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@hartfordfive
hartfordfive / response_hijack.go
Created March 20, 2016 11:11
Hijacking Golang http response
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/hijack", func(w http.ResponseWriter, r *http.Request) {
@subfuzion
subfuzion / curl.md
Last active November 6, 2025 06: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.