Skip to content

Instantly share code, notes, and snippets.

View joelrebel's full-sized avatar

Joel Rebello joelrebel

View GitHub Profile
@joelrebel
joelrebel / serverctl.go
Created October 30, 2024 21:21
mgmt server power on/off
```
Mock bmc with https://github.com/joelrebel/mockbmc
```
```sh
GOTAGS="noaugeas novirt nodocker" make
./mgmt run --tmp-prefix lang examples/lang/serverpower.mcl
# To dump outgoing bmclib requests set `DEBUG_BMCLIB=true`
```
@joelrebel
joelrebel / info.md
Last active October 24, 2024 09:51
Framework 13 AMD Radeon GPU test

https://wiki.archlinux.org/title/AMDGPU

Linux box 6.11.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 22 Oct 2024 18:31:38 +0000 x86_64 GNU/Linux

GPU info

❯ lspci -k | grep -A 3 -E "(VGA|3D)"                                                                 
c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev cb)
        Subsystem: Framework Computer Inc. Device 0006
@joelrebel
joelrebel / main.go
Last active September 18, 2024 14:02
otel test
package main
import (
"context"
"time"
"github.com/equinix-labs/otel-init-go/otelinit"
"go.opentelemetry.io/otel"
)
@joelrebel
joelrebel / gist:d0a3084517d652bbafd52cc5b01dd084
Created September 12, 2024 11:20
docker image save ssh
docker image save imagename:tag | pv | ssh root@<IP> docker load
diff --git a/providers/supermicro/supermicro.go b/providers/supermicro/supermicro.go
index 2de6bdf..dac82b9 100644
--- a/providers/supermicro/supermicro.go
+++ b/providers/supermicro/supermicro.go
@@ -197,7 +197,6 @@ func (c *Client) Open(ctx context.Context) (err error) {
c.serviceClient.setCsrfToken(csrfToken)
c.bmc, err = c.bmcQueryor(ctx)
-
if err != nil {
apiVersion: v1
kind: Pod
metadata:
labels:
k8s-app: nats-box
name: nats-box
spec:
containers:
- image: "natsio/nats-box"
name: nats-box

❯ curl -sk -u user:pass https://<>/redfish/v1/Systems/1/ | jq .Boot

{
  "BootSourceOverrideEnabled": "Disabled",
  "BootSourceOverrideMode": "UEFI",
  "BootSourceOverrideTarget": "Pxe",
  "[email protected]": [
    "None",
    "Pxe",
    "Floppy",
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = [email protected]:metal-toolbox/conditionorc.git
fetch = +refs/heads/*:refs/remotes/origin/*
[user]
email = [email protected]
name = Joel Rebello
signingkey = 773C602F1C62746DF1DB6285EDB938BE882F8078
[lfs]
batch = false
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
export PATH="/usr/local/opt/sqlite/bin:$HOME/go/bin:/usr/local/bin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
export ZSH_CUSTOM="/Users/jrebello/.oh-my-zsh/custom"
plugins=(
git
kube-ps1