...~focal] [Ubuntu: 2.0.29-0ubuntu1 2.0.13-2ubuntu0.5 2.0.13-2] libreadline7 (7.0-3) libsodium23 (1.0.18-1+ubuntu18.04.1+deb.sury.org+1) [Ubuntu: 1.0.18-1] libssl1.1 (1.1.1j-1+ubuntu18.04.1+deb.sury.org+3) [Ubuntu...
...1.1.1f-1ubuntu2.16 1.1.1f-1ubuntu2.16 1.1.1f-1ubuntu2] openssl (1.1.1j-1+ubuntu18.04.1+deb.sury.org+3) [Ubuntu: 1.1.1f-1ubuntu2.16 1.1.1f-1ubuntu2.16 1.1.1f-1ubuntu2...
mysql1 50 UP L70K 1 0 0 0 0 0 0 0 mysql2 50 UP L70K 0 1 0 0 0 0 0 0 BACKEND 50 UP
0 0 0 0 8 0 mysql1 is preferred to use as mysql2 is configured as backup. So all connections will be sent to mysql1. We want to do...
...Overwrite/add nested key value Select only specific keys Command jq '.[] | { Name, OriginString }' Input [ { "Id": 1, "Name": "foobar.net", "OriginString": "/FOOBAR/foobar.net" }, { "Id": 2, "Name": "barfoo.baz", "OriginString": "/FOOBAR/barfoo.baz" } ] Output { "Name": "foobar.net", "OriginString": "/FOOBAR/foobar.net...
...OriginString": "/FOOBAR/barfoo.baz" } Modify keys Command jq '.[] | { Name, OriginString, Number: .Id, Static: "Foobar" }' Input [ { "Id": 1, "Name": "foobar.net", "OriginString": "/FOOBAR/foobar.net" }, { "Id": 2, "Name": "barfoo.baz", "OriginString": "/FOOBAR/barfoo.baz" } ] Output { "Name": "foobar.net", "OriginString": "/FOOBAR/foobar.net...
...all tables (schema public) from every database. Replication For updates method names in postgres 10 look in the wiki. Current xlog position on the master: SELECT pg_current_xlog_location...
SELECT pg_current_wal_lsn(); -- repeat command every second on psql \watch 1 Received xlog position on the slave: SELECT pg_last_xlog_receive_location(); -- postgres 10
Run the test to see it fail bundle exec rspec F Failures: 1) File "/entrypoint.sh" is expected to exist Failure/Error: it { should exist} expected File "/entrypoint.sh" to exist...
.../spec/dockerfile_spec.rb:10:in `block (2 levels) in <top (required)>' Finished in 1.94 seconds (files took 0.31723 seconds to load) 1 example, 1 failure Failed examples: rspec ./spec/dockerfile_spec.rb:10 # File "/entrypoint.sh...
...have so far found this fix necessary and tested it on Lenovo P14s Gen 1 Lenovo T14 Gen 1 Observing the situation To get a good overview about load, cpu...
...system and install throttled: $ sudo apt install git build-essential python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev python3-cairo-dev python3-venv python3-wheel $ git clone https://github.com...
...you continue, ensure that you've created your certificate in the region us-east-1 (N. Virginia). Otherwise the certificate is not available for CloudFront. The issue
I don't know why this error occurs, but after wasting over 1 hour of time trying to get the certificate to show up in the CloudFront console...
...ppa_ubuntu_dists_jammy_main_binary-amd64_Packages | paste - - | column -t Package: git Version: 1:2.41.0-0ppa1~ubuntu22.04.1 Package: git-all Version: 1:2.41.0-0ppa1~ubuntu22.04.1
...cvs Version: 1:2.41.0-0ppa1~ubuntu22.04.1 Package: git-daemon-run Version: 1:2.41.0-0ppa1~ubuntu22.04.1 Package: git-daemon-sysvinit Version: 1:2.41.0-0ppa1~ubuntu22.04.1 Package: git-doc...
...the moment (for e.g. if one worker seems to be stuck): * PID: 4273 Sessions: 1 Processed: 47 Uptime: 50m 53s CPU: 43% Memory : 3644M Last used: 49m 24s ago
...request_body_fully_read" : true, "request_body_type" : "NO_BODY", "response_begun" : false, "session" : { "gupid" : "18asd3ed-U4FSeggT0O", "pid" : 4273 }, "last_data_send_time" : null, tells me, that this process did...
...a running JVM process you can use jcmd. List the running processes: $ jcmd -l 1 /app.jar 140 jdk.jcmd/sun.tools.jcmd.JCmd -l The first column shows the PID of the process.
...system configuration with the PID: $ jcmd 1 VM.system_properties 1: #Thu Jan 26 10:34:20 UTC 2023 java.specification.version=17 sun.jnu.encoding=UTF-8 java.class.path=/app.jar java.vm.vendor=Eclipse Adoptium sun.arch.data.model...
...to the db you can list your keyspaces/databases with: # Show info about all databases 127.0.0.1:6379> INFO keyspace # Keyspace db0:keys=2674,expires=2663,avg_ttl=99821491105
...expires=466,avg_ttl=33842000297 db2:keys=12,expires=6,avg_ttl=23445951871 In this example you can see that we have 3 DBs. If you are unsure which DB...
...install -dm 755 /etc/apt/keyrings wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | sudo tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main" | sudo tee...
...a version string) is easy: $ mkdir -p ~/.config/mise/config.toml $ echo '[tools]' > ~/.config/mise/config.toml $ sed -i 's/\([^ ]*\).*/\1 = "latest"/' .tool-versions >> ~/.config/mise/config.toml Now you can just run mise upgrade and it will bring...
...setup such a layout nvme0n1 259:0 0 931.5G 0 disk ├─nvme0n1p1 259:1 0 1G 0 part /boot/efi ├─nvme0n1p2 259:2 0 2G 0 part /boot
...crypt-0 252:0 0 928.4G 0 crypt └─ubuntu--vg-ubuntu--lv 252:1 0 928.4G 0 lvm / Reboot Install BTRFS tools: apt install btrfs-progs Set filesystem...
...expansion to either set a default or check mandatory arguments Mandatory parameter hello() { NAME=${1:?provide name as first parameter} echo "Hello $NAME!" } $ hello # $?=1 bash: 1: provide name as...
...first parameter $ hello Foo # $?=1 Hello Foo! Parameter with default hello() { NAME=${1:-Marvin} echo "Hello $NAME!" } $ hello # $?=0 Hello Marvin! $ hello Foo # $?=1
loop until state change wait 60 seconds (vrrp_garp_master_refresh) send 1 GARP/NA package (vrrp_garp_master_refresh_repeat) The timings here are default which can be...
...is full, no more packages are enqueued. This is logged as follows: Jun 29 16:49:53 myhost Keepalived_vrrp[787]: Error 11 sending ndisc unsolicited neighbour advert on eth0...
...a lot of unnecessary email notifications. Often times we tend to use > /dev/null 2>&1 to just suppress all the output. This will hide errors though, and hinder debugging.
#!/bin/bash echo "all good until now" echo "everything is broken" >> /dev/stderr exit 1 $ chronic ./good.sh $ echo $? 0 $ chronic ./bad.sh all good until now everything is broken $ echo $?
...member list | awk -F ', ' -v member="$member" '{ if ( member == $3 ){ system("etcdctl member remove " $1); system("etcdctl member add " $3 " --peer-urls=" $4); } }' On the faulty node again
...the Internet is sparse and not even the Geniuses at the Genius Bar are 100% sure. We found out some things and can explain the backgrounds. tl;dr: when using...
...is only possible with workarounds. Docking stations Whenever you're considering using more than 1 external display, it makes sense to consider using a Docking Station for your Laptop of...
'instance_foo': api_port: 9200 content: 'index_patterns': ['foobar_*'] 'settings': 'number_of_shards': 1 'number_of_replicas': 0 Attention: This will replace all existing settings of the template. Make...
-H 'Content-Type: application/json' \ -d '{ "index_patterns": [ "foobar.*(" ], "settings": { "index": { "number_of_shards": 1, "number_of_replicas": 0 } } }' Cleanup Now you have fixed the issue for future indices matching...
...the error message is too meaningless to be helpful. Example: Running with gitlab-runner 16.7.0 (102c81ba) on , system ID: Resolving secrets 00:00 Preparing the "shell" executor 00:00
00:01 Running on ... Getting source from Git repository 00:00 bash: line 157: /bin/mkdir: Argument list too long Cleaning up project directory and file based variables...
.../etc/fstab are meaning? The first number fs_freq When this field is set to 1 dump(8) will make a backup of the partition. Not using dump for backups? You...
...Now you should have the build packages: $ ls -l ../ total 7968 drwxr-xr-x 16 root root 4096 Sep 9 22:08 exim4-4.86.2 -rw-r--r-- 1 root root...
...Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_all.deb -rw-r--r-- 1 root root 140620 Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_amd64.build -rw-r--r-- 1 root root 5251 Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_amd64.changes
...you may encounter this error: Copying required WAL segments. EXCEPTION: {'ret': 2, 'err': '/bin/sh: 1: cannot open /var/lib/barman/foopostgres/wals/00000007.history: No such file\n', 'out': ''} The reason is that the barman backups...
...running) since Wed 2022-11-23 09:25:09 CET; 7min ago Main PID: 18344 (openssl) Tasks: 1 (limit: 4915) CGroup: /system.slice/run-benchmark.service └─18344 /usr/bin/openssl speed # Get the logs $ sudo journalctl...
...u run-benchmark.service -- Logs begin at Mon 2022-03-07 13:45:18 CET, end at Wed 2022-11-23 09:31:33 CET. -- Nov 23 09:25:09 server systemd...