Skip to content

Instantly share code, notes, and snippets.

View codydiehl's full-sized avatar
:octocat:
ᓚᘏᗢᛟ ᛬🐧᛬ [ 🧙🏻‍♂️ᛗ₿ᛤᛒ²⟠ᛞ ] 🚀🌙 ᛬ ⛧ॐ ᛬ 🧠💀

Cody Diehl codydiehl

:octocat:
ᓚᘏᗢᛟ ᛬🐧᛬ [ 🧙🏻‍♂️ᛗ₿ᛤᛒ²⟠ᛞ ] 🚀🌙 ᛬ ⛧ॐ ᛬ 🧠💀
View GitHub Profile
@geerlingguy
geerlingguy / molecule-3-up.sh
Last active January 15, 2021 13:52
Molecule 3.0 update script with all the little changes I had to make.
#!/bin/bash
#
# Update things to be compatible with Molecule 3.0.
#
# This script is NOT idempotent, and should never be run again.
exit 1
export LINT_STRING="lint: |
set -e
yamllint .
@jalaziz
jalaziz / 70-ec2-nvme-devices.rules
Last active June 19, 2024 04:29
AWS EBS NVMe udev rules
# Copyright (C) 2006-2016 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
@chusiang
chusiang / teams-chat-post-for-workflows.sh
Last active July 17, 2024 11:14
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post-for-workflows.sh
# Modified: 2024-07-17 19:12 (UTC+08:00)
# Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
# - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
@ekristen
ekristen / check_chrony
Last active February 22, 2023 14:26
Chrony Nagios Plugin
#!/bin/bash
# Changes by Erik Kristensen
#
# Changelog (2018/01/31)
# - Improved debugging, just set DEBUG=true in shell env
# - Can set critical, warning and service name via ENV vars or command line opts
# - Improved if statements for checking warning, critical conditions
# - Errors unknown if `bc` command line tool is not installed
#
#!/bin/bash
#
# Create environement for development.
# docker script is inspired by https://github.com/jessfraz/dockerfiles
#
#
# 1 = docker name
@mark-church
mark-church / docker-ee-backup.sh
Last active February 21, 2019 05:31
A backup tool that backs up UCP and DTR
#!/bin/bash
# set environment variables
USERNAME="admin"
PASSWORD="fake-password"
UCP_URL="54.190.20.45"
UCP_VERSION="2.1.5"
DTR_URL="34.214.139.101"
DTR_VERSION="2.3.3"
@jmo
jmo / osx_bootstrap.sh
Last active May 12, 2024 19:13 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
# Change this
HOSTNAME="mini"
echo "Starting bootstrapping"
@tombennett
tombennett / osx_bootstrap.sh
Last active January 25, 2020 23:03 — forked from codeinthehole/osx_bootstrap.sh
OSX bootstrap
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - annotate (appstore)
@farmok
farmok / osx_bootstrap.sh
Last active January 25, 2020 23:02 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@kaz-yos
kaz-yos / .emacs
Last active January 13, 2021 23:26
.emacs file to run Spacemacs and regular Emacs side by side.
;;; dot_emacs.el --- -*- lexical-binding: t; -*-
;;; Select emacs config file directory depending on emacs being run
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; (package-initialize)