Skip to content

Instantly share code, notes, and snippets.

View kotx's full-sized avatar

Kot C kotx

View GitHub Profile
@kotx
kotx / CXWineWhisky.md
Last active October 27, 2024 16:08
Using Wine 8 / CXWine 23.7.1 on Whisky
  1. Download CXWine 23.7.1 from this repo.
  2. Backup the Wine folder in ~/Library/Application Support/com.isaacmarovitz.Whisky/Libraries to Wine.old or something similar.
  3. Extract the downloaded CXWine archive and move the contents of the extracted install folder to the previous location of Wine.
  4. Unquarantine the files in the extracted folder by running xattr -r -d com.apple.quarantine Wine.
  5. Profit!
  6. Except it doesn't work. Will try to figure out why someday!
@kotx
kotx / README.md
Last active November 4, 2024 19:11
Cryptomator without the license key checks
@kotx
kotx / Caddyfile
Created August 3, 2022 04:05
Add trusted Cloudflare IPs to a Caddyfile you can import
localhost {
import /include/cloudflare-proxies
}

bookmark this

javascript:(function() {navigator.clipboard.readText().then(x => navigator.clipboard.writeText(atob(x)))}());

Keybase proof

I hereby claim:

  • I am kotx on github.
  • I am kot (https://keybase.io/kot) on keybase.
  • I have a public key ASCVWwA66l0eCtzkpPuo26hDy0_LtjXUERIEG6DYcigjrQo

To claim this, I am signing this object:

/// <summary>
/// Rewrite URL API version segment if it exists
/// </summary>
public class UrlSegmentApiVersionStripMiddleware {
private static readonly string DEFAULT_API_VERSION_PREFIX = "v";
private readonly string _apiVersionVersion;
private readonly RequestDelegate _next;
@kotx
kotx / TranslatableEnum.java
Last active July 26, 2020 21:59
Once again I have done something dumb
@Environment(EnvType.CLIENT)
public enum TranslatableEnum {
ONE("enum.modid.translatable.one");
TWO("enum.modid.translatable.two");
private final String key;
TranslatableEnum(final String key) {
this.key = key;
}
@kotx
kotx / KeyBind.java
Last active December 11, 2022 22:21
Dumb Fabric keybind thing.
package moe.whip.pilot.keys;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.options.KeyBinding;
@Environment(EnvType.CLIENT)
public class KeyBind extends KeyBindBase {
private KeyBinding keyBinding;
private boolean pressed;
@kotx
kotx / SimpleFade.cs
Created June 29, 2020 16:57
Simple CanvasRenderer fade script for Unity
using UnityEngine;
namespace Kano.Unity
{
public class SimpleFade : MonoBehaviour
{
public EaseMode Mode;
[Min(0.1f)]
public float FadeDuration = 1;
@kotx
kotx / README.md
Last active November 21, 2022 23:00
CyberChef recipe for Cloudflare's "email protection"

CyberChef Link

All this does is extract the string (e.g. 0a676f6d7f6763644a676f6d7f246e6f7c) and XOR's the remainder by the first byte (0a).