Skip to content

Instantly share code, notes, and snippets.

View ivankovnatsky's full-sized avatar

Ivan Kovnatsky ivankovnatsky

View GitHub Profile
# Scoop
iwr -useb get.scoop.sh | iex
scoop bucket add extras
scoop install `
syncthing `
cygwin `
googlechrome `
autohotkey `
vcredist2015 `
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";
};
#!/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

Replace recursively

:args `rg Neovim -l`

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

Replace visual selection

order = ["cpu_load", "network", "battery", "audio", "time"]
separator = " · "
[audio]
control = "Master"
mute = "MUTE"
template = "{ICO} {VOL}%"
icons = ["奄", "奔", "墳"]
[battery]
apt update
apt install htop -y
apt install dnsutils -y
apt install docker -y
apt install jq -y
apt install kubetail -y
apt install neovim -y
apt install tmux -y
curl -sfL https://get.k3s.io | sh -
curl -sS https://webinstall.dev/k9s | bash
export http_proxy
export https_proxy
export ftp_prox
export no_proxy
export HTTPS_PROXY
export HTTPS_PROXY
export FTP_PROX
export NO_PROXY
".config/tmuxinator/default.yml" = {
text = ''
name: default
startup_window: 1
root: ~/Sources/github.com/elastio
windows:
- work-editor:
panes:
- nvim
# Ubuntu 20.10 and newer
sudo apt-get -y update
sudo apt-get -y install podman neovim sysstat
# Ubuntu 22.04
cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
EOF