- no upfront installation/agents on remote/slave machines - ssh should be enough
- application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
- configuration templating
- environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
- deployment process run from Jenkins
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
docker rm -f $(docker ps -qa) | |
docker volume rm $(docker volume ls -q) | |
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke" | |
for dir in $cleanupdirs; do | |
echo "Removing $dir" | |
rm -rf $dir | |
done |
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
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd -g /data/docker \ | |
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \ | |
--default-runtime=docker-runc \ | |
--exec-opt native.cgroupdriver=systemd \ | |
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current |
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 little piece of magic provides some nice type inference info to the compiler | |
* | |
* courtesy of [StackOverflow](http://stackoverflow.com/a/33420043) | |
*/ | |
inline fun <reified T> fromJSON(json: String): T = gson.fromJson<T>(json, object : TypeToken<T>() {}.type) | |
//usable as follows, and type inference doesn't even break a sweat | |
val project: Project = fromJSON(request.body()) | |
val client = fromJSON<Client>(request.body()) |
These C# implementations of approximate magnitude with no square roots are actually slower than calling a native implementation in Unity, but if this were implemented intelligently in C there's a good chance they would be faster. In any case, they're here because it was a pain to get the magic numbers.
Accurate to within 4.5%.
public static float MagnitudeFast (this Vector2 self)
{
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
logE = math.log(2) | |
logB = (value) -> | |
if value == 0 do return 1 | |
return math.floor(math.log(value) / logE) | |
-- implementation of a binary minimum heap | |
-- use a function closure for instance creation | |
-- instead of tables | |
-- this yields us truly private variables and an | |
-- overall cleaner package |
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
void function() {//closure | |
var global = this | |
, _initKeyboardEvent_type = (function( e ) { | |
try { | |
e.initKeyboardEvent( | |
"keyup" // in DOMString typeArg | |
, false // in boolean canBubbleArg | |
, false // in boolean cancelableArg | |
, global // in views::AbstractView viewArg |
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
// watsonkitty playground | |
import Cocoa | |
protocol CapnSwiftyReader { | |
} | |
protocol CapnSwiftyBuilder { |
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
@Mock | |
EchoUserProvider echoUserProviderMock; | |
@Override | |
protected Application configure() { | |
setup(); | |
ResourceConfig resourceConfig = new ResourceConfig( | |
EchoController.class, | |
EchoUserProvider.class); |
NewerOlder