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
Paste toggleEdit | |
Vim provides the 'paste' option to aid in pasting text unmodified from other applications. You can set it manually like: | |
:set paste | |
:set nopaste |
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
#Build a docker image | |
cd myproject | |
docker run --rm -v "$(pwd):/src" -v /var/run/docker.sock:/var/run/docker.sock centurylink/golang-builder | |
#Create Docker machine on AWS | |
docker-machine create --driver amazonec2 --amazonec2-access-key $AWS_ACCESS_KEY_ID --amazonec2-secret-key $AWS_SECRET_ACCESS_KEY --amazonec2-vpc-id vpc-be157ddb --amazonec2-region eu-west-1 --amazonec2-instance-type t2.medium aws01 | |
eval $(docker-machine env aws01) | |
#Swarm + Compose on AWS | |
export CLUSTER_ID=$(docker run swarm create) |
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
# maven ignoring license | |
mvn install -Dlicense.skip=true -DskipTests | |
# maven fat jar | |
mvn assembly:assembly -DdescriptorId=jar-with-dependencies -DskipTests | |
# maven generate webapp project | |
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp | |
# maven generate empty project | |
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart | |
mvn archetype:generate -DgroupId={project-packaging} -DartifactId={project-name} -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false |
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
package main | |
import ( | |
"github.com/pkg/sftp" | |
"golang.org/x/crypto/ssh" | |
) | |
func main() { | |
addr := “my_ftp_server:22" | |
config := &ssh.ClientConfig{ |
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/bash | |
echo "Building NGINX along with Echo module" | |
# install prerequisites | |
yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel | |
# download the Echo module | |
curl -L -O 'https://github.com/openresty/echo-nginx-module/archive/v0.58.tar.gz' | |
tar -xzvf v0.58.tar.gz && rm v0.58.tar.gz | |
mv echo-nginx-module-0.58 /tmp/echo-nginx-module |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: spark-operator | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: spark-apps | |
--- |
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
Name: mnist-tensorflow-job | |
Namespace: default | |
Labels: <none> | |
Annotations: API Version: kubeflow.org/v1 | |
Kind: TFJob | |
Metadata: | |
Creation Timestamp: 2020-07-18T18:54:31Z | |
Generation: 1 | |
Resource Version: 43041 | |
Self Link: /apis/kubeflow.org/v1/namespaces/default/tfjobs/mnist-tensorflow-job |
OlderNewer