Skip to content

Instantly share code, notes, and snippets.

View scruplelesswizard's full-sized avatar
🐔

Jason Murray scruplelesswizard

🐔
View GitHub Profile
cess to XMLHttpRequest at 'https://de488bcb61af.us-east-1.playback.live-video.net/api/video/v1/us-east-1.758417551536.channel.yKkxur4ukc0B.m3u8?allow_source=false&token=eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJhd3M6Y2hhbm5lbC1hcm4iOiJhcm46YXdzOml2czp1cy1lYXN0LTE6NzU4NDE3NTUxNTM2OmNoYW5uZWwveUtreHVyNHVrYzBCIiwiYXdzOmFjY2Vzcy1jb250cm9sLWFsbG93LW9yaWdpbiI6Imh0dHBzOi8vd3d3LmZsb2F0cGxhbmUuY29tLGh0dHBzOi8vYmV0YS5mbG9hdHBsYW5lLmNvbSIsImlhdCI6MTY4MTUyMjA2NiwiZXhwIjoxNjgxNjA4NDY2fQ.NKd-nOIheXDL5UKnlXk7nPzaXpxFkmtiY-eKz53y-l95uIQl_aFw0_Py-UgahpktOWpBov2khpDPAO9r5VjRybyBBljmPq8xiuS12OgglS3l8HxvCeoX_0dU8HPX8TD1' from origin 'https://www.floatplane.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@scruplelesswizard
scruplelesswizard / install.sh
Last active March 22, 2022 04:00
Mellanox Firmware Tooling
#!/usr/bin/env bash
# install prerequisite packages
sudo apt update && \
sudo apt -qq install -y curl gcc make dkms
# install mlx tools
mkdir /tmp/mlx/
curl -L https://www.mellanox.com/downloads/MFT/mft-4.18.0-106-x86_64-deb.tgz | tar xvz --strip-components=1 -C /tmp/mlx/
sudo /tmp/mlx/install.sh
@scruplelesswizard
scruplelesswizard / cluster.yaml
Created December 3, 2019 08:37
Rook CephCluster Spec
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
cephVersion:
image: ceph/ceph:v14.2.4-20191112
allowUnsupported: false
dataDirHostPath: /var/lib/rook
@scruplelesswizard
scruplelesswizard / remove-osd.sh
Last active January 3, 2020 18:45
Rook Ceph OSD Replacement Procedure
# Based on https://gist.github.com/cheethoe/49d9c1d0003e44423e54a060e0b3fbf1
ceph osd set nodown
ceph osd set noout
export NODE=node2.compute.chaosaffe.local
kubectl scale deployment -n rook-ceph rook-ceph-operator --replicas 0
# todo: get OSD id's for node

Keybase proof

I hereby claim:

  • I am chaosaffe on github.
  • I am chaosaffe (https://keybase.io/chaosaffe) on keybase.
  • I have a public key ASC-71733UnL_MpQvONHMIe3hmnGCcIAvzPzs4dCx_fGmAo

To claim this, I am signing this object:

$ apm list
Built-in Atom Packages (92)
├── atom-dark-syntax@0.28.0
├── atom-dark-ui@0.53.0
├── atom-light-syntax@0.29.0
├── atom-light-ui@0.46.0
├── base16-tomorrow-dark-theme@1.5.0
├── base16-tomorrow-light-theme@1.5.0
├── one-dark-ui@1.10.8
├── one-light-ui@1.10.8
@scruplelesswizard
scruplelesswizard / debug-dep.yaml
Last active April 21, 2017 13:34
Kubernetes Debugging Pod Manifest
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: debug
spec:
selector:
matchLabels:
role: debug
replicas: 1
template:
[[udp]]
enabled = true
bind-address = "0.0.0.0:8089"
database = "proxmox"
batch-size = 1000
batch-timeout = "1s"
#!/bin/bash
docker run -i --rm \
--privileged \
--pid host \
--net host \
--volume /dev:/dev \
--volume /sys:/sys \
--volume /etc/ceph:/etc/ceph \
--volume /var/lib/ceph:/var/lib/ceph \
ceph/rbd "$@"