Skip to content

Instantly share code, notes, and snippets.

View webknjaz's full-sized avatar
🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine

🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) webknjaz

🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine
View GitHub Profile
Draziw.Button.Mines
ag.video_solutions.wedotv
ahf.dummynation
ai.socialapps.speakmaster
air.com.beachbumgammon
air.com.freshplanet.games.SongPop2
air.com.gamesys.mobile.slots.jpj
air.com.goodgamestudios.empirefourkingdoms
air.com.kitchenscramble.goo
air.com.lalaplay.rummy45
(
disconnect() {
local dev=$1
local mac=$2
echo "$dev: disconnect $mac" > /dev/kmsg
ubus call hostapd.$dev del_client "{'addr':'$mac', 'reason':8, 'deauth':true, 'ban_time':0}"
}
mt79_rssi_monitor() {
local dev=$1
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@Blackshome
Blackshome / low-battery-notifications-and-actions.yaml
Last active January 13, 2026 15:31
low-battery-notifications-and-actions.yaml
blueprint:
name: Low Battery Notifications & Actions
description: >
# 🪫 Low Battery Notifications & Actions
**Version: 3.3**
🚀 Stay Charged, Stay Smart! Let's automate and take charge of your battery maintenance!🔋⚡
@AzimsTech
AzimsTech / 99-OpenWrt-Stuffs.md
Last active January 9, 2026 22:45
Installing and Using OpenWrt

![banner][banner-img]

📖 Table of Contents

  • 🛠 Setup & Configuration
    • [🌐 Configure using LuCI][luci-config]
    • [🖥️ Configure using CLI][cli-config]
  • [📜 Configure using uci-defaults script][uci-default]
@wyfo
wyfo / asyncio-select.py
Last active October 22, 2024 16:12
Python asyncio select implementation
import asyncio
import collections.abc
import inspect
import random
import typing
@typing.overload
def select[T](
awaitables: collections.abc.Sequence[collections.abc.Awaitable[T]],
@oguzalb
oguzalb / arrowfunc.patch
Created July 21, 2023 14:08
adding arrow functions to Python grammar
diff --git a/Grammar/Tokens b/Grammar/Tokens
index 618ae81..29bcfeb 100644
--- a/Grammar/Tokens
+++ b/Grammar/Tokens
@@ -11,6 +11,7 @@ RPAR ')'
LSQB '['
RSQB ']'
COLON ':'
+FUNC_SIGN '=>'
COMMA ','
@cidrblock
cidrblock / extract.py
Last active October 3, 2025 11:39
Extract pylint rules implimented in ruff
import requests
from bs4 import BeautifulSoup
url = "https://github.com/charliermarsh/ruff/issues/970"
response = requests.get(url)
html_content = response.content
soup = BeautifulSoup(html_content, "html.parser")
li_tags = soup.find_all("li")
@NeverBehave
NeverBehave / port-forwarding.py
Last active February 26, 2024 15:39 — forked from WangYihang/port-forwarding.py
Access devices with IPv6 Link-local address --- port forwarding via python socket
#!/usr/bin/env python3
# Tcp Port Forwarding (Reverse Proxy)
#
# For link-local IPv6 address, such as router emergency recovery, etc.
# Workaround for https://stackoverflow.com/questions/45299648/how-to-access-devices-with-ipv6-link-local-address-from-browserlike-ie-firefox
#
# Usage: python3 forward.py --listen-host 127.0.0.1 --listen-port 8443 --connect-host 'fe80::abcd:abcd:beef:beef%enp0s0' --connect-port 443
import socket
import threading

Learn to write good commit message and description

According to common commit style guides, it is required to write messages in an imperative manner. Make them actionable. Also avoid using -m as you