Skip to content

Instantly share code, notes, and snippets.

View andreysaksonov's full-sized avatar
🦑
Software Engineer

Andrey Saksonov andreysaksonov

🦑
Software Engineer
View GitHub Profile
@andreysaksonov
andreysaksonov / .wslconfig
Created August 18, 2023 09:34
Windows Subsystem for Linux (WSL)
[wsl2]
processors=2
memory=12GB
guiApplications=false
#!/bin/bash
set -e
usage() { echo "Usage: $0 -f {file} -u {nexus_user} -p {nexus_pass} {services}" 1>&2; exit 1; }
FILE='docker-compose.yml'
NEXUS_URL='https://nexus.examples.com/'
NEXUS_USER=$(cat ~/.m2/settings.xml | grep -m1 -oP '(?<=<username>).*(?=</username>)')

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.

[user]
email = andrey@saksonov.me
name = Andrey Saksonov
signingkey = DE720735D1E82B84
[commit]
gpgsign = true
[gpg]
program = C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe
[core]
excludesfile = ~/gitignore_global
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
call plug#begin('~/.vim/plugged')
@andreysaksonov
andreysaksonov / .zshrc
Last active June 8, 2022 10:25
ubuntu:/home/saksonov/.zshrc
# sudo apt install zsh
# chsh -s $(which zsh)
# mkdir -p ~/.antigen && curl -L git.io/antigen > ~/.antigen/antigen.zsh
source ~/.antigen/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle command-not-found
@andreysaksonov
andreysaksonov / Microsoft.PowerShell_profile.ps1
Last active January 16, 2024 07:05
Windows: $HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
# https://github.com/PowerShell/PSReadLine
# Install-Module PSReadLine -Scope CurrentUser -Force
# https://github.com/matt9ucci/DockerCompletion
# Install-Module DockerCompletion -Scope CurrentUser
# https://github.com/dahlbyk/posh-git
# Install-Module posh-git -Scope CurrentUser
# https://ohmyposh.dev/
C:\Program Files (x86)\World of Warcraft\Interface\AddOns>git init
Initialized empty Git repository in C:/Program Files (x86)/World of Warcraft/Interface/AddOns/.git/
C:\Program Files (x86)\World of Warcraft\Interface\AddOns>git remote add origin http://git.tukui.org/elvui/elvui.git
C:\Program Files (x86)\World of Warcraft\Interface\AddOns>git fetch
remote: Counting objects: 92880, done.
remote: Compressing objects: 100% (25882/25882), done.
remote: Total 92880 (delta 64688), reused 92840 (delta 64667)
Receiving objects: 100% (92880/92880), 30.91 MiB | 1.67 MiB/s, done.

Keybase proof

I hereby claim:

  • I am andreysaksonov on github.
  • I am andreysaksonov (https://keybase.io/andreysaksonov) on keybase.
  • I have a public key ASDGqmbB1Pz09T7ljKVYrdeATePnA51pUFaSRelLPEi6AQo

To claim this, I am signing this object: