Skip to content

Instantly share code, notes, and snippets.

diff --git a/Formula/ogre1.9.rb b/Formula/ogre1.9.rb
index fabd3dc..8a1b437 100644
--- a/Formula/ogre1.9.rb
+++ b/Formula/ogre1.9.rb
@@ -97,6 +97,7 @@ class Ogre19 < Formula
def install
cmake_args = [
+ "-DCMAKE_CXX_STANDARD='11'",
"-DCMAKE_OSX_ARCHITECTURES='x86_64'",
@bradneuman
bradneuman / notify_refund.sh
Created July 3, 2022 01:42
refund notifier for rocketpool using pushover
MESSAGE_TITLE="Rocketpool Refund Available!"
source ./keys.sh
REFUND=`rocketpool minipool status | grep -A 1 "refund"`
RESULT=$?
if [[ "$1" = "--test" && $RESULT -ne 0 ]];
then
RESULT=0
@bradneuman
bradneuman / external_keyboard_chrone.json
Created April 11, 2022 01:12
Karabiner elements config for chrome
{
"title": "Ctrl based shortcuts in chrome with external keyboard",
"rules": [
{
"description": "Switch ctrl to command for hotkeys in Chrome",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "t",
@bradneuman
bradneuman / ninja-throttle.py
Last active November 8, 2017 18:37
Simple script to throttle ninja build output
#!/usr/bin/env python3
## simple tool to throttle the output from ninja. This is needed for compilation within a compilation buffer
## in emacs because emacs chokes with lots of long-line output. Usage of this script is:
## $ build | ninja-throttle.py
## where "build" is a build command that outputs status messages of the form:
## [93/174] Building CXX object ...
## lines matching that format will be throttles, all other lines will be printed
import sys
@bradneuman
bradneuman / prepare-commit-msg
Last active February 17, 2016 19:20
A git hook to automatically populate submodule summary information
#!/bin/sh
# prepare-commit-msg hook that puts the relevant `submodule summary` info in the commit log for you
# automaticially. Put it in .git/hooks/prepare-commit-msg (and make sure it is executable)
TEMP=`mktemp /tmp/commit.XXXX`
echo "\n\n" > $TEMP
# remove the * at the beginning of the line so github doesn't think we are making a list
@bradneuman
bradneuman / find-in-project.el
Created July 3, 2014 05:07
Simple function to find files in a project from a manually specified list of projects
;; a list of root directories for projects. used for find-greping. Put
;; your root directories here. No need to start at root
(setq my-project-list '("/partial/path/to/directory"
"/another/directory/path"
"/one_more_path/"))
(defun match-list (string list)
"returns the entry in list which contains the string"
(when list
(let ((matchIndex (string-match (car list) string)))