Skip to content

Instantly share code, notes, and snippets.

View DarkCat09's full-sized avatar

Andrey 0xdc09 DarkCat09

View GitHub Profile
@kosekmi
kosekmi / CC.of.QUIC.implementations.md
Last active May 4, 2026 17:52
CC of QUIC Implementations

CC of QUIC Implementations

Note on (New)Reno: Implementations seem to mix the terms Reno and NewReno. It is safe to assume, that all variants of Reno actually refer to the implementation stated in Section 7 of RFC9002^7^.

Note on CUBIC: Some implementations actually implement the CUBIC CCA, other use this term in their code to reference the cubic-based congestion window growth. Figuring out what CC is actually used can thereby often not be answered by a simple code search.

Name Repository Lang CC Algorithms Default CC HowTo Example Server Valid as of Source of Information
lsquic https://github.com/litespeedtech/lsquic C CUBIC, BBRv1, Adaptive Adaptive^1^ http_server -o cc_algo=1 11/2023 Repository / own experience
@ilyaigpetrov
ilyaigpetrov / FAILED: Доставка PinePhone Pro из Гонконга в Россию.md
Last active March 25, 2024 14:53
FAILED: Доставка PinePhone Pro из Гонконга в Россию
import time
class Sleepy(type):
def __getitem__(cls, value):
if isinstance(value, slice):
if value.step is None:
# start:stop
# minutes:seconds
@Beyarz
Beyarz / Wifi password.md
Created January 29, 2021 13:28
Retrieve saved wifi password

Macos

security find-generic-password -l "SSID" -D 'AirPort network password' -w

Linux

nmcli -s -g 802-11-wireless-security.psk connection show 'SSID'

Windows

@megahomyak
megahomyak / disable_or_enable_windows_defender.bat
Last active April 23, 2025 00:16
Disable or enable Windows Defender (DISABLE TAMPERING PROTECTION MANUALLY FIRST!!!)
@ECHO OFF
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
set /p what_to_do=enable or disable windows defender?:
if "%what_to_do%"=="disable" (
set state=1
) else (
if "%what_to_do%"=="enable" (
set state=0
Set objFS = CreateObject("Scripting.FileSystemObject")
outFile = "clip.txt"
oldClip = ""
Do
newClip = ClipBoard(Null)
If newClip <> oldClip Then
Set objFile = objFS.OpenTextFile(outFile, 8, True)
objFile.Write "############" & vbCrLf & ClipBoard(Null) & vbCrLf
objFile.Close
@fishchev
fishchev / index.html
Last active April 25, 2026 22:54
Minimal page structure/sample to trigger Telegram's IV template for https://teletype.in.
<!DOCTYPE html>
<head>
<title>$title</title>
<meta property="og:site_name" content="$site_name">
<meta property="og:description" content="$description">
<meta property="article:author" content="$author">
<!-- $image_url / link preview image is set using og:image property -->
<!-- <meta property="og:image" content="http://example.com/img.jpeg"> -->
<meta property="telegram:channel" content="@cor_bee">
@kvnxiao
kvnxiao / awesome-selfhosted-sorted-by-stars.md
Last active May 7, 2026 01:39
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@owencm
owencm / blob-to-image.js
Created January 12, 2019 18:01
Convert a blob to an image with JavaScript (e.g. to render blob to canvas)
const blobToImage = (blob) => {
return new Promise(resolve => {
const url = URL.createObjectURL(blob)
let img = new Image()
img.onload = () => {
URL.revokeObjectURL(url)
resolve(img)
}
img.src = url
})
@sinewalker
sinewalker / send-email.md
Last active January 23, 2025 07:18
Sending email from Linux command line (postfix or netcat)
  • Send a blank test message with a subject to an email address:

    mail -s "Subject" [email protected] < /dev/null

    (you can substitute /dev/null with a file, or pipe, to populate the body. It must end with a period on a line by itself.)

  • Send a blank email with an attachment:

    mail -a somefile -s "Subject" [email protected] < /dev/null