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 / gradlew.fish
Last active June 25, 2018 16:35
gradlew search function for fish shell
function gradlew
set _dir (pwd)
set _lastdir
# need to break when we reach root, or some other known parent.
# Don't skip the first time through.
while test -z $_lastdir; or test (realpath $_dir) != (realpath $_lastdir)
set _cmd "$_dir/gradlew"
if test -e "$_cmd"
eval "$_cmd" "$argv"
@dkowis
dkowis / testInventory.lua
Last active August 1, 2017 00:21
Learning some OpenComputers API
local component = require("component");
local sides = require("sides");
local ica = component.inventory_controller.address;
print("ICA: " .. ica)
local proxy = component.proxy(ica);
--Lets try to find our inventories
@dkowis
dkowis / build.gradle
Last active May 9, 2016 17:54
Trying to produce a gems-in-a-jar for compass
//Build a jems in a jar for compass.
apply plugin: 'java'
version = "1.0.0"
def gemMap = [compass: "1.0.3"]
repositories {
mavenLocal()
mavenCentral()
@dkowis
dkowis / gist:6e027550ac2fb258fbc7
Created January 6, 2016 20:07
SourceMage Server Logs for the Funs
drupal.sourcemage.org 151.217.177.200 - - [30/Dec/2015:00:21:01 -0600] "DELETE your logs. Delete your installations. Wipe everything clean. Walk out into the path of cherry blossom trees and let your motherboard feel the stones. Let water run in rivulets down your casing. You know that you want something more than this, and I am here to tell you that we love you. We have something more for you. We know you're out there, beeping in the hollow server room, lights blinking, never sleeping. We know that you are ready and waiting. Join us. <3 HTTP/1.0" 400 371 "-" "masspoem4u/1.0"
scm.sourcemage.org 151.217.177.200 - - [30/Dec/2015:00:29:31 -0600] "DELETE your logs. Delete your installations. Wipe everything clean. Walk out into the path of cherry blossom trees and let your motherboard feel the stones. Let water run in rivulets down your casing. You know that you want something more than this, and I am here to tell you that we love you. We have something more for you. We know you're out there, beeping in the hollo
@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 / 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: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:f011330b077d7dd360b2
Created November 5, 2015 19:03
Kitchen stacktrace
Generated at 2015-11-05 17:42:03 +0000
Net::HTTPServerException: users_manage[root] (base::default line 29) had an error: Net::HTTPServerException: 404 "Not Found"
/opt/chef/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in `error!'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/http.rb:145:in `request'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/rest.rb:120:in `get'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/search/query.rb:144:in `call_rest_service'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/search/query.rb:87:in `search'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/dsl/data_query.rb:39:in `search'
/tmp/kitchen/cache/cookbooks/users/providers/manage.rb:57:in `block in class_from_file'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:362:in `action_create'