A Pen by David Díaz on CodePen.
| #!/bin/bash | |
| size="$1" | |
| NC='\033[0m' # No Color | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[0;33m' | |
| BLUE='\033[0;34m' |
| #!/usr/bin/env bash | |
| # See https://www.freedesktop.org/software/systemd/man/os-release.html | |
| version_id=$(grep "^ID=" /etc/os-release | cut -d'=' -f2 | tr -d '"') | |
| echo $version_id |
| #!/usr/bin/env bash | |
| function this_and_that_are_equals () { | |
| this="me" | |
| that="you" | |
| if [ $this = $that ]; then | |
| return 0 | |
| else | |
| return 1 |
| require 'yast' | |
| require 'yast2/execute' | |
| require 'pathname' | |
| # Returns if the given path is placed in a btrfs | |
| # | |
| # @param path [String, Pathname] | |
| # | |
| # @return [Boolean] | |
| def btrfs_available_for?(path) |
Since https://paste.opensuse.org was not working well (a few 404 after upload an image are my arguments :wink), I uploaded some images here to refer them in the message "How deal with modules executed without enough permissions?"sent to yast-devel.
Yesterday, a guy from docu team ask me for help executing YaST Firstboot in an specific resolution.
Well, I'm trying to make screenshots of the SAP wizard. (...) , so I only need to log in with
sshand execute/usr/lib/YaST2/startup/YaST2.Firstboot. That works so far.However, the script doesn't allow me to change the screen/window size. I need my screenshots in 800x600. Unfortunately, the script doesn't know the -g/--geometry option that is known in YaST.
Any hints? 🙂
| Network Card Setup | |
| ┌General──Wireless Specific──Address──Hardware─────────────────────────────┐ | |
| │ | | |
| | Network ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ [Choose Network] | | |
| | | | |
| │┌Authentication──────────────────────────────────────────────────────────┐│ | |
| ││ || | |
| || Mode ▒WPA-PSK ("home")▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒↓ ││ | |
| ││ Password ▒******▒ ││ | |
| ││ ││ |
This method is obsolete and should not be used. Instead, use CGI.unescape, URI.decode_www_form or URI.decode_www_form_component depending on your specific use case.
In the context of verifying https://trello.com/c/lh0QdXbP/2737-1-verify-behavior-with-ptablefs-in-the-same-disk (internal link) it was needed to create a virtual disk with a filesystem and an empty partition table on it. Thanks to @wfeldt, I manage to prepare it following below steps:
-
With an Ext4 filesystem
# Create a 10GB virtual disk dd if=/dev/zero of=~/virtual-disk-1 bs=1M count=10240 # Create an Ext4 filesystem on it mkfs.ext4 -F ~/virtual-disk-1