go to Settings Editor → xfwm4 → easy_click change ALT to Super
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # used to delete a view that contains a removed field | |
| delete from ir_ui_view where position('FIELD_NAME' in arch_db)>0; | |
| # in odoo 16 ir_ui_view becomes a jsonb | |
| delete from ir_ui_view where arch_db->>'en_US' ilike '%FIELD_NAME%' ; | |
| update ir_ui_view set active = FALSE where position('FIELD_NAME' in arch_db)>0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| layout.css.devPixelsPerPx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/NetworkManager/dnsmasq.d/00-homelab.conf | |
| # | |
| # This file directs dnsmasq to forward any request to resolve | |
| #server=/homelab/172.31.0.1 this is if you want .homelab | |
| address=/localhost/127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| netstat -ntlp | |
| netstat -nulp | |
| # for iprout2 packages | |
| sudo ss -tulpn | |
| ( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS | |
| nmcli dev show | grep 'IP4.DNS' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| root /var/www/html; | |
| index index.html index.htm index.nginx-debian.html; | |
| server_name loca.com; | |
| location / { | |
| try_files $uri $uri/ =404; | |
| } | |
| listen [::]:443 ssl ipv6only=on; # managed by Certbot | |
| listen 443 ssl; # managed by Certbot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat list.txt | xargs -I{} find . -path \*{} | |
| cat list.txt | xargs -I{} find . -path \*{} | xargs -I{} grep name {} | |
| echo algorithm | xargs -I {} find . -type f \( -iname "*{}*.pdf" -or -iname "*{}*.epub" -or -iname "*{}*.mobi" -or -iname "*{}*.azw" -or -iname "*{}*.azw3" \) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://trac.ffmpeg.org/wiki/Slideshow | |
| ffmpeg -framerate 1/5 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - | |
| # limit arch to amd64 | |
| echo "deb [arch=amd64] http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list | |
| sudo apt-get update && sudo apt-get install -y mongodb-org | |
| # add the init.d file | |
| # from https://github.com/microsoft/WSL/issues/1822#issuecomment-537486209 | |
| # https://github.com/mongodb/mongo/blob/master/debian/init.d | |
| # path /etc/init.d/mongod | |
| wget -O /etc/init.d/mongod https://raw.githubusercontent.com/mongodb/mongo/master/debian/init.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Disable Beep PC Speaker | |
| rmmod pcspkr | |
| echo "blacklist pcspkr" | tee /etc/modprobe.d/nobeep.conf | |
| # update pacman repos | |
| pacman -Syu | |
| # or | |
| pacman -Syu --overwrite /usr/lib\*/p11-kit-trust.so | |
| sudo pacman -S base-devel bzip2 clang code dnsmasq dnsmasq-openrc firefox-developer-edition gcc gcc-go git libffi libpqxx libreoffice-fresh \ | |
| llvm openssl otf-fira-mono noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ncurses postgresql postgresql-openrc \ | |
| postgresql-libs python-pip python-pyopenssl python-virtualenv re2 readline sqlite tk ttf-fira-code xz zlib |