Skip to content

Instantly share code, notes, and snippets.

View x1unix's full-sized avatar
:shipit:
Work in progress

Denys Sedchenko x1unix

:shipit:
Work in progress
View GitHub Profile
@x1unix
x1unix / README.md
Created April 6, 2025 04:44
How to get "FYSETC HDMI5 HDMI Touch Screen 5INCH DSI Screen MIPI LCD V1.1" display working
@x1unix
x1unix / comfyui-wan_image2video_720p_fp8.json
Created March 3, 2025 01:44
comfyui-wan_image2video_720p_fp8.json
{
"last_node_id": 62,
"last_link_id": 114,
"nodes": [
{
"id": 39,
"type": "VAELoader",
"pos": [
-9.999995231628418,
313.7315368652344
@x1unix
x1unix / MF_TronGlowBorder.T3D
Last active January 4, 2025 08:15
Unreal Engine 5 - Tron-like Mesh Glow Effect
Begin Object Class=/Script/Engine.MaterialFunction Name="MF_TronGlowBorder" ExportPath="/Script/Engine.MaterialFunction'/Game/Materials/MaterialFunctions/MF_TronGlowBorder.MF_TronGlowBorder'"
Begin Object Class=/Script/Engine.Material Name="Material_1" ExportPath="/Script/Engine.Material'/Game/Materials/MaterialFunctions/MF_TronGlowBorder.MF_TronGlowBorder:Material_1'"
Begin Object Class=/Script/Engine.MaterialEditorOnlyData Name="Material_1EditorOnlyData" ExportPath="/Script/Engine.MaterialEditorOnlyData'/Game/Materials/MaterialFunctions/MF_TronGlowBorder.MF_TronGlowBorder:Material_1.Material_1EditorOnlyData'"
End Object
End Object
Begin Object Class=/Script/Engine.MaterialExpressionFunctionInput Name="MaterialExpressionFunctionInput_1" ExportPath="/Script/Engine.MaterialExpressionFunctionInput'/Game/Materials/MaterialFunctions/MF_TronGlowBorder.MF_TronGlowBorder:MaterialExpressionFunctionInput_1'"
End Object
Begin Object Class=/Script/Engine.MaterialExpressionFunctionInput Name="M
@x1unix
x1unix / compose.yml
Last active October 11, 2024 06:47
Jaeger + CORS Proxy
services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "16686:16686" # Both Jaeger UI and exporter are on the same port.
depends_on:
- jaeger
@x1unix
x1unix / reset-permissions.md
Created October 6, 2024 11:08
macos-app-reset-permissions
@x1unix
x1unix / service-worker.js
Created July 15, 2024 13:29
self-destruct SW
// Self-destructible service worker stub
self.addEventListener('install', function(e) {
self.skipWaiting();
})
self.addEventListener('activate', function(e) {
self.registration.unregister()
.then(function () {
return self.clients.matchAll();
})
@x1unix
x1unix / theme.ts
Created June 6, 2024 21:33
CodeMirror VSCode Light Theme
import { tags as t } from '@lezer/highlight'
import { createTheme } from '@uiw/codemirror-themes'
export { vscodeDark } from '@uiw/codemirror-theme-vscode'
// VSCode light theme based on dark theme from '@uiw/codemirror-theme-vscode'.
// See: https://github.com/uiwjs/react-codemirror/blob/master/themes/vscode/src/index.ts
export const vscodeLight = createTheme({
theme: 'light',
settings: {
@x1unix
x1unix / FocusFollowsMouse.ps1
Created April 25, 2024 02:38
Windows - Focus Follows Mouse
$signature = @"
[DllImport("user32.dll")]
public static extern bool SystemParametersInfo(int uAction, int uParam, ref
int lpvParam, int flags );
"@
$systemParamInfo = Add-Type -memberDefinition $signature -Name SloppyFocusMouse -passThru
[Int32]$newVal = 1
$systemParamInfo::SystemParametersInfo(0x1001, 0, [REF]$newVal, 2)
@x1unix
x1unix / chudnovsky.py
Created April 1, 2024 05:42
y-cruncher
import decimal
def binary_split(a, b):
if b == a + 1:
Pab = -(6*a - 5)*(2*a - 1)*(6*a - 1)
Qab = 10939058860032000 * a**3
Rab = Pab * (545140134*a + 13591409)
else:
m = (a + b) // 2
@x1unix
x1unix / chan.go
Created March 23, 2024 20:32
Go - check if a channel is closed without read
package main
import (
"fmt"
"unsafe"
)
// Copy of hchan struct with first necessary fields.
// See: "src/runtime/chan.go"
type hchan struct {