Skip to content

Instantly share code, notes, and snippets.

@httpsx
httpsx / WireGuard DPI обход РКН - Windows.md
Last active June 3, 2024 14:03
WireGuard DPI обход РКН - Windows

Для обхода блокировки достаточно отправить 1 любой udp пакет, тем самым нарушим начальное определение протокола WireGuard
Способ с использованием Windows PowerShell. Без скачивания Nmap и подобного софта.

Шаг 0: Отключитесь от всех туннелей.

Шаг 1: Редактируем Клиент конфиг

Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard
Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..." Step1

После DNS добавляем новую строку

@spencerldixon
spencerldixon / bookmarks_controller.rb
Created May 23, 2024 16:34
Real time search with Hotwire
def search
@pagy, @bookmarks = if params[:search].present?
pagy(@bookmarks.search(params[:search]), params: ->(params) { params.merge!({search: params[:search]}) })
else
pagy(@bookmarks)
end
end
@bmaupin
bmaupin / free-database-hosting.md
Last active June 3, 2024 13:59
Free database hosting
#!/bin/bash
URL="https://prep2024.ine.mx/publicacion/nacional/assets/presidencia/presidenciaNacional.json"
fetch_and_print() {
echo "------------------------------------------------------------------------------------"
JSON_FILE="presidenciaNacional_$(date +%Y-%m-%d_%H-%M-%S).json"
curl --compressed -o "$JSON_FILE" "$URL"
if [ $? -ne 0 ]; then
@JonasReich
JonasReich / ExtractTextureReportFromMemreport.ps1
Last active June 3, 2024 13:57
Extract Texture Report csv from UE4 Memreport
# Copyright: Jonas Reich 2021
# Extracts the texture report table from UE4 .memreport files and stores them as separte csv files.
# Uses semicolon delimiters and opens the extracted file with its default application (for me: Excel)
[CmdletBinding()]
param(
[Parameter(Mandatory=$true,ValueFromPipeline = $true)]
[String]
$SourceFile
)
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 3, 2024 13:56
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@veekaybee
veekaybee / normcore-llm.md
Last active June 3, 2024 13:56
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@rishavpandey43
rishavpandey43 / git-commit-styleguide.md
Last active June 3, 2024 13:52
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@pjobson
pjobson / latitude_longitude.txt
Last active June 3, 2024 13:51
Latitude / Longitude DMS, DDM, DD Regular Expressions
Degrees Minutes Seconds (DMS)
40° 26′ 46″ N 79° 58′ 56″ W
40° 26′ 46″ S 79° 58′ 56″ E
90° 0′ 0″ S 180° 0′ 0″ E
40° 26′ 45.9996″ N 79° 58′ 55.2″ E
Latitudes range from 0 to 90.
Longitudes range from 0 to 180.
Minutes & Seconds range from 0-60
Use N, S, E or W as either the last character,
which represents a compass direction North, South, East or West.