🚧 Quick-notes
Quick-notes
Contents
Some Quick-notes
These notes will be moved to another place soon
1 Sqlite3
- Install sqlite3-console ubuntu:
sudo apt install sqlite3
- Connect to db file:
sqlite3 path/to/db/file
2 Install awscli
|
|
aws params
|
|
3 Ubuntu
- Show OS version-information
1
lsb_release -a
- Add self-signed CA
- copy file rootCA.crt to
/usr/local/share/ca-certificates
- Update:
sudo update-ca-certificates
- Convert pem to crt in der-format
openssl x509 -outform der -in yourfile.pem -out yourfile.crt
- Convert perm to crt in ASCII-PEM-format just rename.
- copy file rootCA.crt to
- ….
4 Openbox
- Openbox configuration-file:
~/.config/openbox/rc.xml
- Reload configuration-file (after edit):
openbox --reconfigure
5 Linux commands
- List folder, short desc by size: du -sh database/backup/* | sort -hr
6 GIT commands
- Update branches-list (and other information):
git fetch --prune origin
- Delete remote branches:
git push origin --delete branch_1 branch_2
orgit push origin :branch_1 :branch_2
- List all remote branches:
git branch -r
7 docker-compose
7.1 Install docker-compose version 2 (and still using docker-compose version 1 too)
- Document link: https://github.com/docker/compose
- Download file from release page: https://github.com/docker/compose/releases
- Copy file to
~/.docker/cli-plugins/
, rename todocker-compose
, set excute permissionchmod u+x docker-compose
- Run
~/.docker/cli-plugins/docker-compose version
to check if it is new version
8 Tilix - shortcut keys
- How to install tilix?
- Shortcut-Keys
- CTRL + ALT + T: New session
- CTRL + PageDown / PageUp: Move to next / previous session
- CTRL + ALT + R / D / A: New window right / down / auto
- Super + ALT + Arrow: Change window size
- CTRL + TAB: change window
- …
9 Git commands
|
|