create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # CentOS-Vault.repo | |
| # | |
| # CentOS Vault holds packages from previous releases within the same CentOS Version | |
| # these are packages obsoleted by the current release and should usually not | |
| # be used in production | |
| #----------------- | |
| [C6.0-base] | |
| name=CentOS-6.0 - Base | |
| baseurl=http://vault.centos.org/6.0/os/$basearch/ |
| /****************** SERVER CODE ****************/ | |
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <string.h> | |
| #include <arpa/inet.h> | |
| int main(){ | |
| int welcomeSocket, newSocket; |
| #ifndef __RE_REPLACE__ | |
| #define __RE_REPLACE__ | |
| #include <string.h> | |
| #include <regex.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <libwebsockets.h> | |
| static int callback_http(struct libwebsocket_context *context, | |
| struct libwebsocket *wsi, | |
| enum libwebsocket_callback_reasons reason, void *user, |
| # 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. |
| 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' |
| #!/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 |
| 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 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| 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 |