git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
# Count total EBS based storage in AWS | |
aws ec2 describe-volumes | jq "[.Volumes[].Size] | add" | |
# Count total EBS storage with a tag filter | |
aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add" | |
# Describe instances concisely | |
aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]' | |
# Wait until $instance_id is running and then immediately stop it again | |
aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id | |
# Get 10th instance in the account |
DB
ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
Taken from: [https://groups.google.com/forum/#!topic/devpi-dev/S-3ioWILTiY]).
We wanted to do some python developpement but we had a problem : our working network is completely isolated from any internet access, only having servers providing services like distribution packages repository mirror and web servers. The question then was how to make a full pypi mirror for usig pip install and pip search.
This is possible to be done using devpi, a web server, bandersnatch and an external hard drive. The idea is to dump all pypi packages with bandersnatch, transfer them to the server with the hard drive,
{ | |
"ignition": { | |
"config": {}, | |
"timeouts": {}, | |
"version": "2.1.0" | |
}, | |
"networkd": {}, | |
"passwd": {}, | |
"storage": { | |
"files": [{ |
#!/bin/bash | |
# prerequisite: | |
# - ec2 instance should attached proper iam role | |
# - awscli | |
# - kubectl | |
# Usage: | |
# | |
# define the following variales in your environment (root account) |
#!/usr/bin/env bash | |
# Copyright (c) 2019 Anton Semjonov | |
# Licensed under the MIT License | |
# This script embeds a transpiled ignition (JSON) config in the CoreOS OVA | |
# as guestinfo parameters, so you can deploy several machines with the | |
# same configuration easily. | |
# required arguments / inputs |
Following steps work for F29 for F31 look here
cat /etc/redhat-release
Fedora release 29 (Twenty Nine)
kubectl run snmp-notifier --image=docker.io/maxwo/snmp-notifier \ | |
--port=9464 --expose \ | |
--env="SNMP_DESTINATION=127.0.0.1:162" \ | |
--env="SNMP_DESCRIPTION_TEMPLATE=/etc/snmp_notifier/description-template.tpl" \ | |
-- '--snmp.trap-description-template=$(SNMP_DESCRIPTION_TEMPLATE)' \ | |
'--snmp.destination=$(SNMP_DESTINATION)' |
#!/bin/bash | |
# ocp4-chk-upgrade-channel v1.4 last mod 2022/11/16 | |
# https://gist.github.com/ryran/072409b1b7efd5018683a8c45e019652 | |
# Copyright 2020, 2021, 2022 Ryan Sawhill Aroha <rsaw@redhat.com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |