Skip to content

Instantly share code, notes, and snippets.

View ShinyZero0's full-sized avatar

ShinyZero0

View GitHub Profile

Доклад

Внутри экономика россии является смешанной, т.е. она является рыночной, но значительная часть управления за государством

Отрасли

  • нефтегаз
    • крупнейшая роль в экономике россии
  • 10.7 трлн рублей дохода в этой отрасли
@ShinyZero0
ShinyZero0 / VimClipboard.md
Last active July 29, 2025 02:00
Регистры и системный буфер обмена в vim

Использование регистров

В (n)vim есть много внутренних буферов обмена, называемых регистрами, которые можно активировать с помощью " и названия буфера, например "+ или "0. После этого следует команда, использующая выбранный регистр:

  • "+y чтобы скопировать текст в буфер + (системный)
  • "+p чтобы вставить из него.
@pinealan
pinealan / nix-env-diff.bash
Last active September 12, 2023 12:04
Diff installed packages between nix generations
#!/usr/bin/env bash
# From https://github.com/pinealan/dotfiles
nix-list() {
nix-env --list-generations
}
get_current_gen() {
if [ -z $1 ] ; then
# default to current generation of nix-env
@steinuil
steinuil / Nuget2Nix.fsx
Last active May 23, 2023 21:39
Code for the .NET packaging post
open System
open System.IO
open System.Net
open System.Text.Json
open System.Collections.Generic
open System.Security.Cryptography
/// Taken from hash.cc in the nix codebase
/// https://github.com/NixOS/nix/blob/a7540294cfae82c098e8691cd5212a9184add574/src/libutil/hash.cc
module Base32 =
@postrational
postrational / usr.share.X11.xkb.symbols.pc
Created December 2, 2019 17:21
xkb configuration to remap PgUp/PgDn to arrow keys and PrtSc to AltGr on ThinkPad keyboard (/usr/share/X11/xkb/symbols/pc)
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
@cacfd3a
cacfd3a / telegram_dark_mode.user.js
Last active October 19, 2025 13:23
Tampermonkey / Greasemonkey script for night mode / dark theme in Telegram web (scroll down for instructions)
// ==UserScript==
// @name Telegram dark theme / night mode
// @namespace https://github.com/cacfd3a/
// @version 1.0
// @description Dark theme / night mode for Telegram Web
// @author Maarten <maartentrompper@gmail.com>
// @match https://web.telegram.org/*
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle('body { color: #fff;');