Skip to content

Instantly share code, notes, and snippets.

View kaecy's full-sized avatar
πŸŒ„
I'm awake.

Eris kaecy

πŸŒ„
I'm awake.
  • Freelancer
  • England
View GitHub Profile
@kaecy
kaecy / relay.py
Last active June 29, 2022 21:46
Chat Relay Module
# Uses a single Telegram node to relay messages from one to many.
# Receivers receive messages and can reply to senders. Senders never see who the receivers are
# and receive anonymous messages from receivers.
# - Setup to begin receiving messages -
# 1. Use `/receiver admin` to set a receiver and you're setup
import raey.core.module
from telethon.utils import get_display_name

Fixes For Things Microsoft Employees Don't Know Jack About

Aren't you bored of that dribble Microsoft employees keep repeating on Microsoft Answers and elsewhere. Don't you wish you were talking to a real human being, and not a robot like how they behave. I'm not sure if they are human.

When you ask for help:

Microsoft employee: Oh I see you have a problem.
Solution:
 Copy/paste an irrelevant piece of instruction from the Microsoft manual of incompetancy.
KN = ["", chr(19968), chr(20108), chr(19977), chr(22235), chr(20116), chr(20845), chr(19971),
chr(20843), chr(20061), chr(21313)]
TEN = chr(21313)
HUNDRED = chr(30334)
THOUSAND = chr(21315)
def split3(array):
groups = []
odd = len(array) % 3

Words / Kotoba

Japanese words in Hiragana.

General

English Japanese
Good Morning ohayou γŠγ―γ‚ˆγ†
Good Bye sayounara γ•γ‚ˆγ†γͺら
Hello konichiwa こんいけわ
import requests
def basicInfo(pokemon):
res = requests.get("https://pokeapi.co/api/v2/pokemon/" + pokemon)
json = res.json()
name = json['name']
id = json['id']
moves = []
def listgen(n, obj=0):
return [obj for _ in range(n)]
def makeLineToCells(line, rowSize=0):
line = line.strip()
if line.startswith("|"): line = line[1:]
if line.endswith("|"): line = line[:-1]
cells = line.split("|")
cellsLen = len(cells)
@kaecy
kaecy / readme.md
Last active June 9, 2023 13:22
Uses ffmpeg and ffprobe to extract all subtitle files, make sure you have them installed. Experimental.

Use

> subs.py "Revolution Today.mkv"

Subs
SUBRIP  ENG Revolution Today
SUBRIP  ENG Revolution Today
SUBRIP  CHI Revolution Today
SUBRIP  CHI Revolution Today
SUBRIP  DAN Revolution Today
SUBRIP  GER Revolution Today

Katakana

Β  a i u e o n
Β  γ‚’ γ‚€ ウ エ γ‚ͺ ン
k γ‚« γ‚­ γ‚― γ‚± γ‚³
s γ‚΅ γ‚· γ‚Ή γ‚» γ‚½
t γ‚Ώ チ ツ テ γƒˆ
n γƒŠ ニ γƒŒ ネ γƒŽ
h ハ γƒ’ フ γƒ˜ ホ

Audio Track Delay

Needs to be used after the input file.

Option:
  -itsoffset 1.3 (delay by 1.3 seconds)

Scale Video

Option:
import curses, birc
# Primitive input method for curses.
def read(i):
buffer = ""
i.erase()
i.addstr("> ")
while True:
key = i.getch()