Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Chaos Penguin

Mic Szillat nomaster

🐧
Chaos Penguin
View GitHub Profile
@nomaster
nomaster / dashboard.json
Created Jan 21, 2022
Quarkus HTTP Server RED Metrics from Prometheus in Grafana dashboard
View dashboard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@nomaster
nomaster / netbox_inventory.yaml
Last active Jul 8, 2021
NetBox inventory for Ansible
View netbox_inventory.yaml
---
plugin: netbox.netbox.nb_inventory
cache: True
cache_connection: .inventory
cache_plugin: jsonfile
plurals: False
group_by:
@nomaster
nomaster / import-checks.py
Created May 18, 2021
Import Pingdom checks from API to Terraform
View import-checks.py
#!/usr/bin/env python3
import pingdomv3
import subprocess
import os
pingdom_api_token = os.environ['PINGDOM_API_TOKEN']
client = pingdomv3.Client(pingdom_api_token)
checks = client.get_checks(tags="environment_test")
@nomaster
nomaster / vlan24.conflist
Created Apr 27, 2021
Podman network on existing bridge interface
View vlan24.conflist
{
"cniVersion": "0.4.0",
"name": "vlan24",
"plugins": [
{
"type": "bridge",
"bridge": "br24",
"ipam": {
"type": "static",
"routes": [
@nomaster
nomaster / terraform-run-all.py
Created Apr 13, 2021
Run all Terraform workspaces matching name by string
View terraform-run-all.py
#!/usr/bin/env python3
import pyterprise
import os
tfe_token = os.environ.get('TFE_TOKEN')
tfe_org = os.environ.get('TFE_ORG')
client = pyterprise.Client()
client.init(token=tfe_token, url="https://app.terraform.io")
@nomaster
nomaster / Chromecast.xml
Last active Dec 18, 2020
Chromecast Ultra with Plex Media Server
View Chromecast.xml
<?xml version="1.0" encoding="utf-8"?>
<Client name="Chromecast">
<TranscodeTargets>
<VideoProfile protocol="http" container="mkv" codec="h264,hevc" audioCodec="eac3,ac3" subtitleFormat="ass,srt" context="streaming"/>
<SubtitleProfile container="ass" codec="ass" context="all" />
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mp4" codec="hevc,mpeg1video,mpeg2video,h264,mpeg4" audioCodec="eac3,ac3,mp3,mp2"/>
<VideoProfile container="mkv" codec="vp9,hevc,mpeg1video,mpeg2video,h264,mpeg4" audioCodec="eac3,ac3,mp3,mp2,pcm,flac,alac,truehd" subtitleFormat="ass,srt"/>
<MusicProfile container="mp3" codec="mp2,mp3"/>
View sip-communicator.properties
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_INTERVAL=1000
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri,pubsub
org.jitsi.videobridge.rest.private.jetty.port=8080
org.jitsi.videobridge.rest.private.jetty.host=0.0.0.0
@nomaster
nomaster / config.properties
Created Aug 30, 2020
Client Isolation on UniFi wireless access points
View config.properties
config.system_cfg.1=wireless.1.l2_isolation=enabled
config.system_cfg.2=wireless.2.l2_isolation=enabled
config.system_cfg.3=wireless.3.l2_isolation=enabled
config.system_cfg.4=wireless.4.l2_isolation=enabled
View gist:def275fd7edcef43228cd6e5aae9828c
# logon to the device
enable
configure
sdm prefer dual-ipv4-and-ipv6 default
exit
reload
# logon again
enable
configure
@nomaster
nomaster / scapy3
Last active Apr 17, 2020
Test raw traffic towards UDP port 10000
View scapy3
send(IP(dst="45.151.166.22")/UDP(dport=10000)/Raw(load="Test4"))
send(IPv6(dst="2001:678:b7c::22")/UDP(dport=10000)/Raw(load="Test6"))