Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
🍩
Running tf apply 💜

Ryan MacLean ryanmaclean

🍩
Running tf apply 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / gource-datadog.sh
Last active March 3, 2021 20:59 — forked from eribeiro/gource-ffmpeg.sh
Run Gource on a git repo and generate a 4k movie file movie.mp4
#!/usr/bin/env bash
# Requirements:
# brew install gource libav ffmpeg
# Feel free to play around with these to test!
FILENAME="output" # mp4 extension is currently hardcoded
TITLE="Datadog Agent" # This title goes bottom left
FRAMERATE="25" # Pick 25, 30, 60
RESOLUTION="3840x2160" # Examples: 1920x1080, 3840x2160, 1280×720
@ryanmaclean
ryanmaclean / Bash-or-PowerShell-with-Param.ps1
Last active August 14, 2023 05:50 — forked from chrisfcarroll/Bash-or-PowerShell-with-Param.ps1
Hold both bash and PowerShell code in a single script file and/or make a PowerShell.ps1 script executable on all platforms. For Windows, *nix, linux and macOS. See Comments below
` # \
# PowerShell Param statement : every line must end in #\ except the last line must with <#\
# And, you can't use backticks in this section #\
param( [ValidateSet('A','B')]$tabCompletionWorksHere, #\
[switch]$andHere #\
) <#\
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# Bash Start ------------------------------------------------------------
@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 / dashboard_via_api.py
Created October 4, 2022 03:48 — forked from QuentinFra/dashboard_via_api.py
How to create a custom dashboard with the Datadog API
from dogapi import dog_http_api as api
##### Parameters #####
# Credentials
api.api_key = 'my_api_key'
api.application_key = 'my_application_key'
# Dashboard information
title = "Test Quentin via API"