Skip to content

Instantly share code, notes, and snippets.

View glennswest's full-sized avatar
🏠
Working from home

Glenn West glennswest

🏠
Working from home
View GitHub Profile
@glennswest
glennswest / build2
Created December 4, 2020 01:48
waddle test
[root@dev waddles]# ./build.sh
STEP 1: FROM golang:1.15-alpine AS builder
STEP 2: WORKDIR /build
--> Using cache 37c27a1502299b498125af46b1b46ad9ee854d2f4ad554796b7619419cff2aef
--> 37c27a15022
STEP 3: COPY go.mod go.sum ./
--> 41513128cd7
STEP 4: RUN go mod download
--> 22a432c803e
STEP 5: COPY . .
@glennswest
glennswest / build.log
Created December 4, 2020 01:43
waddles testing
[root@dev waddles]# ./build.sh
STEP 1: FROM golang:1.15-alpine AS builder
STEP 2: WORKDIR /build
--> Using cache 37c27a1502299b498125af46b1b46ad9ee854d2f4ad554796b7619419cff2aef
--> 37c27a15022
STEP 3: COPY go.mod go.sum ./
--> Using cache a030e1b89f00dec9c7a826f37ac1fd8ef1dcfabd690e573056205240e7285715
--> a030e1b89f0
STEP 4: RUN go mod download
--> Using cache 22d7b1a4ef4657b1aafeb7977158e1adad2e3ed5574f47e96e7a2d56d5040938
@glennswest
glennswest / disk1p.sfdisk
Created August 7, 2020 14:07
Delete mbr and all partitions except datastore.
label: gpt
label-id: AEC4D53B-ED9A-4DBB-B7B4-960B56D113A2
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 335544286
/dev/sda5 : start= 11587584, size= 323956703, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=C7E4D36D-3878-4A8C-952F-4079674ED253, name="datastore"
@glennswest
glennswest / grbl.nc
Created August 1, 2020 17:09
Sainsmart GRBL Settings
$0=10
$1=25
$2=0
$3=2
$4=0
$5=0
$6=0
$10=115
$11=0.010
$12=0.002
@glennswest
glennswest / disk4p.sfdisk
Created July 15, 2020 16:59
Disk with 4 paritions, and lots of extra space.
label: gpt
label-id: 00000000-0000-4000-A000-000000000001
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1843199966
sector-size: 512
/dev/sda1 : start= 2048, size= 786432, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=C24C72AC-461D-4825-811A-B5B10FEA58BA, name="boot"
/dev/sda2 : start= 788480, size= 260096, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=F67502D4-4D76-4D8D-922E-BDD46A0AB10B, name="EFI-SYSTEM"
-- Logs begin at Fri 2020-01-17 15:42:43 UTC, end at Fri 2020-01-17 16:14:11 UTC. --
Jan 17 15:42:43 localhost kernel: Linux version 4.18.0-80.11.2.el8_0.x86_64 ([email protected]) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sun Sep 15 11:24:21 UTC 2019
Jan 17 15:42:43 localhost kernel: Command line: BOOT_IMAGE=/ostree/rhcos-1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/vmlinuz-4.18.0-80.11.2.el8_0.x86_64 console=tty0 console=ttyS0,115200n8 rootflags=defaults,prjquota rw ignition.firstboot rd.neednet=1 ip=dhcp root=UUID=477c3d77-20c6-4ff3-8bb3-dc2543eedfbd ostree=/ostree/boot.0/rhcos/1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/0 coreos.oem.id=qemu coreos.oem.id=azure ignition.platform.id=azure
Jan 17 15:42:43 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 17 15:42:43 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 17 15:42:43 localhost kernel: x86/fpu
@glennswest
glennswest / journalctl.log
Created January 16, 2020 16:28
master1 log
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2020-01-16 15:25:51 UTC, end at Thu 2020-01-16 16:23:55 UTC. --
Jan 16 15:25:51 localhost kernel: Linux version 4.18.0-80.11.2.el8_0.x86_64 ([email protected]) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sun Sep 15 11:24:21 UTC 2019
Jan 16 15:25:51 localhost kernel: Command line: BOOT_IMAGE=/ostree/rhcos-1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/vmlinuz-4.18.0-80.11.2.el8_0.x86_64 console=tty0 console=ttyS0,115200n8 rootflags=defaults,prjquota rw ignition.firstboot rd.neednet=1 ip=dhcp root=UUID=477c3d77-20c6-4ff3-8bb3-dc2543eedfbd ostree=/ostree/boot.0/rhcos/1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/0 coreos.oem.id=qemu coreos.oem.id=azure ignition.platform.id=azure
Jan 16 15:25:51 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 16 15:25:51 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 16 15:25:51 localhost kernel: x86/fpu
We couldn’t find that file to show.
@glennswest
glennswest / run.sh
Created August 28, 2019 13:04
Example esxi deployment
rm -r -f tiny
mkdir tiny
cp install-config.yaml tiny
openshift-install create ignition-configs --dir=tiny
rm -f ~/worker.ign
cp ~/k.lo/tiny/worker.ign ~
rm ~/.kube/config
cp /root/k.lo/tiny/auth/kubeconfig ~/.kube/config
rm -r -f /data/svcrhcos.${SVCDOMAIN}/tiny
cp -r tiny /data/svcrhcos.${SVCDOMAIN}
C:\bin\ovnkube.exe --init-node $env:COMPUTERNAME.ToLower() `
-k8s-kubeconfig="C:\Users\Administrator\.kube\config" `
--config-file "C:\cni\ovn_k8s.conf" `
-cluster-subnet 10.128.0.0/14 `
-cni-conf-dir="C:\cni" `
-service-cluster-ip-range 172.30.0.0/16