apt update && apt install jpegoptim optipng -y
cd /path/to/your/image/folder
| license: mit |
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| ## Variables | |
| set_vars(){ | |
| APT_MIRROR_HOST="mirror" | |
| LXDKVM_SSTREAM_HOST="mirror" | |
| JUJU_SSTREAM_HOST="mirror" |
| NO FEATURE | |
| NODES=3ctlr_2comp_3ceph | |
| # modify the ceph nodes memory to 5GB at config/nodes/3ctlr_2comp_3ceph.yml | |
| control_memory: 8192 | |
| control_disk: 45 | |
| compute_memory: 5120 | |
| compute_disk: 50 | |
| ceph_memory: 5120 | |
| ceph_disk: 55 | |
| undercloud_memory: 12288 |
| #!/bin/bash | |
| virsh net-destroy kimgtnet0 | |
| virsh net-start kimgtnet0 | |
| virsh net-destroy kimgtnet1 | |
| virsh net-start kimgtnet1 | |
| VMS=$( virsh list | grep '-' | awk '{ print $2; }' ) | |
| for guest in $VMS ; do |
| using System; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Text; | |
| namespace TarExample | |
| { | |
| public class Tar | |
| { |
| # This hosts file is brought to you by Dan Pollock and can be found at | |
| # http://someonewhocares.org/hosts/ | |
| # You are free to copy and distribute this file for non-commercial uses, | |
| # as long the original URL and attribution is included. | |
| #<localhost> | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost |
Been having problems with my new SN770 drive, and decided to check if I can firmware update it on Linux. WD only provides a Windows tool, Western Digital Dashboard to download and install firmwares, but, it's possible to find the firmware and install it using Linux tooling as well.
❱ sudo pacman -S nvme-cli