Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096| async function a(n) { | |
| let c = 0; | |
| let s = 0; | |
| while (c < n) { | |
| c += 1; | |
| let x = await c; // c 也可以是其他 promise | |
| s += x; | |
| console.log(s); | |
| } |
| #!/bin/sh | |
| # This is a skeleton of a bash daemon. To use for yourself, just set the | |
| # daemonName variable and then enter in the commands to run in the doCommands | |
| # function. Modify the variables just below to fit your preference. | |
| daemonName="DAEMON-NAME" | |
| pidDir="." | |
| pidFile="$pidDir/$daemonName.pid" |
| apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| name: filebeat | |
| namespace: kube-system | |
| labels: | |
| k8s-app: filebeat | |
| spec: | |
| template: | |
| metadata: |
| #!/bin/sh | |
| # Make sure to: | |
| # 1) Name this file `backup.sh` and place it in /home/ubuntu | |
| # 2) Run sudo apt-get install awscli to install the AWSCLI | |
| # 3) Run aws configure (enter s3-authorized IAM user and specify region) | |
| # 4) Fill in DB host + name | |
| # 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket) | |
| # 6) Run chmod +x backup.sh | |
| # 7) Test it out via ./backup.sh |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| function getFileMd5 ( file ) { | |
| var dfd = jQuery.Deferred(); | |
| /** | |
| * reference: | |
| * https://github.com/satazor/SparkMD5 | |
| */ | |
| var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice, | |
| chunkSize = 2097152, // Read in chunks of 2MB | |
| chunks = Math.ceil(file.size / chunkSize), | |
| currentChunk = 0, |
Anaconda turns your Sublime Text 3 into a full featured Python IDE. Read the plugin documentation on http://damnwidget.github.io/anaconda.