Skip to content

Instantly share code, notes, and snippets.

View fufexan's full-sized avatar
👁️
Observing

Mihai Fufezan fufexan

👁️
Observing
View GitHub Profile
@fufexan
fufexan / accel.py
Created December 9, 2023 17:17
Hyprland custom accel_profile
#!/usr/bin/env python3
# original at https://gist.github.com/yinonburgansky/7be4d0489a0df8c06a923240b8eb0191
# modified for ease of use in Hyprland
# calculation are based on http://www.esreality.com/index.php?a=post&id=1945096
# assuming windows 10 uses the same calculation as windows 7.
# guesses have been made calculation is not accurate
# touchpad users make sure your touchpad is calibrated with `sudo libinput measure touchpad-size`
# import matplotlib.pyplot as plt
@fufexan
fufexan / cpp-dev-env-flake.nix
Last active April 17, 2024 12:52
C/C++ dev environment in Nix, using Clang
{
description = "C/C++ environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, ... }@inputs:
utils.lib.eachDefaultSystem (
@fufexan
fufexan / nginxmodules.nix
Created August 16, 2021 14:38
Nginx modules - file that triggered memleaks
{ fetchFromGitHub, fetchFromGitLab, lib, pkgs }:
let
http_proxy_connect_module_generic = patchName: rec {
src = fetchFromGitHub {
name = "http_proxy_connect_module_generic";
owner = "chobits";
repo = "ngx_http_proxy_connect_module";
rev = "96ae4e06381f821218f368ad0ba964f87cbe0266";
@fufexan
fufexan / TUT.md
Last active April 26, 2021 15:10 — forked from EllySensei/TUT.md

Elly's Low Latency osu! on Linux Tutorial

Ever since ThePooN's osu! on Linux tutorial got released, a lot of developments have since been discovered. Such as a new PulseAudio replacement that theoretically achieves lower latency and fixes, but the fundamentals are still there.

Disclaimer: This is mostly a tutorial for Arch Linux users and all flavours of it, you can follow the tutorial but it would be different for others.

Fundamentals: Installing WINE and making the WINEPREFIX

First of all, we have to install WINE, with patches by PooN enabled and stability patches to fix some crashes.

For Arch Linux I have made a package that was made using my fork.

{ config, pkgs, ... }:
# personal kakoune config
#
# the only required plugin is smarttab
{
programs.kakoune = {
enable = true;
config = {
context.modules = {libpipewire-module-protocol-native = null libpipewire-module-adapter = null libpipewire-module-client-node = null libpipewire-module-metadata = null libpipewire-module-protocol-pulse = {args = {pulse = {min = {quantum = "32/48000" req = "32/48000"}} server.address = ["unix:native"]}} libpipewire-module-rtkit = {args = {} flags = ["ifexists" "nofail"]}}
context.properties = {}
context.spa-libs = {audio.convert.* = "audioconvert/libspa-audioconvert" support.* = "support/libspa-support"}
stream.properties = {}
@fufexan
fufexan / orchis-default.nix
Created February 27, 2021 16:24
Orchis theme sassc problem
{ lib, stdenv, fetchFromGitHub, gtk3, gnome-themes-extra, gtk-engine-murrine
, sassc
, accentColor ? "default" }:
stdenv.mkDerivation rec {
pname = "orchis";
version = "2021-01-22";
src = fetchFromGitHub {
repo = "Orchis-theme";
@fufexan
fufexan / home.nix
Created February 25, 2021 15:31
Home Manager configuration
{ config, pkgs, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.username = "mihai";
home.homeDirectory = "/home/mihai";
home.stateVersion = "20.09";
# add locations to $PATH