Skip to content

Instantly share code, notes, and snippets.

View K900's full-sized avatar
💤
Occasionally sane

K900

💤
Occasionally sane
View GitHub Profile
_pkgname=browser-beta
pkgname=yandex-${_pkgname}
pkgver=17.4.1.776
pkgrel=1
epoch=1
pkgdesc="Yandex.Browser"
arch=("x86_64")
license=("custom:yandex-browser")
categories=("network")
diff --git a/PKGBUILD b/PKGBUILD
index 4770587..c79c2f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@
pkgname=code-git
pkgdesc='Microsoft Code for Linux, Open Source version from git'
-pkgver=1.16.0.r4621.g783a0aafad
+pkgver=1.16.0.r8766.g515e2b59f5
ъуъ
### Keybase proof
I hereby claim:
* I am K900 on github.
* I am k900 (https://keybase.io/k900) on keybase.
* I have a public key whose fingerprint is 3DEF 4272 2BC8 07EC 2C7A 8B44 0217 6752 1CEA 1D2E
To claim this, I am signing this object:
#
# Введение: про термины
#
# iterable - это любой объект, который определяет метод __iter__,
# то есть от него можно получить итератор.
#
# Итератор - это объект, который определяет метод __next__.
# По нему можно итерироваться (т.е. дергать у него __next__, пока не
# вылетит StopIteration).
#
@K900
K900 / dllmain.cpp
Created June 20, 2020 06:04
So this turned out easier than I expected
#include "pch.h"
#include <winsock.h>
#include <detours.h>
#include <map>
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "ws2_32.lib")
===============================================================================
Language Files Lines Code Comments Blanks
===============================================================================
Autoconf 12 563 462 11 90
BASH 8 822 592 112 118
C 35 2549 1806 354 389
C Header 6 1734 871 629 234
CMake 4 31 25 0 6
C# 1 36 15 17 4
C++ 4 753 634 51 68
@K900
K900 / pipewire.md
Last active March 9, 2023 19:21
Pipewire migration guide

Why

Because the Pipewire config semantics don't really match the NixOS module semantics, so it's extremely awkward to override the default config, especially when lists are involved. Also, upstream added a lot of accomodations to allow doing most of the things you'd want to do with a config edit in better ways.

Migrating your configuration

Compare your settings to the defaults. Note what your configuration changes.

let
pkgs = (import <nixpkgs> {});
inherit (pkgs) stdenv python3;
flit-core = stdenv.mkDerivation rec {
pname = "flit-core";
version = "3.8.0";
src = python3.pkgs.fetchPypi {
{pkgs ? import <nixpkgs> {}}: let
package = {
stdenv,
fetchFromGitLab,
autoreconfHook,
automake,
xorg-autoconf,
pkg-config,
xorg,
}: