If the ~/.sdkman/var/candidates is empty, we can refresh it by calling:
$ curl -s https://api.sdkman.io/candidates > ~/.sdkman/var/candidates
import com.google.common.io.CharStreams; | |
import javax.activation.DataSource; | |
import javax.mail.BodyPart; | |
import javax.mail.Header; | |
import javax.mail.MessagingException; | |
import javax.mail.internet.MimeMultipart; | |
import java.io.*; | |
import java.util.Enumeration; |
# Example of proxy_bind using variables using split_clients and map | |
events { worker_connections 2014; } | |
http { | |
default_type text/plain; | |
error_log /var/log/nginx/debug_error.log debug; | |
server { |
If the ~/.sdkman/var/candidates is empty, we can refresh it by calling:
$ curl -s https://api.sdkman.io/candidates > ~/.sdkman/var/candidates
#!/usr/bin/python2 | |
import subprocess | |
import re | |
import os | |
import time | |
def set_os_date( url ): | |
header = subprocess.check_output( ["curl", "--head", url ], shell=False ) | |
for line in header.split("\n"): |
Venkat Subramaniam 关于谈判的演讲 https://www.parleys.com/author/venkat-subramaniam
Venkat Subramaniam 提出的关于如何重构的演讲 https://www.youtube.com/watch?v=iGsPeR-SYYo
《JVM 语言能做的超酷的 10 件事》 https://www.youtube.com/watch?v=Ulcl2TjHktA
《尖头发老板和务实程序员》——Venkat Subramaniam https://www.youtube.com/watch?v=lfmKvRaNnUs
#!/usr/bin/python | |
import array | |
import optparse | |
import os | |
import sys | |
import base64 | |
def gen_random_key( fileName ): | |
os.system("openssl rand -base64 -out %s 16" % fileName ) |
###in boost 1.39
struct BoostEpollHandler {
BoostEpollHandler( const boost::function<bool (boost::system::error_code&, std::size_t&) >& _performHandler,
const boost::function<void (const boost::system::error_code&, std::size_t ) >& _completeHandler )
:performHandler( _performHandler ),
completeHandler( _completeHandler )
{
}
import requests | |
import json | |
def main(): | |
url = "http://localhost:4000/jsonrpc" | |
headers = {'content-type': 'application/json'} | |
# Example echo method | |
payload = { |
##install coreos to the baremetal server
Prepare the cloud init configuration file like below:
#cloud-config
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDi9rg+WeNW2WkhBniXViHoMOJhEIK/JoIxMt6ig2Kksoot4V5oJwRs7odCVejHWaUYMhq8QsuwTejpt5172rtyQLLyd4QbwCct21+XHZul7lgjJR8EAhRBZDPHxg+c4d9gJYCQnxSxdBLYBpg2K8UQJY7jvHwpi2jjpAZQnQzJ5YYzpcyz+SjbONu8FZaqXxt7/s+O8U0OqIeCMJIeinu69xKwtCaW+ROe/kMPoMSrjcr66sRkcWVyrcPCjMI3nLoE6Ix+DB2UHK+mxnR8u5j0S3oX2AMPGZgQE/emd4Epa8KS3/Vh6I35De+RcT5+3HzJviYhxJLY7kLP3FyVsxQX ochinchina@ubuntu-1504-1