Skip to content

Instantly share code, notes, and snippets.

View KenHV's full-sized avatar
🥴

KenHV KenHV

🥴
View GitHub Profile
@colemar
colemar / #wg-peer.md
Last active June 5, 2024 08:46
Manage Wireguard peers (IPv4 only)

Manage Wireguard peers (IPv4 only)

List, add or delete Wireguard peers. Also show client configuration for already added peers.

wg-peer [add|show <peer>|del <peer>|list]

where:

  • a[dd] add a new peer
@painor
painor / FastTelethon.py
Last active June 20, 2024 14:43
This will increase the download/upload speed when using telethon
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py
# Copyright (C) 2021 Tulir Asokan
import asyncio
import hashlib
import inspect
import logging
import math
import os
from collections import defaultdict
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO
@njmyers
njmyers / local.conf
Last active December 17, 2022 05:50
Use apple fonts as defaults for fontconfig users
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- pixel alignment rgba -->
<!-- check it here http://www.lagom.nl/lcd-test/subpixel.php -->
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>