Compare commits

...

3 Commits

Author SHA1 Message Date
Jean-Claude 9b808b4739
Update email address 2024-01-16 22:14:21 +01:00
Jean-Claude 4032e9d95c
Add disable ipv6 2024-01-03 15:00:24 +01:00
Jean-Claude 7c8ec8ca1b
Info about make module available for LSP 2023-12-20 21:45:03 +01:00
4 changed files with 13 additions and 1 deletions

6
networking.md Normal file
View File

@ -0,0 +1,6 @@
# Networking
## Disable IPv6
1. Check current settings: `nmcli connection show <CONNECTION>`
2. Disable ipv6: `nmcli connection modify <CONNECTION> ipv6.method "disabled"`
3. Restart connection: `nmcli connection up <CONNECTION>`

View File

@ -1,3 +1,5 @@
# Pacman
- Print no version info: Add `q` (quiet)
- List installed packages by size: `expac "%n %m" -l'\n' -Q $(pacman -Qq) | sort -rhk 2`

View File

@ -5,7 +5,7 @@
- Extract embedded jpg: `exiftool -b -<PREVIEW_TYPE> -w out.jpg <myImage>`
## Add IPTC
- `exiv2 -M "add Iptc.Application2.Contact jeanggi90@gmail.com" -M "add Iptc.Application2.Copyright Jean-Claude Graf" <img>`
- `exiv2 -M "add Iptc.Application2.Contact mail@jeanclaudegraf.ch" -M "add Iptc.Application2.Copyright Jean-Claude Graf" <img>`
## Make larger edge equals certain size: `convert <inImage> -resize 64x64\> <outImage>`

View File

@ -23,3 +23,7 @@
### Profile single function/method
- Import `from profilehooks import profile`
- Add `@profile` to function to profile
## Make some local module available to another module
> Useful for developing a plugin
- Create symlink to that moduel in `.venv/lib/python3.11/site-packages/`