Skip to content

Instantly share code, notes, and snippets.

View widlarizer's full-sized avatar
💭
Distracted

Emil J widlarizer

💭
Distracted
View GitHub Profile
@widlarizer
widlarizer / flake.nix
Created February 21, 2025 10:40
goofy ass pdm backend error
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; }; in {
devShell = pkgs.mkShell {
@widlarizer
widlarizer / bad-configuration.nix
Created March 2, 2025 16:50
NixOS minimized configuration with weird networking issues
{ config, pkgs, lib, ... }:
let
dbus-sway-environment = pkgs.writeTextFile {
name = "dbus-sway-environment";
destination = "/bin/dbus-sway-environment";
executable = true;
text = ''
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
08:49:25.536705 [0-0] * Host login.tailscale.com:80 was resolved.
08:49:25.536793 [0-0] * IPv6: 2a05:d014:386:202:4844:1954:f211:a255, 2a05:d014:386:202:c5e9:4c3f:9808:f2b0, 2a05:d014:386:202:f041:44b6:9559:668, 2a05:d014:386:202:6089:6a93:59a4:920a, 2a05:d014:386:202:30f5:de62:8eed:5c47, 2a05:d014:386:202:256c:6ede:f4f9:a51b, 2a05:d014:386:202:4277:1574:2e7b:d812, 2a05:d014:386:202:2697:66bf:c24a:a674, 2a05:d014:386:202:9501:5da3:6d45:8ca0, 2a05:d014:386:202:eee7:5001:722d:1156, 2a05:d014:386:202:1e36:2966:5bec:a911, 2a05:d014:386:202:9a01:a6fe:4251:8db8, 2a05:d014:386:202:4d:f871:20f3:6602, 2a05:d014:386:202:789e:cd8d:3b4b:df4d, 2a05:d014:386:202:b1ee:6525:7c95:d0f3, 2a05:d014:386:202:b88b:3cda:3907:3f2b
08:49:25.536841 [0-0] * IPv4: 3.74.105.242, 18.197.242.41, 3.125.149.81, 18.159.140.118, 3.70.110.84, 3.124.108.117, 3.69.76.60, 3.73.239.57, 3.78.132.46, 3.125.194.96, 18.159.235.209, 52.28.255.255, 18.194.180.142, 18.199.123.246, 18.197.213.150, 35.156.244.91
08:49:25.536877 [0-0] * [SETUP] added
08:49:25
@widlarizer
widlarizer / lol.py
Last active March 18, 2025 09:51
linear scale thingy for gamozo
import math, random
import numpy as np
import matplotlib.pyplot as plt
import csv
def read_iq_data(filename):
i_data = []
q_data = []
try:
with open(filename, 'r') as file: