| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
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
| cvt 3840 1080 60 | |
| xrandr --newmode "3840x1080_60.00" 341.50 3840 4088 4496 5152 1080 1083 1093 1108 -hsync +vsync | |
| xrandr --addmode Virtual-1 "3840x1080_60.00" | |
| xrandr --output Virtual-1 --mode "3840x1080_60.00" |
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
| [Unit] | |
| Description=Hermes AI Agent Gateway | |
| After=network.target docker.service | |
| Requires=docker.service | |
| [Service] | |
| Type=simple | |
| User=root | |
| WorkingDirectory=/root/.hermes/hermes-agent | |
| Environment=PYTHONPATH=/root/.hermes/hermes-agent |
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
| #!/bin/bash | |
| GREEN='\033[0;32m' | |
| RED='\033[0;31m' | |
| YELLOW='\033[0;33m' | |
| BLUE='\033[0;34m' | |
| PURPLE='\033[0;35m' | |
| CYAN='\033[0;36m' | |
| NC='\033[0;0m' |
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
| themes function.php --- | |
| add_action('admin_init','load_admin_shipping_cost_bug'); | |
| function load_admin_shipping_cost_bug() { | |
| global $pagenow; | |
| if (is_admin() && $pagenow=='admin.php') { | |
| wp_enqueue_script('custom_js_jquery_ui',get_stylesheet_directory_uri() . '/shipping_cost_bug.js',array('jquery')); | |
| } | |
| } |
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
| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
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
| SELECT post_content, | |
| REGEXP_REPLACE(post_content, 'https://static\\.webshopapp\\.com/shops/1234/files/[0-9]+/', 'https://new-url.com/fixed/path/') | |
| FROM `db606006_1`.`eucph_posts` | |
| WHERE | |
| post_content REGEXP 'https://static\\.webshopapp\\.com/shops/1234/[^\"\\s]*'; | |
| EXPLAIN UPDATE eucph_posts | |
| SET post_content = REGEXP_REPLACE(post_content, 'https://static\\.webshopapp\\.com/shops/1234/files/[0-9]+/', 'https://rechtwp.de/wp-content/uploads/2024/11/') |
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
| "C:\Program Files\LibreOffice\program\soffice.exe" --headless --convert-to pdf *.ods |
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
| zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 echo | |
| # zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 zfs destroy | |
| zfs list -r -t snapshot -o name BusinessData/Strato-varwww | grep "2024-07" | xargs -n1 echo | |
| zfs list -r -t snapshot -o name BusinessData/Strato-varwww | grep "2024-07" | xargs -n1 zfs destroy |
NewerOlder