Skip to content

Instantly share code, notes, and snippets.

View macropin's full-sized avatar

Andrew Cutler macropin

View GitHub Profile
#!/usr/bin/env bash
# Example of how to rename repos that are terraform managed
set -e
REPO='repo1 repo2 repo3'
TOKEN=xxxxxxxxxxxxx # Github Personal Access Token
@macropin
macropin / label.scad
Created August 5, 2017 00:02
OpenSCAD Cursive Font Label Generator
// Example: OpenSCAD Cursive Font Generator with offset first letter
// https://www.fontsquirrel.com/fonts/great-vibes
module label(fname, lname, space=1, baseline_shift=0) {
$fn=256;
font_big = 30;
font_small = 30;
boldness = 50;
// rotate if you want to flip the print
@macropin
macropin / pedantically_commented_playbook.yml
Created May 9, 2016 04:33 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@macropin
macropin / Configuration.h
Last active April 28, 2016 08:34
Marlin firmware configuration for a602 (Migbot) w/ Mk6 metal extruder
// Marlin firmware configuration for a602 (Mingbot) w/ Mk6 metal extruder
// https://gist.github.com/macropin/8939d276f863acf74daa4874e5bbb0be
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include "boards.h"
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
@macropin
macropin / docker-maintenance.sh
Last active January 4, 2021 22:56
Docker Maintenance Script
#!/usr/bin/env bash
#
# Docker Cleanup / Update Script
#
# Usage Example:
# curl --silent https://gist.githubusercontent.com/macropin/3d06cd315a07c9d8530f/raw | bash -s rm-dangling
#
set -e
@macropin
macropin / sendgrid.sh
Created March 9, 2016 05:55
Sendgrid via CLI / curl
#!/usr/bin/env bash
# A better example of how tosend email via Sendgrid with curl
TO='to@example.com'
TONAME='Some Name'
SUBJECT='Email Subject'
FROM='to@example.com'
TEXT='Some message'
USER='user'
@macropin
macropin / named.conf.local
Created August 7, 2015 00:31
RNDC Bind Debian
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
include "/etc/bind/rndc.conf";
@macropin
macropin / my.cnf
Last active December 16, 2020 06:16
MariaDB my.cnf for 12GB InnoDB host (READ-COMMITTED)
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
back_log = 50
max_connections = 100
max_connect_errors = 10
table_open_cache = 2048
max_allowed_packet = 16M
binlog_cache_size = 1M
max_heap_table_size = 2G