Skip to content

Instantly share code, notes, and snippets.

View hvindin's full-sized avatar

Henry Vindin hvindin

  • Sydney, Australia
View GitHub Profile
@hvindin
hvindin / upgrade-to-rhel8
Last active March 14, 2023 16:59
leapp rhel 7 to rhel 8
#!/bin/bash
if ! command -v subscription-manager > /dev/null; then echo "Cannot find subscription-manager"; exit 1; fi
if ! sudo subscription-manager status | grep -q 'Current'; then echo "Current subscription is not current!"; exit 1; fi
if grep -qvF 7.6 <(paste -s </etc/os-release); then if sudo subscription-manager release | grep -Eqv 'Release: 7(\.6|Server)'; then echo "Subscription is not to 7.6 or 7Server. Updating."; sudo subscription-manager release --set=7Server; fi; fi
sudo subscription-manager repos --disable="*" --enable=rhel-7-server-rpms --enable=rhel-7-server-supplementary-rpms --enable=rhel-7-server-extras-rpms
for repo in $(sudo repoquery --all --qf "%-20{ui_from_repo}" | sed -e 's#^@##g' | sort -u); do
if grep -Fqv "${repo}" <(paste -s </etc/yum.repos.d/redhat.repo); then
nonrhelrepos+=("${repo}")
fi
done
@hvindin
hvindin / truncated-hh-terminal.png
Last active June 7, 2018 13:27
truncated hh output
truncated-hh-terminal.png
2018-06-04T23:48:01.488+1000 [DEBUG] plugin.nomad: plugin address: timestamp=2018-06-04T23:48:01.487+1000 address=/tmp/plugin346473367 network=unix
2018/06/04 23:48:01.780002 [INFO] driver.docker: purged container 933c38d1af63c453936cb5b0acee0a13a4cba01bffa13a6dad16fb474fa3ee51
2018/06/04 23:48:02.626179 [INFO] driver.docker: created container 5b4ca990c2c2f76412d5079e873ad807f9b05e1aa1fde521d4a973614294471c
2018/06/04 23:48:02.836882 [INFO] driver.docker: created container 80fb8ca03792fc571b864a6c3b940825fe96d3d768fd7b6ab36436c10f1d212f
2018-06-04T23:48:03.138+1000 [DEBUG] plugin: starting plugin: path=/opt/nomad/bin/nomad args="[/opt/nomad/bin/nomad executor {"LogFile":"/opt/nomad/data/alloc/328a07b3-ed63-193e-7ea5-72bfc03c20e1/inf-bnkng-prod-salesproddefn-bustxnacct-invsvcmaint-v1-exec/executor.out","LogLevel":"INFO"}]"
2018-06-04T23:48:03.139+1000 [DEBUG] plugin: waiting for RPC address: path=/opt/nomad/bin/nomad
2018-06-04T23:48:03.187+1000 [DEBUG] plugin.nomad: plugin address: timestamp=2018-06-04T23:48:
@hvindin
hvindin / Jfrog-CLA-signed-page.pdf
Last active April 25, 2018 11:11
signed CLA confirmation page
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hvindin
hvindin / Alternatively-pihole-FTL.service
Last active April 22, 2018 13:49
pihole-FTL.service systemd
[Unit]
Description=Pi-hole FTLDNS
After=network.target
Wants=lighttpd.service
[Service]
Type=forking
User=pihole
Group=pihole
PIDFile=/run/pihole-FTL.pid
@hvindin
hvindin / ngx_http_subs_filter_module.so
Created January 5, 2018 08:48
ngx_http_subs_filter_module.so for nginx 1.13.8
@hvindin
hvindin / 01 - ignored-group_vars
Last active November 9, 2017 08:25
group_vars in root are ignored
inventory/hosts
[dc1]
hosts
group_vars/dc1.yml
---
data_center: "dc1"
...
site.yml

Keybase proof

I hereby claim:

  • I am hvindin on github.
  • I am hvindin (https://keybase.io/hvindin) on keybase.
  • I have a public key ASBJA-xAl60HW4q2DFxddORP8C9E6NFadmyG_5DtPQkWSAo

To claim this, I am signing this object:

@hvindin
hvindin / wrong.repo.png
Last active October 11, 2016 23:02
Wrong repo
wrong.repo.png