Skip to content

Instantly share code, notes, and snippets.

View nikicat's full-sized avatar
🏠
Working from home

Nik B nikicat

🏠
Working from home
View GitHub Profile
@nikicat
nikicat / log
Created July 20, 2024 15:49
gcc 14 linux-enable-ir-emitter error
ccache c++ -Ilinux-enable-ir-emitter.p -I. -I.. -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/cloudproviders -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/sysprof-6 -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Wcast-qual -Wconversion -Wfloat-equal -Wformat=2 -Winline -Wmissing-declarations -Wredundant-decls -Wshadow -Wundef -Wuninitialized -Wwrite-strings -Wdisabled-optimization -Wpacked -Wpadded -Wmultichar -Wswitch-default -Wswitch-enum -Wunused-macros -Wmissing-include-dirs -Wunsafe-loop-optimizations -Wstack-protector -Wstrict-over
@nikicat
nikicat / any-to-usd.userscript.js
Last active July 14, 2024 13:48
Any-to-USD converter Userscript
// ==UserScript==
// @name Any to USD currency converter
// @namespace http://tampermonkey.net/
// @version 2024-07-13
// @description converts any cryptocurrency to USD
// @author Zxczxc
// @match *://*/*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAAurElEQVR42uzVQQ0AIAzAwKnDHyqxgY0lveQE9Nc59wEQNDuzADAAAAwAAAMAwAAAMAAADAAAAwDAAAAwAIA4AwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoAwCIMgCAKAMAiDIAgCgDAIgyAIAoA
0.001234 btC
123ETh
10 500 sats
@nikicat
nikicat / Tornado.md
Created January 3, 2024 14:09
TBD: Tornado Cash UI comparison

Tornado Cash UI comparison

site tornado.ws tornadocash.cash
announced version 023c463 023c463
donation address 0xB008Ce 0x08ec3A
donations recevied (2024-01-02) 1.0872319349627058 ETH
@nikicat
nikicat / gist:6b6cc6549fee51a44039696bcba49c62
Created November 27, 2023 13:15
Плотность вязки
длина юбки после стирки 20 см
плотность до стирки 3 ряда/см
плотность после стирки 2.7 ряда/см
длина юбки до стирки = (длина юбки после стирки) / (плотность до стирки) * (плотность после стирки) = 20 / 3 * 2.7 = 18 см
@nikicat
nikicat / README.md
Created November 22, 2023 20:16
Atomic Swap scenarios WIP

All cases suppose that Maker and Taker already agree on X and Y and their public keys.

Without dealer

Maker locks first

Success case

  1. Maker locks X
  2. Taker locks Y
  3. Maker takes Y
  4. Taker takes X
import dbus
import sys
def get_object(bus):
return bus.get_object('org.gnome.Shell.Screencast', '/org/gnome/Shell/Screencast')
def main(filename: str):
bus = dbus.SessionBus()
#!/bin/sh -e
context=$1
shift
namespace=$1
shift
service=$1
shift || true
helm --kube-context $context status $service-$namespace $@
@nikicat
nikicat / PUBG telemetry fields
Created March 17, 2018 12:05
PUBG telemetry fields
LogMatchDefinition
MatchId
PingQuality
_D
_T
_U
_V
LogPlayerLogin
_D
This file has been truncated, but you can view the full file.
[{"MatchId":"match.bro.official.2018-03.na.squad.2018.03.12.d6f1b510-ef2c-449b-bc14-bd1013e574d7","PingQuality":"high","_V":2,"_D":"2018-03-12T17:41:34.9258314+00:00","_U":false,"_T":"LogMatchDefinition"},{"result":true,"errorMessage":"","accountId":"account.56492847c97d4faaac19c608d0c34e71","_V":2,"_D":"2018-03-12T17:40:24.253Z","_T":"LogPlayerLogin","_U":false},{"character":{"name":"M4A1-SSSSSSSSSSS","teamId":2,"health":100,"location":{"x":82904.359375,"y":730169.625,"z":5170.15234375},"ranking":0,"accountId":"account.56492847c97d4faaac19c608d0c34e71"},"_V":2,"_D":"2018-03-12T17:40:24.274Z","_T":"LogPlayerCreate","_U":false},{"result":true,"errorMessage":"","accountId":"account.97335609ab2f4dcf905c4d5f5a91e866","_V":2,"_D":"2018-03-12T17:40:24.274Z","_T":"LogPlayerLogin","_U":false},{"character":{"name":"wang0716","teamId":3,"health":100,"location":{"x":128396.28125,"y":24700.220703125,"z":3550.19873046875},"ranking":0,"accountId":"account.97335609ab2f4dcf905c4d5f5a91e866"},"_V":2,"_D":"2018-03-12T17:40:24.