Skip to content

Instantly share code, notes, and snippets.

$targetDir = "$env:USERPROFILE\.azure-kubelogin"
$azureCliDir = "$targetDir\az"
$azureCliBinDir = "$azureCliDir\bin"
# Ensure target directories exist
@($targetDir, $azureCliDir) | ForEach-Object {
if (-Not (Test-Path -Path $_)) {
New-Item -ItemType Directory -Force -Path $_
}
}
@FracKenA
FracKenA / image of xkey diagram.svg
Created August 25, 2023 22:43
DrawIO Diagram of xKey Keycap labels.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
###
# This file is used as a reference and reminder for commands to use when troubleshooting OP5 Monitor.
# Although not needed frequently when questions about performance arise this can be a starting point.
# The file is broken up into sections specific to the components to be analyzed.
###
###
# OP5 Monitor Performance Analysis
###
package main
import (
"fmt"
"github.com/vbatoufflet/go-livestatus"
"os"
)
type Config struct {
Columns []string `config:"columns"`
version: '3.1'
services:
unifi:
container_name: unifi
restart: unless-stopped
image: linuxserver/unifi
volumes:
- /srv/docker/unifi:/config
environment:
- PGID=0
#!/usr/bin/python
import MySQLdb, sys
if len(sys.argv) <= 2:
sys.exit("Two arguments required. Example: %s <template_user> <destination_user>" %(sys.argv[0]))
template_user = sys.argv[1]
destination_user = sys.argv[2]
connection = MySQLdb.connect(host= "localhost",
user="root",
passwd="",
db="merlin")
curl -s http://www.gutenberg.org/cache/epub/2701/pg2701.txt |say &
command+Option+Control+8
@FracKenA
FracKenA / dashboard_ copy.py
Created May 7, 2018 14:34
This script is designed to copy OP5 dashboards to users with edit permissions.
#!/usr/bin/python
import MySQLdb, sys
if len(sys.argv) <= 2:
sys.exit("Two arguments required. Example: %s <template_user> <destination_user>" %(sys.argv[0]))
template_user = sys.argv[1]
destination_user = sys.argv[2]
connection = MySQLdb.connect(host= "localhost",
user="root",
passwd="",
db="merlin")
@FracKenA
FracKenA / check_apcext.pl
Created April 11, 2018 16:49
Extended APC Checks
#!/usr/bin/perl
#
# check_apcext.pl - APC Extra gear monitoring plugin for Nagios
# 05.02.07 Paul Venezia
#
# v0.0.1
#
#
use Net::SNMP;
@FracKenA
FracKenA / movie_list.txt
Created April 8, 2018 19:52
Movie List
The 5th Wave
Alien: Covenant
Allied
The Amazing Spider-Man
The Amazing Spider-Man 2
American Assassin
American Made
Angry Birds
Argo
Arrival (2016)