Skip to content

Instantly share code, notes, and snippets.

View yostinso's full-sized avatar

E.O. Stinson yostinso

  • Oakland, CA / Seattle, WA
View GitHub Profile
@yostinso
yostinso / gist:56020294e19fbfe59910f5ea29c962b7
Last active September 26, 2023 20:54
libvirt + glusterfs apparmor tweaks
For a disk XML that looks like this (in the VM definition):
<disk type='network' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source protocol='gluster' name='gv0/my-vm-image.qcow2'>
<host name='192.168.1.100'/>
</source>
<target dev='sda' bus='sata'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
@yostinso
yostinso / excel.vim
Last active October 19, 2022 00:07
Excel function syntax highlighting for vim
" Excel function syntax file
" Language: Excel functions
" Maintainer: E.O. Stinson
" Latest Revision: 17 October 2022
if exists("b:current_syntax")
finish
endif
let b:current_syntax = "excel_functions"
--- debian/rules 2012-07-12 11:55:28.000000000 -0700
+++ debian/rules 2013-09-23 16:20:57.885799032 -0700
@@ -84,6 +84,7 @@
--with-md5=/usr/include/openssl \
--with-mail \
--with-mail_ssl_module \
+ --with-proxy-protocol \
--add-module=$(MODULESDIR)/nginx-auth-pam \
--add-module=$(MODULESDIR)/nginx-echo \
--add-module=$(MODULESDIR)/nginx-upstream-fair \
@yostinso
yostinso / cucumber_external_resque_worker_generic.rb
Created September 7, 2011 23:44
Resque/Cucumber Testing Integration for generic installations
# This is adapted from this gist: https://gist.github.com/532100 by Square
# The main difference is that it doesn't require Bluth for WorkerBase
# It also calls prune_dead_workers on start so it doesn't hang on every other run
# It does not do anything special to avoid connecting to your main redis instance; you should be
# doing that elsewhere
class CucumberExternalResqueWorker
DEFAULT_STARTUP_TIMEOUT = 1.minute
COUNTER_KEY = "cucumber:counter"