create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!groovy | |
| /* | |
| * This script configures the Jenkins base URL. | |
| */ | |
| import jenkins.model.JenkinsLocationConfiguration | |
| JenkinsLocationConfiguration location = Jenkins.instance.getExtensionList('jenkins.model.JenkinsLocationConfiguration')[0] | |
| location.url = 'https://jenkins-as-code-poc.devtail.io/' |
| # PUT IN ALPHABETICAL ORDER | |
| .aadrm.com | |
| .activedirectory.windowsazure.com | |
| .adhybridhealth.azure.com | |
| .ajax.aspnetcdn.com | |
| .ajax.googleapis.com | |
| # .amazon.com | |
| # .amazonaws.com | |
| .appex.bing.com | |
| .appex-rf.msn.com |
| from urllib import quote | |
| class SSLRedirect(object): | |
| def __init__(self,app): | |
| self.app=app | |
| def __call__(self,environ,start_response): | |
| proto = environ.get('HTTP_X_FORWARDED_PROTO') or environ.get('wsgi.url_scheme', 'http') | |
| if proto=='https': |
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # support logging out and back in | |
| set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
| # pbcopy support | |
| set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # vi mode |
| def inf(i=0, step=1): | |
| #un generador de iteradores infinitos, como el xrange, pero infinito | |
| while True: | |
| yield i | |
| i+=step | |
| for i in inf(): | |
| print i |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| docker-machine create -d virtualbox --engine-opt tlsverify=false node1 | |
| eval $(docker-machine env node1) | |
| unset DOCKER_TLS_VERIFY | |
| https://hub.docker.com/_/python/ | |
| https://docs.docker.com/machine/reference/create/#specifying-docker-swarm-options-for-the-created-machine |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| from __future__ import unicode_literals | |
| from hashlib import md5 | |
| import datetime | |
| import tornado.web |
| if [ "$(basename $0)" = "install-odoo.sh" ]; then | |
| echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually" | |
| exit 0 | |
| fi | |
| #### Detect type of system manager | |
| export SYSTEM='' | |
| pidof systemd && export SYSTEM='systemd' |
| # An example tornado request handler that handles both JSON POST request | |
| # bodies and x-www-form-urlencoded POST bodies. | |
| # | |
| # The benefit of JSON request bodies are more complicated and potentially | |
| # nested dict and list data types. | |
| # | |
| # One drawback to JSON request bodies is that arguments can come in | |
| # different types, so handlers will need to perform additional checks. | |
| # With x-www-form-urlencoded fields, all argument values are strings, if | |
| # they exist. |