Skip to content

Instantly share code, notes, and snippets.

View beausmith's full-sized avatar
🍞
Probably baking something.

Beau Smith beausmith

🍞
Probably baking something.
View GitHub Profile
@timothyham
timothyham / ipv6guide.md
Last active July 25, 2024 18:49
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@julientaq
julientaq / gist:5cf14efea3dc96f7cfc4191642cf71cf
Created January 2, 2020 15:04
add one blank page if the total number of pages is odd in paged.js
<script>
class pairPage extends Paged.Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
}
afterRendered(pages) {
if (pages.length % 2 === 1) {
const pageNew = document.createElement("div");
@paulirish
paulirish / bling.js
Last active July 23, 2024 14:51
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
};
NodeList.prototype.__proto__ = Array.prototype;
@willpatera
willpatera / Google-Sheet-Form-Post.md
Last active May 3, 2024 12:57
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

@millermedeiros
millermedeiros / osx_setup.md
Last active June 26, 2024 22:08
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@scottkellum
scottkellum / _grid.sass
Created March 10, 2012 22:13
Singularity grid file
// MEASUREMENTS
// Grid types to work on -- column, scale
$grid-type: column !default
$scale-grid-direction: rtl !default
$scale-grid-style: incremental !default
$base-size: 16px !default
$line-height: 1.3em !default
@yano3
yano3 / gist:1378948
Created November 19, 2011 15:17
git commit --amend --reset-author
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
@paulmars
paulmars / template.rb
Last active September 25, 2015 17:57 — forked from martinisoft/tpl-cukeapp.rb
Rails, RSpec, Factory_Girl, SASS, Devise, Rails Admin
# rails new [appname] -JT -m https://gist.githubusercontent.com/paulmars/960988/raw/386eb14e20153ef4d55a6735d22748c6503b64f8/template.rb
# rails new APPNAME -JT -m /Users/paul/Development/template/template.rb
# sass
gem 'sass-rails'
gem 'bootstrap-sass', '3.2.0.2'
# image update
gem 'carrierwave', '0.10.0'
gem 'fog', '1.19.0'