This file contains hidden or 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
#!/usr/bin/env python3 | |
# based on Copyright (c) 2016 Anki, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License in the file LICENSE.txt or at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head></head> | |
<body> | |
<!--Load three.js--> | |
<script src="http://threejs.org/build/three.min.js"></script> | |
<script> |
This file contains hidden or 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
#!/usr/bin/env groovy | |
import com.google.common.base.Splitter | |
import groovyx.gpars.GParsPool | |
import org.apache.commons.lang3.StringUtils | |
import static com.aestasit.infrastructure.ssh.DefaultSsh.* | |
@Grapes([ | |
@Grab(group = 'org.codehaus.gpars', module = 'gpars', version = '1.2.1'), | |
@Grab('com.aestasit.infrastructure.sshoogr:sshoogr:0.9.25'), |
This file contains hidden or 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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
This file contains hidden or 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
play.shaded.ahc.org.asynchttpclient.threadPoolName=AsyncHttpClient | |
play.shaded.ahc.org.asynchttpclient.maxConnections=-1 | |
play.shaded.ahc.org.asynchttpclient.maxConnectionsPerHost=-1 | |
play.shaded.ahc.org.asynchttpclient.connectTimeout=5000 | |
play.shaded.ahc.org.asynchttpclient.pooledConnectionIdleTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.connectionPoolCleanerPeriod=1000 | |
play.shaded.ahc.org.asynchttpclient.readTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.requestTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.connectionTtl=-1 | |
play.shaded.ahc.org.asynchttpclient.followRedirect=false |
This file contains hidden or 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
# Get Root | |
sudo su | |
# Download NMON archive | |
cd /tmp | |
wget http://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz | |
# Untar archive | |
tar -xzvf nmon16e_mpginc.tar.gz | |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# This will ensure that groovy is available, otherwise it will be downloaded with sdkman. | |
# | |
if [[ -v JAVA_HOME ]]; | |
then | |
echo "Will use groovy from $GROOVY_HOME"; | |
else | |
echo "Will download groovy ..."; |
This file contains hidden or 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
import javax.imageio.ImageIO | |
import org.imgscalr.Scalr | |
@Grapes( | |
@Grab(group = 'org.imgscalr', module = 'imgscalr-lib', version = '4.2') | |
) | |
def printArt(String url, Integer maxSize) { | |
def asciiChars = ["#", "A", "@", "%", "\$", "+", "=", "*", ":", ",", ".", " "] |
This file contains hidden or 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
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
This file contains hidden or 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
import groovyx.net.http.* | |
import groovyx.net.http.ContentType.* | |
import groovyx.net.http.Method.* | |
import static com.aestasit.infrastructure.ssh.DefaultSsh.* | |
import com.aestasit.infrastructure.ssh.SshOptions | |
import com.aestasit.infrastructure.ssh.log.SysOutLogger | |
import hudson.model.* | |
import com.aestasit.infrastructure.ssh.dsl.SshDslEngine | |
import org.apache.commons.lang3.StringUtils | |