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| <template> | |
| <div id="app"> | |
| <div class="row flex-center flex-middle"> | |
| <label for="msg">Message</label> | |
| <input class="margin" type="text" id="msg" v-model="message"> | |
| </div> | |
| <div class="row flex-center"> | |
| <button class="paper-btn margin" @click="send">Send</button> | |
| </div> | |
| </div> |
/var/lib/lxc/mycontainer/config$HOME/.local/share/lxc/mycontainer/configlxc.mount directive, that follows the format below. Substitute proper paths as necessary:
lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0tar czfv NEW_NAME.tar.gz OLD_NAME --transform s/OLD_NAME/NEW_NAME/
Note: this only works with GNU Tar.
we want to tar /opt/zlib/1.2.11 into zlib-1.2.11.tar.gz, and we want the top-level folder inside that tar.gz file to be zlib-1.2.11, not 1.2.11:
| extern crate tokio; | |
| use std::time::{Duration, Instant}; | |
| use tokio::prelude::*; | |
| use tokio::timer; | |
| fn main() { | |
| tokio::run(foo(12)); | |
| } | |
| # How to use "acme.sh" to set up Lets Encrypt without root permissions | |
| # See https://github.com/Neilpang/acme.sh for more | |
| # This assumes that your website has a webroot at "/var/www/<domain>" | |
| # I'll use the domain "EXAMPLE.com" as an example | |
| # When this is done, there will be an "acme" user that handles issuing, | |
| # updating, and installing certificates. This account will have the following | |
| # (fairly minimal) permissions: | |
| # - Host files at http://EXAMPLE.com/.well-known/acme-challenge |
| pub fn http_download_to_path(url: &str, save: &PathBuf) -> Result<()> { | |
| let client = Client::with_connector(HttpsConnector::new(NativeTlsClient::new().unwrap())); | |
| let mut res = client.get(url).send()?; | |
| if res.status != hyper::Ok { | |
| return Err(Error::SomeError))); | |
| } | |
| let use_progress = true; | |
| if use_progress { | |
| use indicatif::{ProgressBar, ProgressStyle}; |
| // curl http://localhost:3000 will show the results streaming in. | |
| #![allow(warnings)] | |
| extern crate hyper; | |
| extern crate futures; | |
| extern crate tokio_core; | |
| use tokio_core::net::TcpListener; | |
| use tokio_core::reactor::Core; | |
| use futures::{future, Future}; |
| // curl http://localhost:3000 will show the results streaming in. | |
| #![allow(warnings)] | |
| extern crate hyper; | |
| extern crate futures; | |
| extern crate tokio_core; | |
| use tokio_core::net::TcpListener; | |
| use tokio_core::reactor::Core; | |
| use futures::{future, Future}; |
| #!/usr/bin/python | |
| from sys import argv | |
| import os | |
| import math | |
| import urllib2 | |
| import random | |
| import os.path | |
| def deg2num(lat_deg, lon_deg, zoom): |