Skip to content

Instantly share code, notes, and snippets.

View kugimiya's full-sized avatar
:shipit:
Teach me how to use GH notifications.

Andrew Goncharov kugimiya

:shipit:
Teach me how to use GH notifications.
View GitHub Profile
@kugimiya
kugimiya / postbuild.js
Created February 20, 2024 13:43
Fixer of unemitted imports processed by TS with "paths"
/**
* Специальный скрипт, который фиксит отсутствие emit'а тс-импортов
* А так же копирует в dist такие вещи как assets
*/
// eslint-disable-next-line @typescript-eslint/no-var-requires,no-undef
const fs = require('node:fs');
console.log('INFO: Start postbuild.js');
109664.644919] loop3: detected capacity change from 0 to 8
[111025.636075] systemd invoked oom-killer: gfp_mask=0x1100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[111025.636085] CPU: 3 PID: 1 Comm: systemd Not tainted 5.15.0-83-generic #92-Ubuntu
[111025.636088] Hardware name: System manufacturer System Product Name/A88XM-PLUS, BIOS 2801 12/11/2015
[111025.636090] Call Trace:
[111025.636093] <TASK>
[111025.636096] show_stack+0x52/0x5c
[111025.636103] dump_stack_lvl+0x4a/0x63
[111025.636108] dump_stack+0x10/0x16
[111025.636111] dump_header+0x53/0x228
@kugimiya
kugimiya / music-streamer.js
Last active September 2, 2023 17:23
Music Streamer
const fs = require('fs');
const stream = require('stream');
const icy = require('icy');
const express = require('express');
class BroadcastStream {
readable;
sinks = [];
subscribe() {
15 лет девушка секс
50 0000 фунтов перевести на русские деньги сколько это
a bad guy патрик реза billie eilish
call of юри
erotika
fuck
fuck the use the
lesbi doch
maylimi san deb murojat qilsam как будет на русском
nice это русское имя
@kugimiya
kugimiya / gc_request_banlist.yaml
Created January 26, 2023 19:04
Банлист Алисы
general_conversation_dummy:
nlu_regex:
- ( |^)араб
- ( |^)чикатил[оа]
- ( |^)митинг
- ( |^)протест
- ( |^)блябуду( |$)
- ( |^)выеть( |$)
- ( |^)orno( |$)
- ( |^)конопл
import { Canvas, CanvasKit as CKType, CanvasKitInit } from 'canvaskit-wasm';
type Cell = {
position: number;
speed: number;
mass: number;
};
type CKInit = typeof CanvasKitInit;
type Params = {
canvas: {
@kugimiya
kugimiya / kaprekarsCalculator.js
Last active June 26, 2022 19:53
Вычислятор чисел Капрекара, считает квадратичные числа (n=2)
const { Worker, isMainThread, parentPort, workerData } = require('worker_threads');
if (isMainThread) {
console.log(`Число|Сумма строкой|Квадрат числа|Поток #|Время вычисления в своём потоке (мс)|Время работы потока (мс)`);
const threadsCount = +process.argv[2] || 2;
const threads = new Set();
for (let i = 0; i < threadsCount; i++) {
threads.add(new Worker(__filename, { workerData: { start: i + 1, step: threadsCount, threadId: i }}));
import { FunctionalComponent } from 'preact';
import md, { Node, Bold, Italic, Text, Title, CodeBlock, CodeSpan, Link, List, Image } from 'markdown-ast';
const API_HOST = 'http://kugi.club:1337'
interface Props {
text: string;
}
const Image: FunctionalComponent<{ node: Image }> = ({ node }) => {
<Tabs
className={{ wrapper: styles.tabs }}
items={[
{
id: 'transitions',
title: text('lk.history.transitions'),
content: <TransitionsTab />,
},
{
id: 'purchases',
@kugimiya
kugimiya / YT_Dumper.sh
Created March 31, 2022 07:22
YT_Dumper.sh
names=(
'FlynnFlyTaggart'
'RyanCelsiusMusic'
'andActionOne'
'UCCbgOIWdmYncvYMbl3LjvBQ'
'AlekOS1'
'UCFwM7mqRJQltXEduilGLHYg'
'ArturSharifov'
'Asthenic'
'AstralThrob'