Skip to content

Instantly share code, notes, and snippets.

@suiluj
suiluj / README.md
Last active May 30, 2024 08:37
poetry python vscode

Poetry setup

custom pip source

  • ensure correct pip source

basic public pip

can use simple setup

@suiluj
suiluj / iterm2-solarized.md
Created September 23, 2023 11:48 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@suiluj
suiluj / settings.json
Created June 15, 2023 11:32
vscode user settings
{
"workbench.colorTheme": "Default Light+",
"workbench.colorCustomizations": {
// https://coolors.co/e5e3d7-6d1a36-33673b-e4572e-083d77
"editorBracketHighlight.foreground1": "#467599",
"editorBracketHighlight.foreground2": "#E4572E",
"editorBracketHighlight.foreground3": "#8EA604",
"editorBracketHighlight.foreground4": "#6D1A36"
},
"vim.startInInsertMode": true,
@suiluj
suiluj / README.md
Created May 10, 2023 08:43
links ln home dir

write links to different subfolders which i use often

example:

ln -s ../git/mercedes/github-enterprise/onboard-distributed-tracing/ onboard-distributed-tracing

then its possible to just

@suiluj
suiluj / README.md
Last active April 18, 2023 13:25
download token and header protected file via command line in different terminal but easy direct copy curl command from browser

How to download password/header/token protected file via command line

  • open dev tool network tab in chrome
  • just click on download link and wait until file dialog opens
  • right click on file download network entry
  • copy as curl command (bash) (for linux; and cmd for windows i guess)
  • open terminal
  • cd into correct folder
  • past copied curl command
  • add -L (just in case there is a redirect (in general I know this trick from a youtube video and someone used a hugging face model download where redirected is needed; explain shell curl -L)
@suiluj
suiluj / .env
Created March 28, 2023 09:16
ctl.sh simple version
NOTUSED=1234
@suiluj
suiluj / info.md
Created February 17, 2023 14:30
git mirror

git mirror repos

git clone --mirror <oldgiturl>
cd <reponame>
git push --mirror <newgiturl>

# in case of problem with refs: check if token allows workflow action adding/edit
@suiluj
suiluj / README.md
Created November 22, 2022 15:26 — forked from qdm12/README.md
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)

@suiluj
suiluj / fix-wsl2-dns-resolution
Created September 12, 2022 08:54 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@suiluj
suiluj / .pylintrc
Last active July 16, 2022 20:57
pylint ignore disable
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list=
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list