Skip to content

Instantly share code, notes, and snippets.

View ivankovnatsky's full-sized avatar

Ivan Kovnatsky ivankovnatsky

View GitHub Profile
order = ["cpu_load", "network", "battery", "audio", "time"]
separator = " · "
[audio]
control = "Master"
mute = "MUTE"
template = "{ICO} {VOL}%"
icons = ["奄", "奔", "墳"]
[battery]

Replace recursively

:args `rg Neovim -l`

:argdo %s/Neovim/Nvim/ge | update

Replace visual selection

#!/usr/bin/env bash
# bw git-credential helper
# Based on https://github.com/lastpass/lastpass-cli/blob/master/contrib/examples/git-credential-lastpass
# A credential helper for git to retrieve usernames and passwords from bw.
# For general usage, see https://git-scm.com/docs/gitcredentials.
# Here's a quick version:
# 1. Put this somewhere in your path.
# 2. git config --global credential.helper bw
kernelPackages = pkgs.linuxPackagesFor
(pkgs.linux_testing.override {
argsOverride = rec {
src = pkgs.fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
sha256 = "sha256-zeHvEipSGZ3Db9oLoRJ9u7k2wWhwJO9iCdHwaN4mdOA=";
};
version = "5.14-rc7";
modDirVersion = "5.14.0-rc7";
};
# Scoop
iwr -useb get.scoop.sh | iex
scoop bucket add extras
scoop install `
syncthing `
cygwin `
googlechrome `
autohotkey `
vcredist2015 `