Skip to content

Instantly share code, notes, and snippets.

View dkowis's full-sized avatar
☢️

David Kowis dkowis

☢️
View GitHub Profile
@dkowis
dkowis / Fedora-15-ruby-1.8.7-p352.patch
Created July 14, 2011 19:01
Fedora 15 ruby-1.8.7 patch
--- ext/dl/depend 2007-02-12 17:01:19.000000000 -0600
+++ ext/dl/depend.fixed 2011-07-14 13:56:15.374355631 -0500
@@ -32,15 +32,15 @@
call.func: $(srcdir)/mkcall.rb ./dlconfig.rb
@echo "Generating call.func"
- @$(RUBY) $(srcdir)/mkcall.rb > $@
+ @$(RUBY) $(srcdir)/mkcall.rb | tee $@
callback.func: $(srcdir)/mkcallback.rb ./dlconfig.rb
@dkowis
dkowis / gist:4111998
Created November 19, 2012 17:12
Build log for failed SBT-idea stuff
[info] Loading global plugins from /home/dkowis/.sbt/plugins
[info] Loading project definition from /home/dkowis/gitwork/personal/play/hello/project
[error] java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin$.ideaSettings()Lscala/collection/Seq;
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? l
[info] Loading global plugins from /home/dkowis/.sbt/plugins
[debug] Running task... Cancelable: false, max worker threads: 4, check cycles: false
[debug]
[debug] Initial source changes:
[debug] oved:Set()
@dkowis
dkowis / gist:5068928
Created March 2, 2013 00:04
Handy Git stuff
# git shell stuff of awesomeness
# do cool color things with the shell line
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
@dkowis
dkowis / gist:5745901
Created June 10, 2013 00:49
gherkin build failure :(
$ GHERKIN_JS_NATIVE=true GHERKIN_JS=true bundle exec rake
mkdir -p /home/dkowis/gitwork/cucumber/cucumber.github.com/api/gherkin/2.12.0/ruby
/home/dkowis/gitwork/cucumber/gherkin/tasks/ragel_task.rb:25: Use RbConfig instead of obsolete and deprecated Config.
ragel -E /home/dkowis/gitwork/cucumber/gherkin/tasks/../ragel/i18n/zh_cn.js.rl -o js/lib/gherkin/lexer/zh_cn.js
sed -i "s|/home/dkowis/gitwork/cucumber/gherkin/tasks/../||" js/lib/gherkin/lexer/zh_cn.js
sed -i 's/ESCAPED_TRIPLE_QUOTE/\\\\\\"\\\\\\"\\\\\\"/' js/lib/gherkin/lexer/zh_cn.js
sed -i 's/const/var/' js/lib/gherkin/lexer/zh_cn.js
node /home/dkowis/gitwork/cucumber/gherkin/tasks/../js/node_modules/uglify-js/bin/uglifyjs js/lib/gherkin/lexer/zh_cn.js > js/lib/gherkin/lexer/zh_cn.min.js
/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:271
@dkowis
dkowis / gist:7103471
Created October 22, 2013 16:09
nslcd.conf
uid nslcd
gid nslcd
uri ldaps://ldapserver
ldap_version 3
base dc=shlrm,dc=org
@dkowis
dkowis / Dockerfile
Created March 20, 2014 19:57
Dockerfile for jenkins JNLP slave
# base image
FROM centos
# slavename variable
ENV SLAVENAME derpSlave
RUN yum -y install java-1.7.0-openjdk-devel java-1.7.0-openjdk git rpm-build
RUN adduser -d /opt/jenkins jenkins
# install maven
package com.rackspace.papi.components.cnorm
import com.rackspace.papi.commons.util.servlet.http.ReadableHttpServletResponse
import com.rackspace.papi.components.normalization.config.ContentNormalizationConfig
import com.rackspace.papi.components.normalization.config.MediaType
import com.rackspace.papi.components.normalization.config.MediaTypeList
import com.rackspace.papi.filter.logic.FilterDirector
import spock.lang.Specification
import javax.servlet.http.HttpServletRequest
@dkowis
dkowis / gist:358b0da54f21e4ef1361
Created May 15, 2014 01:39
Just the feature file output
$ rake features
/home/dkowis/.rvm/rubies/ruby-2.1.2/bin/ruby -S bundle exec cucumber features --format pretty
Feature: Feed candy to elephants
A Little Elephant and his friends from the Zoo of Lviv like candies very much.
There are N elephants in the Zoo. The elephant with number K (1 ≤ K ≤ N) will be happy if he receives at least A[K]
candies. There are C candies in all in the Zoo.
The Zoo staff is interested in knowing whether it is possible to make all the N elephants happy by giving each
elephant at least as many candies as he wants, that is, the Kth elephant should receive at least A[K] candies. Each
[snapshots]
name=Snapshots
baseurl=http://protorepo.openrepose.org/nexus/content/repositories/snapshots
enabled=1
protect=0
gpgcheck=0
metadata_expire=30s
autorefresh=1
type=rpm-md
@dkowis
dkowis / gist:d74e9527ebf77ce14e0d
Created May 29, 2014 20:18
git stuff in bashrc
# git shell stuff of awesomeness
# do cool color things with the shell line
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if /usr/bin/git rev-parse --git-dir >/dev/null 2>&1