国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
{ | |
"log": { | |
"loglevel": "warning" | |
}, | |
"inbounds": [ | |
{ | |
"listen": "0.0.0.0", | |
"port": 1080, | |
"protocol": "socks", | |
"settings": { |
(* binary trees are trees where each node has two children *) | |
datatype 'a Tree = empty | |
| leaf of 'a | |
| node of (('a Tree) * 'a * ('a Tree)) | |
val t2 = node(node(leaf(2), 3, leaf(4)), 6, leaf(8)) | |
fun breadth(empty) = 0 | |
| breadth(leaf(_)) = 1 | |
| breadth(node(left, _, right)) = breadth(left) + breadth(right) |
// | |
// ContentView.swift | |
// MadeForYouCard | |
// | |
// Created by AppleDesignDev on 1/24/22. | |
// | |
import SwiftUI | |
struct ContentView: View { |
! | |
! Invert number row | |
! | |
! This changes the behavior of keys in the number row, but does not | |
! affect the number pad. | |
! | |
keycode 10 = exclam 1 1 exclam | |
keycode 11 = at 2 2 at | |
keycode 12 = numbersign 3 3 numbersign | |
keycode 13 = dollar 4 4 dollar |
package main | |
import ( | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/jmoiron/sqlx" | |
) | |
type Hoge struct { |
*bcftools filter | |
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2) | |
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz | |
*printing out info for only 2 samples: | |
bcftools view -s NA20818,NA20819 filename.vcf.gz | |
*printing stats only for variants passing the filter: | |
bcftools view -f PASS filename.vcf.gz |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
# @author Pichaya Morimoto (p.morimoto@sth.sh) | |
# gem install evil-winrm | |
# evil-winrm -u "${user}" -p "${pass}" -i "${ip}" | |
Evil-WinRM shell v3.4 | |
Info: Establishing connection to remote endpoint | |
Error: An error of type OpenSSL::Digest::DigestError happened, message is Digest initialization failed: initialization error |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Template which deploys a basic VPC with a single SG, 2 public subnets and an IGW. Optionally can also deploy 2 private subnets and a NAT gateway | |
Parameters: | |
Subnet1AzParameter: | |
Type: AWS::EC2::AvailabilityZone::Name | |
Description: First subnet avalibility zone | |
Subnet2AzParameter: | |
Type: AWS::EC2::AvailabilityZone::Name | |
Description: Second subnet avalibility zone |