Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
Harnessing GenAI 💜

Ryan MacLean ryanmaclean

Harnessing GenAI 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / conf.yaml
Created September 2, 2022 07:02
IIS Datadog Configuration
## All options defined here are available to all instances.
#
init_config:
## @param use_localized_counters - boolean - optional - default: false
## Whether performance object and counter names should refer to their
## locale-specific versions rather than their English name.
#
# use_localized_counters: false
@ryanmaclean
ryanmaclean / gtd-windows.md
Last active September 2, 2022 06:50
Getting Things Done on Windows

Open a Powershell Admin shell by pressing Winkey+R, type “powershell” and hit ctrl+shift+enter to run as admin.

Run the follwing to install Chocolatey:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Then install some packages you'll want, using -y to confirm:

choco install -y google-chrome-x64 vscode conemu git github-desktp curl far powershell-core
@ryanmaclean
ryanmaclean / install_el_capitan_vm.md
Created May 31, 2022 17:35
Install El Capitan (macOS 10.11) VM - fix OSX could not be installed on you computer. No packages were eligible for install.

Error message when attempting install:

OSX could not be installed on you computer. No packages were eligible for install.

The problem - the certificates in the installer are out of date. In order to address this, we can change the date and time on the command line, but we will need to disable networking first.

In your virtualisation manager, disable the network interface connected to your VM.

Under "Utilities" in the top menu bar, choose "Command Line".

@ryanmaclean
ryanmaclean / install_mc_adm4.sh
Created January 10, 2022 03:06
Install Midnight Commander on Asus Lockerstor ADM 4.0
#!/usr/bin/env sh
# Version of rpm shipped with ADM 4 doesn't do `rpm -ivh`
# Hacky, but working for now
# All packages from RPM find, el7 x86-64 versions, latest
# e.g.: https://www.rpmfind.net/linux/rpm2html/search.php?query=mc&submit=Search+...
# `wget https://www.rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/mc-4.8.7-11.el7.x86_64.rpm`
rpm -i gpm-libs-1.20.7-6.el7.x86_64.rpm
rpm -i libssh2-1.8.0-4.el7.x86_64.rpm
@ryanmaclean
ryanmaclean / datadog_on_nas.md
Last active May 7, 2025 20:59
Run Datadog As Container to Monitor NAS

Datadog on NASes

Monitoring your Synology or Asus ADM 4 NAS

Summary

Just a walkthrough of the containerized way to get NAS stats to Datadog.

The tl;dr is the container can monitor the host, processes, grab logs and SNMP. If you're using your NAS as a quick dev box you could also monitor other containers.

Synology DSM 6.X

@ryanmaclean
ryanmaclean / rocky-docker.sh
Created July 13, 2021 00:18
Install Docker on Rocky Linux
#!/usr/bin/env bash
## Script to install docker-ce on Rocky Linux
## Run using `sudo rocky-docker.sh`
# Ensuring "GROUP" variable has not been set elsewhere
unset GROUP
echo "Removing podman and installing Docker CE"
dnf remove -y podman buildah
@ryanmaclean
ryanmaclean / macos_portico.json
Created May 28, 2021 06:59
Portico Mac Layout
{
"name": "Portico",
"vendorProductId": 1414201352,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GESC",
"KC_1",
"KC_2",
"KC_3",
@ryanmaclean
ryanmaclean / whiptailmenu.bash
Created May 7, 2021 02:09 — forked from wafsek/whiptailmenu.bash
A Example of whiptail menu with functions
#! /bin/bash
# This program is just an example of how to make a whiptail menu and some basic commands.
# Copyright (C) 2016 Baljit Singh Sarai
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License.
@ryanmaclean
ryanmaclean / chia_launch.ps1
Created April 22, 2021 16:34
Chia Powershell Launch Script K32 10 Threads Separate Temp and Farm Drives
cd $env:LOCALAPPDATA\chia-blockchain\app-1.1.0\resources\app.asar.unpacked\daemon
chia plots create -k 32 -n 10 -b 8000 -r 8 -t T:\ -d F:\
PAUSE
@ryanmaclean
ryanmaclean / turnkey_ct_download.sh
Created April 11, 2021 04:41
Download All Turnkey Containers for Proxmox
#!/usr/bin/env bash
# Used for lab - download all the Turnkey containers locally
# If you want the system containers, system is the section you want!
STORAGE="local" # Find here: https://proxmox:8006/#v1:0:=type%2Fstorage:4:=jsconsole::::7:=consolejs:
SECTION="turnkeylinux" # Can also use "system"
# Find all containers for the section and download them to defined storage
# The awk statement here grabs the second column (container name) from the pveadm