...your HTTP request with curl, you can use the -w (--write-out) option: curl --silent -o /dev/null -w "%{time_connect};%{time_starttransfer};%{time_total};%{time_appconnect};%{time_pretransfer}\n...

...With -w you can make curl display informations for your HTTP request. As seen in the example above you can e.g. output this in a CSV format for further analysis...

...have multiple exported resources that are identical. There are nodes that provide the same services for failover reasons. It is likely to have duplicate resources, when exporting nagios_check from...

...everything is fine. But when it comes to realizing the resources on the monitoring server, the puppetrun will fail due to the duplicate addresses. So how to mitigate this issue...

It's not possible to change the bwlimit of Proxmox storages via the Web-UI (at least in Proxmox 7.x). To change the bwlimit you need to use the...

...pvesm command and specify the limit for the desired category. For example to increase the bwlimit for migrations: pvesm set $NAME_OF_STORAGE --bwlimit migration=$INTEGER_LIMIT # example

If you're trying to start a cloud-init based Ubuntu VM with KVM you will suffer long boot times and confusing output on the terminal. If you want to...

...to remove cloud-init. wait until the VM boots login echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg sudo apt-get purge cloud-init sudo rm -rf /etc/cloud/; sudo rm...

...relaying information to input variables it's happening via environment variables. Depending on the size of the content of the variable it might exceed your OS limits. This is independent...

A possible workaround is to use a generated file to load the input instead of the env variable, e.g. # WORKAROUND # the variable my_huge_input cannot be...

If you want to expand your Areca Raid by swapping out the disks for larger ones you will need to do the following: Swap out all disks one by one...

...and wait until the syncronisation is finished in between. Reboot your server and enter the Raid Controller Configuration by pressing TAB at the right time. In the menu go the...

...common providers like the AWS one can quickly add up to a lot of storage space wasted. Each root module will download a copy of the same provider file. The...

...AWS provider is over 200 MB in size. To avoid creating multiple copies of the same file, you can use the Terraform Plugin Cache. Configuring the plugin cache:

There's a simple way in bolt to run commands from a file without caring about BASH escaping: # /home/user/foo.sh echo "$(hostname -f): $(uptime)" echo "${USER}" echo "${SERVERLIST}" | bolt command run...

...foo.sh --run-as root --targets - Use script run to run a ruby script: #!/usr/bin/env ruby # /home/user/bar.rb puts 'Hello, world!' echo "${SERVERLIST}" | bolt script run ./bar.rb --targets...

Here's a one-liner to view base64 encoded secrets in kubernetes. Make sure you have jq installed. $ kubectl get -n $NAMESPACE secret/$SECRET_NAME -o json| jq '.data | map...

...values(@base64d)' { "database": "secret1", "endpoint": "secret2", "username": "secret3", "password": "secret4...

kb.wisc.edu

When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically. Maybe the customer accidentally created a new key and certificate and...

...sent us just the certificate. It's also possible that the certificate chain is in the wrong order. Make sure that the server certificate is the first. This is also...

...you upgraded it everywhere. But because it's FreeBSD it does not restart running services. After every old version is removed from /var/cache/pkg you restarted collectd and it does not...

...start anymore, you really want to downgrade to 5.8.1 again. But even pkg now has 5.9.0 and you need your own make config setup anyway. portdowngrade Enter portdowngrade. Install it...

...when you try to run puppet agent: Error: Failed to apply catalog: undefined method `strip' for nil:NilClass you could have a very bad time debugging it. Because there will...

Info: Applying configuration version '1558534846' Error: Failed to apply catalog: undefined method `strip' for nil:NilClass /usr/local/lib/ruby/site_ruby/2.4/puppet/provider/mailalias/aliases.rb:28:in `process' /usr/local/lib/ruby/site_ruby/2.4/puppet/util/fileparsing.rb:152:in `handle_record_line' /usr/local/lib/ruby/site_ruby/2.4/puppet/util/fileparsing.rb...

...upload the certificate to AWS IAM I get this error: $ aws iam upload-server-certificate --server-certificate-name www.example.com-2013010-2014010 --certificate-body www.example.com.crt --private-key www.example.com.key --certificate-chain www.example.com.ca...

That's because of the format of the key file (www.example.com.key). If it starts with -----BEGIN PRIVATE KEY----- you have to convert it to rsa: mv www.example.com.key www.example.com.key_norsa...

There are two ways within systemd to manage the fact that you need the gluster service active before mounting the mountpoint. Thus in the past the mount triggered before the...

...gluster service was running and didn't mount again. /etc/fstab You can use the x-systemd.autmount feature which mounts the mountpoint as soon as it's accessed localhost:/shared /gluster/shared glusterfs...

...the debug output of the puppetmaster running with passenger you have to uncomment this setting in the config.ru: #ARGV << "--debug" If you don't know where your config.ru is, check...

Because systemd is the greatest thing ever it's not enough to stop the libvirt service. You need to disable the libvirt socket too. sudo systemctl stop libvirt-bin

...systemctl stop libvirt-bin.socket sudo systemctl start libvirt-bin

...maps the Umlauts to AltGr + a,u,o. Activate it in GNOME-Tweaks -> Keyboard -> Show Extended Input Sources and re-login. If your US-ANSI keyboard supports VIA you can...

Default behavior # Type ö Caps Lock, Shift-', o # Type Ö Caps Lock, Shift-', Shift-o Custom behavior # Type ö fn-o # Type Ö fn-Shift-o Macros

This is a way to run multiple redis server on one ubuntu server. These steps you have to do only once: Adjust init script Change some Variables. From this:

...ARGS=/etc/redis/redis.conf NAME=redis-server DESC=redis-server PIDFILE=/var/run/redis.pid to this: NAME=`basename ${0}` DAEMON_ARGS=/etc/redis/${NAME}.conf DESC=${NAME} PIDFILE=/var/run/${NAME}.pid Move redis configuration ^

Best results in other decks

...development PCs so we can operate multiple versions of Node.js in parallel. To make sure that all developers use a compatible version of Node.js, your project should declare the required...

...Node version as you cd into a directory. We have a card about automatically switch version when changing directories which provides a solution that works very well for us.

ruby-doc.org

...they are either called within the current context or because you want to learn something about the API of the current objects. Why is this useful? This is especially useful...

...since Ruby is an interpreted language and the source code and the location might have changed due to the interpretation. Usage Before using this, you can examine any Ruby object

Search in all decks