Skip to content

Instantly share code, notes, and snippets.

@dubcl
dubcl / Caddyfile
Created July 31, 2023 21:20
Caddyfile simple basic auth
:80 {
root * /path/to/your/files
file_server {
browse
}
basicauth /* {
username hash
# hash is generated by ./caddy hash-password
}
}
for i in $(ls *.mkv);do ffmpeg -i "$i" -c copy -c:a aac "${i%.mkv}.mp4" ;done
@dubcl
dubcl / VMware vSphere 6.x Licence Keys
Created May 15, 2023 22:09 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@dubcl
dubcl / cl_stream_radios.m3u8
Created May 11, 2023 14:23
CL stream radios
#EXTM3U
#EXTINF:0,Radio Futuro
https://18693.live.streamtheworld.com/FUTUROAAC.aac?csegid=12000&dist=futuro_cl-web-live_streaming_play&tdsdk=js-2.9&swm=false&pname=TDSdk&pversion=2.9&banners=300x250&gdpr=0&burst-time=15&sbmid=e9c174a4-eaab-4bfd-ee8d-313bfe70e916
@dubcl
dubcl / multipath-de4000.md
Created March 13, 2023 19:54
Multipath DE4000
devices {
  device {
    vendor "LENOVO"
    product "DE_Series"
    product_blacklist "Universal Xport"
    path_grouping_policy "group_by_prio"
    path_checker "rdac"
    features "2 pg_init_retries 50"
 hardware_handler "1 rdac"
@dubcl
dubcl / mutt_gmail_oauth2.md
Last active March 2, 2023 21:03
mutt + gmail + oauth2

you need a working gpg key, this is to encrypt the gmail.token file

set you gpg key id in the line 47

ENCRYPTION_PIPE = ['gpg', '--encrypt', '--recipient', 'YOUKEYHERE']

Note: Example how to get you key

@dubcl
dubcl / multipath4de4000h.conf
Created October 4, 2022 15:12
multipath for de4000h
devices {
device {
vendor "LENOVO"
product "DE_Series"
product_blacklist "Universal Xport"
path_grouping_policy "group_by_prio"
path_checker "rdac"
features "2 pg_init_retries 50"
hardware_handler "1 rdac"
prio "rdac"
#!/bin/bash
VER="0.94.2";
SCRIPTTITLE="PV - HVM - version $VER";
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
NORMAL=$(tput sgr0)
# Configure logging
tmp="/tmp"
logfile="$tmp/$(basename $0).$$.log"
@dubcl
dubcl / explain.md
Created June 17, 2022 21:03 — forked from aw/explain.md
[SOLVED] Proxmox VE and cloud-init snippets etc

Proxmox VE 6.x release includes a feature to add custom cloud-init configs. Unfortunately there is poor documentation, so I had to figure this out by adding pieces of information together.

The custom cloud-init files (user-data, meta-data, network-config)

The cloud-init files need to be stored in a snippet. This is not very well documented:

  1. Go to Storage View -> Storage -> Add -> Directory
  2. Give it an ID such as snippets, and specify any path on your host such as /snippets
  3. Under Content choose Snippets and de-select Disk image (optional)
  4. Upload (scp/rsync/whatever) your user-data, meta-data, network-config files to your proxmox server in /snippets/snippets/ (the directory should be there if you followed steps 1-3)
@dubcl
dubcl / PVE-HP-ssacli-smart-storage-admin.md
Created July 12, 2021 18:27 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation