Compare commits
3 Commits
d1ac9a7781
...
9b808b4739
Author | SHA1 | Date |
---|---|---|
Jean-Claude | 9b808b4739 | |
Jean-Claude | 4032e9d95c | |
Jean-Claude | 7c8ec8ca1b |
|
@ -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>`
|
|
@ -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`
|
||||
|
|
|
@ -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>`
|
||||
|
||||
|
|
|
@ -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/`
|
||||
|
|
Loading…
Reference in New Issue