Skip to content

Instantly share code, notes, and snippets.

View kuzetsa's full-sized avatar

CatSwarm (kuza) kuzetsa

View GitHub Profile
@kuzetsa
kuzetsa / MicroscopyCamera.patch
Created December 7, 2021 00:29
OmniVision OV2710 high-sensitivity microscope camera
--- backup-5.12.9/.config 2021-06-05 15:40:14.388209457 -0400
+++ linux-5.12.9/.config 2021-12-06 17:25:06.050140929 -0500
@@ -5 +5 @@
-CONFIG_CC_VERSION_TEXT="gcc (Gentoo 11.1.0 p1) 11.1.0"
+CONFIG_CC_VERSION_TEXT="gcc (Gentoo 11.2.0 p1) 11.2.0"
@@ -7 +7 @@
-CONFIG_GCC_VERSION=110100
+CONFIG_GCC_VERSION=110200
@@ -10 +10 @@
-CONFIG_LD_VERSION=23502
@kuzetsa
kuzetsa / catalysts.md
Created November 11, 2021 18:02 — forked from mosbth/catalysts.md
From a cached version of http://freenode.net/catalysts.shtml since their website is currently down.

Catalysts

The "catalyst" role is critical to freenode and an essential building block of channels. No one is required to be a catalyst, but the users who perform this role ensure the smooth and efficient functioning of the network.

IRC does not automatically produce a stable culture of cooperative effort. Even in cases where cooperation is intended, misunderstandings and personality incompatibilities can result in an extremely chaotic and hostile environment. Catalysts help prevent and resolve misunderstanding, calm the waters when users have difficulties dealing with each other and provide examples of constructive behavior in environments where such behavior might not otherwise be the norm.

Catalysts try to resolve problems, not through the use of authority and special privilege, but by fostering consensus, gently nudging participants in the direction of more appropriate behavior and by generally reducing the level of confrontation rather than confronting users with problems.

@kuzetsa
kuzetsa / InstallWithMultiMCLauncher.md
Created October 14, 2021 02:28
How to install a modpack with MultiMC Launcher
@kuzetsa
kuzetsa / CoverCrops.txt
Created May 26, 2021 01:21
multi-cropping cover crop seed blend
Alfalfa
Austrian Winter Peas
Barley
Berseem Clover
Buckwheat
Common Vetch
Cowpeas
Crimson Clover
Daikon Radish
Fenugreek
@kuzetsa
kuzetsa / diff910.patch
Created February 25, 2021 12:25
proper GCC support for the 11th generation NUC (tigerlake)
--- diff-9 2021-02-25 07:21:46.204380953 -0500
+++ diff-10 2021-02-25 07:21:55.011477326 -0500
@@ -1 +1 @@
-# /usr/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/cc1 -E -quiet -v - -march=icelake-client -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mavx512f -mno-avx512er -mavx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mavx512dq -mavx512bw -mavx512vl -mavx512ifma -mavx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mclwb -mno-mwaitx -mno-clzero -mpku -mrdpid -mgfni -mshstk -mavx512vbmi2 -mavx512vnni -mvaes -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=48 --param l1-cache-line-size=64 --param l2-cache-size=12288 -mtune=generic
+# /usr/
@kuzetsa
kuzetsa / 18Fans.md
Created January 31, 2021 21:12
case with 18 fans is a lot
3 @ front 420 [2000 RPM]
4 @ top 560 [2000 RPM]
1 @ rear 140 [2000 RPM]
2 @ bottom 280 [2000 RPM]
8 @ side [NF-A14 PWM /// 1500 RPM]

3+4+1+2 = 10 fans @ [NF-A14 iPPC /// 2000 RPM]

4.18 x10 = 41.80 [static pressure @ 2000 RPM]
@kuzetsa
kuzetsa / eselect.modules
Created February 19, 2019 15:28
["... eselect module for what provides bin/sh"]
kuzetsa@soyokaze ~ $ eselect modules
Built-in modules:
help Display a help message
usage Display a usage message
version Display version information
Extra modules:
binutils Manage installed versions of sys-devel/binutils
cblas Manage installed CBLAS implementations
cdparanoia Manage /usr/bin/cdparanoia implementation
@kuzetsa
kuzetsa / NAT66.txt
Created October 14, 2018 10:27
dualstack NAT66 to go with the NAT44 "because reasons" [tm]
~ # ip6tables -S && ip6tables -t nat -S && route -6 | grep 'fd00'
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A FORWARD -o dualstack -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i dualstack -j ACCEPT
-A FORWARD -d fd00:5::8/128 -p tcp -m tcp --dport 22 -j ACCEPT
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
@kuzetsa
kuzetsa / NoSMP.diff
Created October 6, 2018 14:00
kernel sanity fix: single-thread / single-core KVM guest (NO SMP)
--- old 2018-10-06 09:52:22.434458312 -0400
+++ new 2018-10-06 09:52:08.329085276 -0400
+CONFIG_BROKEN_ON_SMP=y
-# CONFIG_HZ_PERIODIC is not set
-# CONFIG_NO_HZ_FULL is not set
+CONFIG_HZ_PERIODIC=y
+# CONFIG_NO_HZ is not set
-# CONFIG_TICK_CPU_ACCOUNTING is not set
+CONFIG_TICK_CPU_ACCOUNTING=y
+CONFIG_PREEMPT_RCU=y
@kuzetsa
kuzetsa / wipe-free-space.sh
Created September 17, 2018 23:11
WARNING!!! this removes /etc/shadow (passwords, among other things)
#!/bin/sh
rm -rf /etc
fstrim -a
dd bs=262144 if=/dev/zero of=/root/ZERO.BIN
sync /root/ZERO.BIN
rm /root/ZERO.BIN
sync /root/
fstrim -a
dd bs=262144 if=/dev/urandom of=/root/URANDOM.BIN
sync /root/URANDOM.BIN