Skip to content

Instantly share code, notes, and snippets.

View briancline's full-sized avatar

Brian Cline briancline

  • SoftLayer / IBM Cloud
  • Dallas, Texas
View GitHub Profile
@briancline
briancline / holler.sh
Last active August 29, 2015 14:07
stuff to add to dotfiles
# git-retag
# courtesy gist:gumob/7064287
grt() {
if [ -n "$1" ]; then
git tag -d $1
git push origin :refs/tags/$1
git tag $1
git push --tags origin
else
echo "Please specify a name of tag."
@briancline
briancline / hackjob.diff
Created November 17, 2014 16:49
Force Swift 1.12.0 to behave with self-signed SSL and Other™ SSL issues
diff --git a/test/functional/swift_testing.py b/test/functional/swift_testing.py
index 50abc8e..6903b56 100644
--- a/test/functional/swift_testing.py
+++ b/test/functional/swift_testing.py
@@ -141,7 +141,8 @@ def retry(func, *args, **kwargs):
snet=False,
tenant_name=swift_test_tenant[use_account],
auth_version=swift_test_auth_version,
- os_options={})
+ os_options={},
@briancline
briancline / ubuntu-14.04.1.json
Created November 25, 2014 20:58
Packer template for Ubuntu Server 14.04.1
{
"variables": {
"template": "unknown"
},
"builders": [
{
"type": "qemu",
"iso_url": "http://mirror.utexas.edu/ubuntu-iso/CDs-Ubuntu/14.04.1/ubuntu-14.04.1-server-amd64.iso",
"iso_checksum": "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2",
@briancline
briancline / test_module.py
Last active August 29, 2015 14:23
Unit test to import all Python package modules
import pkgutil
import unittest
import mypkg
class TestModule(unittest.TestCase):
def setUp(self):
pass
{
"always_show_minimap_viewport": true,
"anaconda_gutter_theme": "hard",
"animation_enabled": false,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
@briancline
briancline / gist:1273117
Created October 9, 2011 00:42
Proof-of concept: simple polling of messages attached to video positions
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>mur</title>
<script type="text/javascript" src="/static/js/jquery-1.6.wtfever.696969.js"></script>
<script type="text/javascript">
var Anno = {
secsToLookahead: 10,
@briancline
briancline / shared_folder_centos_virtualbox.txt
Created August 14, 2012 15:48 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot
@briancline
briancline / cookie.scala
Created October 11, 2012 18:46
Munch cave concurrency with glitter
root@file02.dfw1:~# riak-admin cluster plan
Attempting to restart script through sudo -H -u riak
RPC to 'riak@10.0.0.8' failed: {'EXIT',
{{nodedown,'riak@127.0.0.1'},
{gen_server,call,
[{riak_core_claimant,'riak@127.0.0.1'},
plan,infinity]}}}
(require '[clj-http.client :as http])
(require '[riemann.common :as common])
(defn remote-post [event]
(http/post "http://example.com/post_event" {:body (common/event-to-json event)
:content-type :json
:accept :json }))
(logging/init :file "riemann.log")