# clean device of any partitions or filesystem metadata
wipefs -a /dev/fioa
# create new ext4 filesystem across disk, no partition necessary
mkfs.ext4 /dev/fioa
# append mount instruction to /etc/fstab
test
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
import os | |
import json | |
import argparse | |
import stashy | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-u','--username', help='Stash username used in API authentication.') | |
parser.add_argument('-p', '--password', help='Stash password used in API authentication.') | |
args = parser.parse_args() | |
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
param ( | |
[String] | |
$File, | |
[String] | |
$Alg = SHA256 | |
) | |
(Get-FileHash $File -Algorithm $Alg).Hash.ToLower() |
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
avconv -ar 44100 \ | |
-ac 2 \ | |
-acodec pcm_s16le \ | |
-f s16le \ | |
-ac 2 \ | |
-i /dev/zero \ | |
-f video4linux2 \ | |
-r ${OUTPUT_FRAMERATE} \ | |
-i ${VIDEO_DEVICE} \ | |
-vcodec copy \ |
i do some of this stuff so infrequently that it becomes a mess wading through white noise to find what i need.
goal: cohesive brush-up document
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
# Uncomment this line in order to enable debugging through logs | |
# debug = true | |
defaultEntryPoints = ["http", "https"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
MinVersion = "VersionTLS12" |
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 | |
add_user_to_ad_groups.ps1 | |
.PARAMETER username | |
Username which you will add group memberships to. | |
.PARAMETER import_file | |
If not running in single_group mode (see single_group parameter), declare the CSV file that holds all desired groups to make the user become a member of. |
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
param ( | |
$domain = $env:USERDOMAIN | |
) | |
$ErrorActionPreference = "Stop" | |
function Get-AdminUsername { | |
# Admin username determinationator | |
$user = $env:USERNAME |
I've been working to upgrade ManageIQ, and there are a few paths you can take with this.
- Deploy a new appliance, load configs and database on
- Deploy from scratch, load configs and database on
- Upgrade the app upon the existing appliance
For this article, I'm examining the final option: upgrading the application upon the existing appliance. Guide will be written against my existing manageiq-dev server. If other options prove more viable I'll write about them as well and re-arrange this!
NewerOlder