Skip to content

Instantly share code, notes, and snippets.

View Stef16Robbe's full-sized avatar
:shipit:

Stef Stef16Robbe

:shipit:
  • Netherlands
  • 13:21 (UTC +01:00)
View GitHub Profile
@Stef16Robbe
Stef16Robbe / .vimrc
Last active December 13, 2023 13:05
Vim config
set number
filetype on
syntax on
colorscheme morning
set tabstop=4
set shiftwidth=4
set expandtab
autocmd FileType yaml setlocal ai ts=2 sw=2 et
"set cursorcolumn
"set cursorline
@Stef16Robbe
Stef16Robbe / autoexec.cfg
Last active September 6, 2024 17:43
CSGO autoexec
//~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--
//
// ____ ____ ____ ____ _ ____
// / ___)(_ _)( __)( __)(// ___)
// \___ \ )( ) _) ) _) \___ \
// (____/ (__) (____)(__) (____/
// _
// ___ _ _| |_ ___ ___ _ _ ___ ___
//| .'| | | _| . | -_|_'_| -_| _|
//|__,|___|_| |___|___|_,_|___|___|
@Stef16Robbe
Stef16Robbe / win-to-win-ssh_copy_id.ps1
Last active October 19, 2023 13:31
Automated Windows to Windows SSH copy-id
# UPDATE, VIEW: https://code.visualstudio.com/docs/remote/troubleshooting#_configuring-key-based-authentication
# SSH copy-id is not existent in win32 openssh (https://github.com/PowerShell/Win32-OpenSSH)
# So we need to do it ourselves.
# literally all I could find on Google was Windows to Unix:
# - https://www.chrisjhart.com/Windows-10-ssh-copy-id/
# - https://stackoverflow.com/a/9971617/10503012 ('cat source | ssh user@host "cat >> /path/to/target"' --> the 'cat >> ' part does not work on Windows, the variable is not properly piped through
# I do not have enough experience on (Windows) piping to fix this in a proper way.
# Special shoutout to useless Stack answers:
# - https://stackoverflow.com/questions/65656813/copying-ssh-key-from-windows-machine-to-windows-server-2019