This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this with jboss-cli to deplyo the given module: | |
module add --name=com.mydomain.placeholder --resources=placeholder\target\placeholder-6.6.6-SNAPSHOT.jar | |
/subsystem=ee:write-attribute(name="global-modules",value=[{"name" => "com.mydomain.placeholder","slot" => "main"}]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
# colorization | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
def red | |
colorize(31) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
// https://www.yammer.com/api/v1/messages.json | |
var options = { | |
host: 'www.yammer.com', | |
path: '/api/v1/messages.json?access_token=YOUR-OAUTH2-TOKEN', | |
headers: { "Authorization": "Bearer YOUR-OAUTH2-TOKEN" } | |
} | |
var globalRequestId = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
puppet node_aws bootstrap \ | |
--debug \ | |
--image ami-c1aaabb5 \ | |
--keyname 'puppet_provisioner' \ | |
--type 'm1.small' \ | |
--region eu-west-1 \ | |
--security-group puppet-clients \ | |
--login ubuntu \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is small implementation of a tiny MVC-oriented framework inspired by the design | |
* of the Play Framework 2.0; it is meant as an educational exercise to get more familiar with | |
* the concepts of partial functions, function composition and generic types in Scala | |
* | |
* How to run: | |
* scalac framework.scala | |
* scala App | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
class A2 extends A | |
class B | |
trait M[X] | |
// | |
// Upper Type Bound | |
// | |
def upperTypeBound[AA <: A](x: AA): A = x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Handler | |
class Handler1 extends Handler | |
class Handler2 extends Handler | |
trait HandlerConfiguration { | |
val handler1: Handler | |
val handler2: Handler | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = require('events'), | |
util = require('util'); | |
EventGenerator = function() { | |
events.EventEmitter.call(this); | |
this.read = function() { | |
var data = "this is new data"; | |
this.emit("data", data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global color.branch auto | |
git config --global color.diff auto | |
git config --global color.status auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* List of commits not pushed to origin yet: | |
git log origin/master..master |