Skip to content

Instantly share code, notes, and snippets.

View shymega's full-sized avatar

Dom Rodriguez shymega

View GitHub Profile
@ernetas
ernetas / telegraf-xen
Last active January 19, 2021 07:20
Telegraf Xen exec monitoring script
#!/usr/bin/env python3
import socket
hostname = socket.gethostname()
import subprocess
import time
def print_influx_data(xendomain, item, value):
global timestamp
print('xen_' + item + ',domain=' + xendomain + ',host=' + hostname + ' ' + value + ' ' + timestamp)
@5shekel
5shekel / export-ble-infos.py
Last active July 28, 2024 14:35 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Export your Windows Bluetooth LE keys into Linux! (arch edition)
Thanks to: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html
discussed here: https://unix.stackexchange.com/questions/402488/dual-boot-bluetooth-device-pairing
Usage:
$ ./export-ble-infos.py <args>
$ sudo bash -c 'cp -r ./bluetooth /var/lib'
@rkitover
rkitover / make-zfs-filesystems
Last active September 2, 2024 18:03
zfs setup for freebsd and gentoo and/or nixos dual boot
#!/bin/sh
#
# References:
#
# "Cohabiting FreeBSD and Gentoo Linux on a Common ZFS Volume"
# https://ericmccorkleblog.wordpress.com/2016/11/15/cohabiting-freebsd-and-gentoo-linux-on-a-common-zfs-volume/
#
# "ZFS Datasets for NixOS"
# https://grahamc.com/blog/nixos-on-zfs
#