Skip to content

Instantly share code, notes, and snippets.

View cab404's full-sized avatar

Cabia Rangris cab404

View GitHub Profile
@cab404
cab404 / Cab's Fav.json
Last active February 3, 2024 18:24
Active EasyEffects profile for Framework Laptop
{
"output": {
"bass_enhancer#0": {
"amount": 4.0,
"blend": 0.0,
"bypass": false,
"floor": 10.0,
"floor-active": true,
"harmonics": 10.0,
"input-gain": 0.0,
{ config, lib, pkgs, ... }:
let
on = { enable = true; };
first = a: b: a;
in {
services.pipewire = on // {
config = {
pipewire = {
"pulse.properties" = {
"server.address" = [
{ pkgs ? import <nixpkgs> { }, ... }: rec {
appendDerivation = f: f // {
__functor = self: arg: pkgs.runCommand "${f.pname}/S" self arg;
};
runList = prev: cmd: pkgs.runCommand "command-list"
{
# __functor = self: nextCommand: (if nextCommand == null then self else (runList self nextCommand));
} ''
${restoreEnv prev}
building all machine configurations...
error: --- ThrownError --- nix-build
Nextcloud v18 has been removed from `nixpkgs` as the support for it was dropped
by upstream in 2021-01. Please upgrade to at least Nextcloud v19 by
declaring
services.nextcloud.package = pkgs.nextcloud19;
in your NixOS config.
@cab404
cab404 / README.md
Last active September 12, 2024 20:38
Installing Klipper on TronXY X5SA

Installing Klipper on TronXY X5SA

** obligatory "your warranty in now void" disclaimer ** THIS GUIDE IS FOR CHITU V6 BOARDS ONLY

So, you've decided to upgrade you printer software-wise. You are in for a ride!

What can you expect

You'll get Klipper experience. That includes speeds up to 300 mm/s (I've tested infill at 180, and it was pretty much flawless), proper linear advance, low vibration on high accelerations without relying on approximations like S-Curve, no lags on dense GCode files — it's nothing like Marlin or the stock firmware.

@cab404
cab404 / x5sa.diff
Last active July 31, 2020 07:58
Diff on bugfix-2.0.* branch of Marlin for X5SA. It stops extruding for some reason.
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index 9d1f7862b..f131371f5 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -21,6 +21,8 @@
*/
#pragma once
+#define CONFIG_EXAMPLES_DIR "Tronxy/X5SA"
+
@cab404
cab404 / shell.nix
Created February 2, 2020 20:55
Python shell with override example.
{ pkgs ? import <nixpkgs> {} }: let
pyversion = version: package: package.overrideAttrs (a: { inherit version; });
in
with pkgs; mkShell {
buildInputs = [
(python37.withPackages(a: with a; [
ipython pylint
@cab404
cab404 / SketchSystems.spec
Created February 7, 2019 23:58
Registration
Registration
Enter name bio & photo -> Tinder
Tinder
Next -> Tinder
Y YY NN -> Tinder
@cab404
cab404 / SketchSystems.spec
Last active February 8, 2019 00:02
Registration
Registration
Enter name bio & photo -> Hub
Hub
Rate people -> Tinder
Destroy data -> Destroy dialog
Hub children
Tinder
Next -> Tinder
@cab404
cab404 / SketchSystems.spec
Last active February 8, 2019 00:02
Registration
Registration
Enter name -> Hub
Hub
Rate people -> Tinder
Edit profile -> Profile editor
Hub pages
Profile editor
Set name -> Name setter
Set photo -> Photo setter