Skip to content

Instantly share code, notes, and snippets.

Avatar
🍌
I AM A BANANA

David Kowis dkowis

🍌
I AM A BANANA
View GitHub Profile
@dkowis
dkowis / gradlew.fish
Last active Jun 25, 2018
gradlew search function for fish shell
View gradlew.fish
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 Aug 1, 2017
Learning some OpenComputers API
View testInventory.lua
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
Trying to produce a gems-in-a-jar for compass
View build.gradle
//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 Jan 6, 2016
SourceMage Server Logs for the Funs
View gist:6e027550ac2fb258fbc7
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
View gist:7103471
uid nslcd
gid nslcd
uri ldaps://ldapserver
ldap_version 3
base dc=shlrm,dc=org
@dkowis
dkowis / gist:5745901
Created Jun 10, 2013
gherkin build failure :(
View gist:5745901
$ 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
View gist:5068928
# 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 ()
View gist:f011330b077d7dd360b2
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'
@dkowis
dkowis / gist:4111998
Created Nov 19, 2012
Build log for failed SBT-idea stuff
View gist:4111998
[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()