Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: v1
kind: PersistentVolume
metadata:
# Can be anything, but has to be matched at line 47
# Also should avoid conflicts with existing PV names in the namespace
name: preprov-pv-cephfs-01
spec:
accessModes:
- ReadWriteMany
@ShyamsundarR
ShyamsundarR / pod-with-static-pv.yaml
Created May 20, 2019 22:06
Static PV using CephFS CSI
---
# Secret manifest containing ID and key for pre-provisioned subvolume
apiVersion: v1
kind: Secret
metadata:
name: csi-cephfs-preprov-secret
namespace: default
data:
userID: YWRtaW4=
userKey: QVFDNTBOQmN1c0hZR0JBQUptU0xtOUF3OThtQlJUNUZ5ZVMxL3c9PQ==
@dreamcat4
dreamcat4 / dell-perc-h310-how-to-flash.sh
Last active October 4, 2025 15:45
how to flash LSI SAS 2008 hba dell perc h310 to lsi 8112-8i firmware p19 or p20
# ======
# how to flash LSI SAS 2008 hba dell perc h310 raid jbod card
# for uefi motherboards, must boot uefi and use sas2flash.efi
# select uefi in the moot menu --> launches boof.efi. then:
# official UEFI oprom downloads are now only available from the product page of lsi 8210-8i card
# however we found an un official mirror / off site backup of previous files
# https://www.broadcom.com/products/storage/host-bus-adapters/sas-9210-8i#downloads
@ubergesundheit
ubergesundheit / readme.md
Last active October 15, 2025 18:11
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@joaopizani
joaopizani / .screenrc
Created May 17, 2012 11:55
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@steelcm
steelcm / gist:2558512
Created April 30, 2012 13:50
Find open ports on windows server using PowerShell
PS C:\> netstat -an | select-string -pattern "listening"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:383 0.0.0.0:0 LISTENING