Skip to content

Instantly share code, notes, and snippets.

View metaxis's full-sized avatar

Aaron Peterson metaxis

View GitHub Profile
@jtimberman
jtimberman / omnibus.erb
Created December 6, 2011 20:15
Omnibus Bootstrap Template, latest version I use.
# Refer to CHEF-2815. http://tickets.opscode.com/browse/CHEF-2815
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
exists() {
if command -v $1 &>/dev/null
then
return 0
else
@wdkrnls
wdkrnls / org-syntax-cheatsheet.org
Created March 7, 2012 03:54
Org-mode Syntax Cheat sheet

Markup Cheat sheet for Org-mode

Heading 1

Heading 2: Set a deadline and a schedule

[66%] Heading 3: a list with checkboxes

  1. [X] task 1
  2. [X] task 2
  3. [ ] task 3
@andreacampi
andreacampi / node_list_all.rb
Created July 20, 2012 06:27
knife node list all
require 'chef/knife'
module Example
class Knife
class NodeListAll < Chef::Knife::NodeList
deps do
require 'chef/knife/node_list'
end
@statico
statico / gist:3172711
Created July 24, 2012 21:15
How to use a PS3 controller on Mac OS X 10.7 (Lion)

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@danielsdeleo
danielsdeleo / gist:3252723
Created August 3, 2012 23:38
Sample output from the knife key check plugin
# See also: https://github.com/danielsdeleo/knife-plugins/blob/master/key_check.rb
ddeleo@boltzmann chef-oss-dev > knife key check chef-oss-dev-validator .chef/kallistec.pem
ERROR: Mismatch:
ERROR: /Users/ddeleo/opscode-ops/chef-oss-dev/.chef/kallistec.pem is not a valid key for client chef-oss-dev-validator
Public key extracted from private key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6tIhFprz5efiFF0zogxB
KBkn72n6x9aGbedzPnEG+ZiObyzrH5MeO7aYv51HfLBEozSMxiJxnADCN4Bus0Sr
8UHYZAKFLCkx67rpZHvl6xggEYHDSmMtUNNBHOQRIIbYi79JZeQTcKQNSzfyltiU
@XVilka
XVilka / TrueColour.md
Last active October 9, 2025 17:55
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@dstahlke
dstahlke / bk393.cc
Created January 10, 2016 22:06
Linux driver for B&K Precision 393 multimeter
// Linux driver for B&K Precision 393 multimeter.
// g++ -Wall -Wextra -std=c++11 -o bk393 bk393.cc
// It currently points to /dev/ttyUSB0, but I'd recommend adding a udev rule to get a consistent device name:
// SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A60198LN", MODE="0664", GROUP="mygroup", SYMLINK+="bk393"
#include <boost/utility.hpp>
#include <array>
#include <iomanip>
#include <cstdio>
$ cat no-aa-option.patch
diff -ru pdns-recursor-4.2.0.orig/pdns_recursor.cc pdns-recursor-4.2.0/pdns_recursor.cc
--- pdns-recursor-4.2.0.orig/pdns_recursor.cc 2019-07-15 02:32:59.000000000 -0600
+++ pdns-recursor-4.2.0/pdns_recursor.cc 2019-08-01 07:30:57.003001804 -0600
@@ -3752,6 +3752,7 @@
SyncRes::s_maxtotusec=1000*::arg().asNum("max-total-msec");
SyncRes::s_maxdepth=::arg().asNum("max-recursion-depth");
SyncRes::s_rootNXTrust = ::arg().mustDo( "root-nx-trust");
+ SyncRes::s_relaxAA = ::arg().mustDo("relax-aa");
if(SyncRes::s_serverID.empty()) {