Skip to content

Instantly share code, notes, and snippets.

View xjunko's full-sized avatar
😡
:trollface:

Junko xjunko

😡
:trollface:
View GitHub Profile
@beerpiss
beerpiss / 0.readme.md
Last active May 12, 2024 18:10
3simai
@15696
15696 / customcontext.py
Last active May 29, 2023 05:51
simple custom context in discord.py (requires commands.Bot subclass)
# bot.py
from .context import CustomContext
class Bot(commands.Bot):
"""A subclass of commands.Bot, useful for creating custom context."""
async def get_context(self, message, *, cls = CustomContext):
return await super().get_context(message, cls = cls)
# context.py
class CustomContext(commands.Context):
@kb10uy
kb10uy / sus-specification-2.7.md
Last active May 23, 2024 07:23
SUS フォーマット v2.7 仕様

SUS Format Specification v2.7 (rev2)

注: SUS は今や Sliding Universal Score の略であり、 SeaUrchin Score ではありません。

1. 概要

  • テキストデータであり、全て printable character で構成される。
  • 拡張子: *.sus
  • EOL: CRLF もしくは LF
  • エンコード: 常に UTF-8
  • # で始まる行がデータとして意味を持ち、それ以外の行はコメントとして無視される。
  • 文字列データを指定する部分は " ~ " でクォートする。
@iJos
iJos / mac_change.bat
Created December 16, 2016 03:26
[BAT] Randomly change the Mac Address on Windows
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
::Generate and implement a random MAC address
FOR /F "tokens=1" %%a IN ('wmic nic where physicaladapter^=true get deviceid ^| findstr [0-9]') DO (
CALL :MAC
FOR %%b IN (0 00 000) DO (
REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\%%b%%a >NUL 2>NUL && REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\%%b%%a /v NetworkAddress /t REG_SZ /d !MAC! /f >NUL 2>NUL
)
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active June 20, 2024 17:33
Ultimate guide to low-latency osu on linux