Skip to content

Instantly share code, notes, and snippets.

View Kansattica's full-sized avatar
🦨

Princess Grace Kansattica

🦨
View GitHub Profile
@Kansattica
Kansattica / clippydip.ini
Last active May 10, 2026 05:26
Use Distrobox to install Clip Studio Paint on Bazzite.
# watch logs in another terminal with: podman logs clippydip -f
# you'll get prompted to let wine install stuff, say yes every time
# click through the CSP installer like normal
# this should export the clip studio paint stuff to your application launcher with an (on clippydip) suffix, use those.
[clippydip]
image=docker.io/library/debian:stable-backports
additional_packages="wine32 libwine:i386 libfreetype6:i386 cabextract libc6:i386 zstd"
exported_apps=".local/share/applications/clipstudiopaint.desktop"
exported_apps=".local/share/applications/clipstudio.desktop"
@Kansattica
Kansattica / configuration.nix
Last active September 7, 2025 11:41
more working nixpackage for unlocking cellular modem on nixos
networking.networkmanager.fccUnlockScripts = [
{id = "8086:7560"; path = "${pkgs.lenovo-wwan-unlock}/bin/fcc_unlock.sh";}
];
@Kansattica
Kansattica / counter.cpp
Last active December 5, 2023 00:43
gay little cgi script hit counter
// compile with g++ counter.cpp --std=c++17 -O2 -o counter
// if your server does multiple CGI requests at once, define MULTI_CGI, e.g.:
// g++ counter.cpp --std=c++17 -DMULTI_CGI -O2 -o counter
#include <iostream>
#include <stdio.h>
#include <unordered_map>
#include <string>
#include <cstring>
#include <fstream>
@Kansattica
Kansattica / Fallen London Wiki Lookup.user.js
Last active September 2, 2021 18:38
Fallen London wiki lookup script
// ==UserScript==
// @name Fallen London Wiki Lookup
// @namespace https://www.fallenlondon.com/
// @version 0.2
// @description Adds a link to the corersponding wiki page to Fallen London storylets.
// @author Princess Grace
// @match https://www.fallenlondon.com/
// @icon https://www.google.com/s2/favicons?domain=fallenlondon.com
// @grant none
// ==/UserScript==
#include <random>
#include <iostream>
#include <algorithm>
#include <array>
constexpr int trials = 2000000000;
int main()
{
constexpr std::array<int, 13> boost_value = {