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 / 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).

### 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 / lctvbot.js
Last active December 8, 2015 21:45
Bot for Livecoding TV (based on https://github.com/Cristy94/livecoding-chat-bot)
var container = $('.message-pane');
var messageQueue = [];
var messageCount;
var greeted = [];
var textarea = $('#message-textarea');
var submit = $('input[type="submit"]');
var myUser = $('.main-navigation .user-name').text().trim().toUpperCase();
var gameStopped = true;
var botWritingCount = 0;
@bretterer
bretterer / buildApiDocs.sh
Last active October 18, 2015 23:58
Build API Docs for Stormpath
#!/bin/bash
echo "Building API Documentation"
curl -O http://get.sensiolabs.org/sami.phar
composer global require sami/sami
wget https://gist.githubusercontent.com/bretterer/7a6268a1ca36ba6401d2/raw/buildApiDocs.php
php sami.phar render buildApiDocs.php
ls -lah
@bretterer
bretterer / buildApiDocs.php
Last active October 18, 2015 21:40
Build Stormpath Api Docs
<?php
return new Sami($iterator, array(
'theme' => 'symfony',
'title' => 'Symfony2 API',
'build_dir' => __DIR__.'/build',
'cache_dir' => __DIR__.'/cache',
'remote_repository' => new GitHubRemoteRepository('bretterer/stormpath-sdk-php', '/'),
'default_opened_level' => 2,
));
@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 */