This file contains 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 | |
declare -a versions | |
versions=(29 31 32 33) | |
for version in "${versions[@]}"; do | |
src="registry.fedoraproject.org/f${version}/fedora-toolbox:${version}" | |
dest="fedora-toolbox-${version}" | |
echo "Create local copy from the remote image '${src}' into the directory '${dest}'" |
This file contains 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
# Found hre: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/658#issuecomment-380976825 | |
sudo virsh list --all | |
# Find the domain is failing (<THE_MACHINE>) | |
sudo virsh destroy <THE_MACHINE> | |
sudo virsh undefine <THE_MACHINE> --snapshots-metadata --managed-save | |
sudo virsh vol-list default | |
sudo virsh vol-delete --pool default <THE_VOLUME> |
This file contains 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 | |
URL="http://ipv4.download.thinkbroadband.com/50MB.zip" | |
function get_file() { | |
# Declare these local variables as integer | |
local -i count | |
local -i max_retries | |
local -i wait_time | |
local filename |
This file contains 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
--- | |
- name: Compose variables and merge lists | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars: | |
api_versions: | |
- 1 | |
- 2 |
This file contains 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
# More info here: https://gitlab.gnome.org/GNOME/gnome-build-meta/-/wikis/home | |
# I changed some minor options to have it working out the box. | |
# Be aware that the compressed image that you need to download is 1 Gb large. | |
# And, once it gets decompressed, it is 17 Gb large. | |
# Download the last GNOME OS image: | |
wget https://gitlab.gnome.org/GNOME/gnome-build-meta/-/jobs/artifacts/master/raw/image/disk.img.xz?job=vm-image-x86_64 | |
# Decompress it: | |
unxz disk.img.xz |
This file contains 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
--- | |
- name: Configure desktop | |
hosts: localhost | |
gather_facts: false | |
vars: | |
dconf_items: | |
- { key: "/org/gnome/desktop/interface/clock-show-date", value: "true" } | |
- { key: "/org/gnome/desktop/interface/clock-show-weekday", value: "true" } | |
- { key: "/org/gnome/desktop/peripherals/touchpad/natural-scroll", value: "false" } |
This file contains 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 a simple example of how to run a basic service inside a container with Podman | |
# Podman | |
## Pull the Docker image | |
podman pull docker.io/redis | |
## Run the container as you would do with Docker | |
podman run -d --name redis_server -p 6379:6379 redis | |
# But Podman facilitate some extra ways: |
This file contains 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
# Just a place to write down notes for old time Debian/Ubuntu user | |
# that has just moved into Fedora/RedHat world | |
# Show which package provides the file '/bin/ls' | |
# Similar to 'dpkg -S /bin/ls' | |
$ rpm -qf /bin/ls | |
coreutils-8.5-7.fc14.i686 | |
# The same but showing only the package name (without version) | |
$ rpm -qf /bin/ls --queryformat '%{NAME}\n' |
This file contains 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
# Multistage Dockerfile | |
# STEP 1: build the Reac static files | |
FROM node:13.2.0-alpine as builder | |
# Create app directory and set a current directory | |
WORKDIR /app | |
# Copy the dependencies files | |
COPY package.json package-lock.json /app/ |
This file contains 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 | |
# This is a small test to check how to pass some parameters with | |
# special characters (!) to avoid shell calls, to ansible-playbook. | |
_except='!dell10,!dell19' | |
ansible-playbook -l "${_except}" bootstrap.yml |
NewerOlder