- Binary Builds
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
- Turn off/on DC triggers to do a batch of changes without spam many deployments
# 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 |
U-Boot 2009.08-00088-g121cddc (Nov 17 2014 - 05:50:46) Avocent (0.0.3) EVB, Build: jenkins-idrac-yocto-release-505 | |
CPU: SH-4A | |
BOARD: R0P7757LC00xxRL (C0 step) board | |
BOOT: Secure, HRK not generated | |
DRAM: 240MB | |
(240MB of 256MB total DRAM is available on U-Boot) | |
ENV: Using primary env area. | |
In: serial | |
Out: serial |
U-Boot 2009.08-00088-g121cddc (Nov 17 2014 - 05:50:46) Avocent (0.0.3) EVB, Build: jenkins-idrac-yocto-release-505 | |
CPU: SH-4A | |
BOARD: R0P7757LC00xxRL (C0 step) board | |
BOOT: Secure, HRK not generated | |
DRAM: 240MB | |
(240MB of 256MB total DRAM is available on U-Boot) | |
ENV: Using primary env area. | |
In: serial | |
Out: serial |
[SH7757 /flash]$ reboot | |
/etc/sysapps_script/avct_reboot.sh: line 44: can't create /flash/data0/date_tmp: Read-only file system | |
Wait for pending config changes ... | |
Done | |
cp: can't stat '/flash/data0/cv/avctpasswd': No such file or directory | |
cp: can't stat '/flash/data0/cv/avctpasswd_new_done': No such file or directory | |
/etc/sysapps_script/avct_reboot.sh: line 80: can't create /flash/data0/aim/persistent/os_str_main_cert_path: nonexistent directory | |
/etc/sysapps_script/avct_reboot.sh: line 81: can't create /flash/data0/aim/persistent/os_str_main_key_path: nonexistent directory | |
watchdog_shutdown2 SIGINT ..killall: AppMonitor: no process killed |
U-Boot 2009.08-00088-g121cddc (Nov 17 2014 - 05:50:46) Avocent (0.0.3) EVB, Build: jenkins-idrac-yocto-release-505 | |
CPU: SH-4A | |
BOARD: R0P7757LC00xxRL (C0 step) board | |
BOOT: Secure, HRK not generated | |
DRAM: 240MB | |
(240MB of 256MB total DRAM is available on U-Boot) | |
ENV: Using primary env area. | |
In: serial | |
Out: serial |
#include <time.h> // Robert Nystrom | |
#include <stdio.h> // @munificentbob | |
#include <stdlib.h> // for Ginny | |
#define r return // 2008-2019 | |
#define l(a, b, c, d) for (i y=a;y\ | |
<b; y++) for (int x = c; x < d; x++) | |
typedef int i;const i H=40;const i W | |
=80;i m[40][80];i g(i x){r rand()%x; | |
}void cave(i s){i w=g(10)+5;i h=g(6) | |
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
#!/bin/bash | |
# | |
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/ | |
# Adapted to work with the official image available into Mac App Store | |
# | |
# Enjoy! | |
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build |