This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# ^^^ 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# A better example of how tosend email via Sendgrid with curl | |
TO='[email protected]' | |
TONAME='Some Name' | |
SUBJECT='Email Subject' | |
FROM='[email protected]' | |
TEXT='Some message' | |
USER='user' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |