Skip to content

Instantly share code, notes, and snippets.

🍌
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: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'
View 2.11 Deprecations
[INFO] Compiling 73 Scala sources and 1 Java source to /home/dkowis/gitwork/repose/api-checker/core/2.11/target/classes...
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/components/checker/Config.scala:35: method tpe in trait AnnotationApi is deprecated: Use `tree.tpe` instead
[WARNING] universe.typeOf[Config].members.filter(i => i.annotations.map(a => a.tpe).contains(affectsCheckerType))
[WARNING] ^
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/components/checker/util/TransformPool.scala:31: class LinkedList in package mutable is deprecated: Low-level linked lists are deprecated due to idiosyncrasies in interface and incomplete features.
[WARNING] private val activeGauges = new LinkedList[Gauge[Int]]
[WARNING] ^
[WARNING] /home/dkowis/gitwork/repose/api-checker/core/src/main/scala/com/rackspace/com/papi/com
View JMX log output for scala 2.11
Running com.rackspace.com.papi.components.checker.handler.InstrumentedHandlerSuite
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor registerMBean
FINER: ObjectName = JMImplementation:type=MBeanServerDelegate
Aug 22, 2015 5:05:03 PM com.sun.jmx.mbeanserver.Repository addMBean
FINER: name = JMImplementation:type=MBeanServerDelegate
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor addObject
FINER: Send create notification of object JMImplementation:type=MBeanServerDelegate
Aug 22, 2015 5:05:03 PM com.sun.jmx.interceptor.DefaultMBeanServerInterceptor sendNotification
FINER: JMX.mbean.registered JMImplementation:type=MBeanServerDelegate
Aug 22, 2015 5:05:03 PM com.sun.jmx.mbeanserver.Repository contains
@dkowis
dkowis / GroovyPlugin.scala
Created Aug 21, 2015
Just some hax to figure out how to get definedTests from groovy into SBT
View GroovyPlugin.scala
package org.softnetwork.sbt.plugins
import sbt._
import Keys._
import java.io.File
import Path.relativeTo
import xsbti.api.Definition
object GroovyPlugin extends Plugin {
View mvn.sh
# Construct a significantly better colorized maven stuff
# Formatting constants
BOLD=`tput bold`
UNDERLINE_ON=`tput smul`
UNDERLINE_OFF=`tput rmul`
TEXT_BLACK=`tput setaf 0`
TEXT_RED=`tput setaf 1`
TEXT_GREEN=`tput setaf 2`
TEXT_YELLOW=`tput setaf 3`
TEXT_BLUE=`tput setaf 4`
You can’t perform that action at this time.