Skip to content

Instantly share code, notes, and snippets.

View bretterer's full-sized avatar

Brian Retterer bretterer

View GitHub Profile
@bretterer
bretterer / macSetup.sh
Last active October 4, 2021 15:30 — forked from bradp/setup.sh
New Mac Setup Script
echo "Setting Up your Mac..."
if [ ! -f $HOME/.ssh/id_rsa.pub ]; then
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
fi
@bretterer
bretterer / Start GCode
Created May 13, 2020 21:13
The gcode used at the start of all my prints
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder
G28 ; Home all axes
M420 S1 ; Use the stored mesh
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
@bretterer
bretterer / Bootstrap 3 Breakpoints
Last active January 27, 2019 00:32
Bootstrap 3 Breakpoints
/* Tiny Devices: Phones */
@media (max-width: 767px) {
}
/* Small Devices: Tablets */
@media (min-width: 768px) and (max-width: 992px) {
}
/* Medium Devices: Desktops */
@bretterer
bretterer / crash_report.txt
Last active December 2, 2018 03:12
Stoneblock: Botania Crash
---- Minecraft Crash Report ----
WARNING: coremods are present:
ComfortsCoreLoadingPlugin (comforts-1.12.2-1.3.1.jar)
CXLibraryCore (cxlibrary-1.12.1-1.6.1.jar)
LoadingPlugin (RandomThings-MC1.12.2-4.2.4.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.43.jar)
ForgelinPlugin (Forgelin-1.8.0.jar)
IELoadingPlugin (ImmersiveEngineering-core-0.12-86.jar)
Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.3-1.12.2.jar)
@bretterer
bretterer / lctv-bot-help.md
Created May 14, 2016 17:57
LCTV Bot Gist

Core Commands

!unban

Unbans the specified user.

!ban

Bans the specified user.

!addcommand {command} {output}

Adds a new command to the bot (Mod only).

@bretterer
bretterer / Toggle Button Class
Last active March 11, 2016 09:51
Toggle twitter bootstrap button classes.
$('.btn-group > .btn, .btn[data-toggle="button"]').click(function() {
var buttonClasses = ['btn-primary','btn-danger','btn-warning','btn-success','btn-info','btn-inverse'];
var $this = $(this);
if ($(this).attr('class-toggle') != undefined && !$(this).hasClass('disabled')) {
var btnGroup = $this.parent('.btn-group');
var btnToggleClass = $this.attr('class-toggle');
var btnCurrentClass = $this.hasAnyClass(buttonClasses);
### Keybase proof
I hereby claim:
* I am bretterer on github.
* I am bretterer (https://keybase.io/bretterer) on keybase.
* I have a public key ASAUt2Ec3WBtxo8d_RVvwO_-9cAESY51T-FDabDiEM7xqAo
To claim this, I am signing this object:
<?php
namespace Stormpath\Resource;
/*
* Copyright 2013 Stormpath, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@bretterer
bretterer / Disqus Wordpress Callbacks
Last active December 17, 2015 03:09
Disqus Wordpress callbacks
// In a js file
disqus_config = function() {
this.callbacks.afterRender.push(function() { /* your code */ });
this.callbacks.onNewComment.push(function() { /* your code */ });
/* Available callbacks are afterRender, onInit, onNewComment, onPaginate, onReady, preData, preInit, preReset */
}
example
Place the following right before the disqus element javascript
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:16px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script>