Skip to content

Instantly share code, notes, and snippets.

View kawashirov's full-sized avatar

kawashirov kawashirov

View GitHub Profile
@kawashirov
kawashirov / sharex_ffmpeg.txt
Created January 31, 2026 05:36
My ShareX ffmpeg settings
-threads 8 -hwaccel amf -hwaccel_output_format amf -f dshow -thread_queue_size 1024 -rtbufsize 256M -audio_buffer_size 80 -framerate $fps$ -i video="screen-capture-recorder":audio="virtual-audio-capturer" -vf "scale=w='max(trunc(iw/4)*2,176)':h='max(trunc(ih/4)*2,144)'" -c:v h264_amf -preset quality -usage lowlatency_high_quality -tune zerolatency -latency true -rc vbr_latency -coder cavlc -high_motion_quality_boost_enable true -r $fps$ -b:v 3000k -pix_fmt yuv420p -movflags +faststart -c:a aac -ac 2 -b:a 192k -y "$output$"
PS C:\Users\kawa> ffmpeg -version
ffmpeg version 8.0.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 15.2.0 (Rev8, Built by MSYS2 project)
@kawashirov
kawashirov / SyncVelocityLimiter.cs
Last active December 10, 2024 05:21
SyncVelocityLimiter
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
using VRC.SDKBase;
using UdonSharp;
using VRC.SDK3.Components;
@kawashirov
kawashirov / LogManager.lua
Last active July 20, 2024 02:09
CC AE2 Autocraft
local expect = require "cc.expect"
local LogManager = {}
LogManager.__index = LogManager
function LogManager.new(baseName, maxFileSize, maxFiles)
local self = setmetatable({}, LogManager)
self.baseName = baseName
self.maxFileSize = maxFileSize
self.maxFiles = maxFiles
@kawashirov
kawashirov / demand_config.lua
Created June 23, 2024 22:25
cc-simple-miner-computer
return {
redstone_side = "right",
ae2_peripheral = "ae2:growth_accelerator",
demand_items = {
-- items thats need to be mined by this setup, will mine if any below limit
["minecraft:diamond_ore"] = 8000,
},
demand_fluids = {
-- fluids thats need to be mined by this setup, will mine if any below limit
["modern_industrialization:crude_oil"] = 600 * 1000
@kawashirov
kawashirov / PosesRadialPuppetGenerator.cs
Created August 6, 2023 03:23
PosesRadialPuppetGenerator.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using VRC.SDKBase;
using VRC.SDK3.Avatars.Components;
using static VRC.SDKBase.VRC_AnimatorTrackingControl;
using Kawashirov;
using Kawashirov.Refreshables;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Animations;
@kawashirov
kawashirov / ToF.ahk
Last active September 16, 2022 17:34
Kawa's routines macro for Tower of Fantasy
TOF_MACRO_VERSION := "2022.09.17.1"
/*
Это сложный макрос для автоматизации различных рутин в Tower of Fantasy.
Он использует популярную и универсальную программу Auto Hot Key
для того, что бы скриншотить окно игры, смотреть что там происходит,
исходя из этого нажимать кнопки за игрока.
Работает аналогично программам Genshin Overlay и Genshin Auto Fish,
ими и вдохновлена вся эта автоматизация.
@kawashirov
kawashirov / bake2.py
Last active August 13, 2021 22:44
Khrushchyovka Bake Script
import collections
import datetime
import os
import random
import re
import bpy
import mathutils
import kawa_scripts
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using System;
#if UNITY_EDITOR
using UnityEditor;
#endif
@kawashirov
kawashirov / FPS.shader
Last active July 11, 2018 21:34
FPS shader
Shader "Kawashirov/FPS"
{
Properties { _DigitsTex ("Digits", 2D) = "white" {} }
SubShader {
Tags { "RenderType" = "Opaque" }
Pass {
CGPROGRAM
#pragma vertex vert
#pragma fragment frag