This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#command line | |
ansible-playbook playbook.yml -i inventory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM haproxy:1.5 | |
ENV PAYMENTS_URL test.com | |
COPY src/haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg | |
CMD sh -c "haproxy -f /usr/local/etc/haproxy/haproxy.cfg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg-buildpackage: source package mylittledeb | |
dpkg-buildpackage: source version 0.0.1-1 | |
dpkg-buildpackage: source distribution trusty | |
dpkg-buildpackage: source changed by root <root@unknown> | |
dpkg-buildpackage: host architecture amd64 | |
dpkg-source --before-build mylittledeb | |
debian/rules clean | |
dh clean | |
dh_testdir | |
dh_auto_clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright (c) 2014, Intel Corporation | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Basic: HOSTNAME=prom.something.com ./promql.sh '(time() - puppet_time{type="last_run"}) > 4801' | |
# Getting something useful out from this looks like this. Best used in combination with JQ. | |
# Complete: HOSTNAME=prom.something.com ./promql.sh '(time() - puppet_time{type="last_run"}) > 4801' | jq '.data.result[] | .metric.host' | |
curl \ | |
-X GET \ | |
-G \ | |
-s \ | |
--data-urlencode "query=$1" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Fetch root credentials for ipmi login to server | |
require 'collins_client' | |
require 'yaml' | |
@collins_config = Dir.home + "/.collins.yaml" | |
@hostname = ARGV.shift | |
@cmd = ARGV.shift | |
@user_num = ARGV.shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "success:ok", | |
"data": { | |
"ASSET": { | |
"ID": 9, | |
"TAG": "tumblrtag304", | |
"STATE": { | |
"ID": 1, | |
"STATUS": null, | |
"NAME": "NEW", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BINS_DIR = bins | |
VERSION = $(shell git describe --tag --dirty) | |
SRC = $(shell find . -type f -name '*.go') | |
# Set the GOOS and GOARCH here in GOOS_GOARCH format | |
PLATFORMS = \ | |
linux_amd64 | |
BINS_OUT = $(patsubst %, $(BINS_DIR)/$(VERSION)/jsonnet-%, $(PLATFORMS)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Script to configure the fan controller on the XG-7100. | |
# The EMC2104 is accessed via the smbus on the ICH. | |
# | |
# | |
# | |
# Load required modules if they are not loaded | |
kldstat | grep " ichsmb.ko" > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/gob" | |
"fmt" | |
"github.com/blevesearch/bleve" | |
"github.com/blevesearch/bleve/document" | |
"github.com/blevesearch/bleve/index/scorch" |