Skip to content

Instantly share code, notes, and snippets.

@pantherale0
pantherale0 / BBCMPDDB
Last active August 24, 2024 20:58
BBC MPD URLs - used by n8n to generate scripts for streamlink / mediamtx
{
"providers": {
"internal_relay_direct": {
"template": "http://192.168.11.159:{PORT}",
"transferFormat": "direct"
},
"akamai_dash_live_uk_uhd": {
"template": "https://ve-uhd-push-uk-live.akamaized.net/x=3/i={URN}/iptv_uhd_v1.mpd",
"transferFormat": "dash"
},
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
vSphere with Operations Management 6 Enterprise:
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
#EXTM3U
#EXTINF:-1,BBC One HD
https://vs-hls-push-uk-live.akamaized.net/x=4/i=urn:bbc:pips:service:bbc_one_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Wales HD
https://vs-hls-pushb-uk-live.akamaized.net/x=4/i=urn:bbc:pips:service:bbc_one_wales_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Northern Ireland HD
https://vs-hls-pushb-uk-live.akamaized.net/x=4/i=urn:bbc:pips:service:bbc_one_northern_ireland_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Scotland HD
https://vs-hls-pushb-uk-live.akamaized.net/x=4/i=urn:bbc:pips:service:bbc_one_scotland_hd/t=3840/v=pv14/b=5070016/main.m3u8
@neurocis
neurocis / 1_AllInOne-TailScale.md
Last active November 4, 2024 10:19 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Singular script

Which combines Install, setup & initialization and persists after reboot when stored as /config/scripts/post-config.d/tailscale.sh. Run sudo sh /config/scripts/post-config.d/tailscale.sh and follow the web link to initialize once script created.

#!/bin/sh
# /config/scripts/post-config.d/tailscale.sh

# check latest version against what's installed
@hansrajdas
hansrajdas / kubernetes.md
Last active June 7, 2024 19:30
Kubernetes

Overview

  • Automatically deploying and managing container is called container orchestration
  • K8s is an container orchestration tool/technology
  • Other alternatives of K8s are docker swarm and mesos

Cluster architecture

  • K8s cluster is a set of machines (or nodes) running in sync
  • One of the node is master node, responsible for actual orchestration
  • kube-scheduler schedules pods on nodes based on node capacity, load on node and other policies. This runs in kube-system namespace
  • kubelet runs on worker node which listens for instructions from kube-apiserver and manages containers
@emersonford
emersonford / change_gdrive_smb_port.py
Last active July 13, 2022 11:13
Python script to rewrite the `mac_smb_port` setting for Google Drive to a stable port number, thereby allowing the Spotlight index for it to be stable.
#!/usr/bin/env python3
# see https://apple.stackexchange.com/questions/420959/spotlight-indexing-of-google-drive-file-stream-disabled-on-restart/424445#424445 for an explanation
import os
from copy import deepcopy
from math import log
from pathlib import Path
DEBUG = 0
DRIVEFS_PATH = os.environ["HOME"] + "/Library/Application Support/Google/DriveFS"
@jordansinger
jordansinger / SidebarListStyle.swift
Created June 13, 2021 18:16
.listStyle(.sidebar)
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
Label("Airplane Mode", systemImage: "airplane")
.accentColor(.orange)
Label("Wi-Fi", systemImage: "wifi")
Label("Cellular", systemImage: "antenna.radiowaves.left.and.right")
@my-given-name-is-jeremy
my-given-name-is-jeremy / app-local.sh
Created November 26, 2020 20:38
Firewalla enable app-local api endpoints
#!/bin/bash
sed -i 's/!firewalla.isProductionOrBeta()/true/g' /home/pi/firewalla/api/app-local.js
sudo systemctl restart fireapi
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e
// by @levelsio
// HOW TO
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1
// 2) Publish your Google Sheet, File -> Publish To Web
// 3) Copy the SHEET_ID in the URL, put it in here below:
const endpoint = "https://spreadsheets.google.com/feeds/cells/SHEET_ID/1/public/full?alt=json"
// 4) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)
@rollwagen
rollwagen / ESXi.md
Last active September 6, 2024 13:01
ESXi links, info, one-liners etc

esxi (on mac mini)

prepare USB boot install drive

adding a USB datastore