Skip to content

Instantly share code, notes, and snippets.

View kuznero's full-sized avatar

Roman Kuznetsov kuznero

View GitHub Profile
@kuznero
kuznero / gist:f32e0279c01feaf1cc95058c1a61bd0d
Created April 1, 2024 09:22
Desktop Docker Login issue on Linux
Source: https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452
download "docker-credential-pass".
wget https://github.com/docker/docker-credential-helpers/releases/download/v0.6.0/docker-credential-pass-v0.6.0-amd64.tar.gz
unpack tar -xf docker-credential-pass-v0.6.0-amd64.tar.gz
i couldn`t configure $PATH environment variable, so i copied unpacked file to /usr/bin directory.
check that docker-credential-pass work. To do this, run command docker-credential-pass. You should see: "Usage: docker-credential-pass <store|get|erase|list|version>".

Setting up Webpack for any Typescript project from Scratch

Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.

You will learn below things:

  1. ✅Create a Typescript node.js project.
  2. ✅Install Dependencies with webpack & typescripts.
  3. ✅Use Webpack CLI to crate webpack.config.js file and modify webpack.config.js based on our need.

Setting up Webpack for any Typescript project from Scratch

Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.

You will learn below things:

  1. ✅Create a Typescript node.js project.
  2. ✅Install Dependencies with webpack & typescripts.
  3. ✅Use Webpack CLI to crate webpack.config.js file and modify webpack.config.js based on our need.
@kuznero
kuznero / README.md
Created May 23, 2023 20:26
Fixing DNS in Pop! OS 22.04
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
cat /etc/NetworkManager/NetworkManager.conf | \
  sed "3 i\dns=default" | \
  sudo tee /etc/NetworkManager/NetworkManager.conf
sudo rm /etc/resolv.conf
sudo systemctl restart NetworkManager
sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf
@kuznero
kuznero / README.md
Last active May 23, 2023 16:42
Disable Elementary AppCenter Daemon in Pop! OS

Elementary AppCenter Daemon in Pop! OS 22.04 is unreasonably resource hunger. To disable it, run the following script:

sudo mv -v /etc/xdg/autostart/io.elementary.appcenter-daemon.desktop \
  /etc/xdg/autostart/io.elementary.appcenter-daemon.desktop.bak
@kuznero
kuznero / git-prompt.sh
Created February 8, 2023 10:01
Git Bash Prompt (on Windows, ~/.config/git/git-prompt.sh)
PROMPT_DIRTRIM=2
PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]'
PS1="$PS1"'\[\033[33m\]'
PS1="$PS1"'\w'
if test -z "$WINELOADERNOEXEC"; then
GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
if test -f "$COMPLETION_PATH/git-prompt.sh"; then
@kuznero
kuznero / README.md
Created October 3, 2022 12:58
VMWare Tools Mount Host Folders

Add following to the /etc/fstab file:

vmhgfs-fuse    /mnt/hgfs    fuse    defaults,allow_other    0    0
@kuznero
kuznero / init.toml
Last active September 28, 2022 07:10
SpaceVim Config
# rm -rf ~/.SpaceVim* ~/.vim* ~/.config/nvim ~/.local/share/nvim ~/.cache/SpaceVim ~/.cache/vim* ~/.cache/nvim*
#=============================================================================
# basic.toml --- basic configuration example for SpaceVim
# Copyright (c) 2016-2022 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
@kuznero
kuznero / README.md
Created September 24, 2022 10:38
CopyQ shortcut on Ubuntu

Add a shortcut in Gnome settings to toggle CopyQ: copyq -e "toggle()"

@kuznero
kuznero / install-tools.sh
Last active September 26, 2022 07:42
Install Tools
#!/usr/bin/env bash
TARGET_PATH=/usr/local/bin
function report() {
NAME=$1
VERSION=$2
VERSION=$(tr -d v <<< "${VERSION}")
printf "$(tput setaf 2)%12s$(tput sgr0) :: $(tput setaf 3)%s$(tput sgr0)\n" "${NAME}" "${VERSION}"
}