cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: dapr.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: gomemory | |
spec: | |
type: state.gomemory | |
plugin: true | |
version: v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product=stemcells-ubuntu-xenial | |
version=250 | |
products=`cat stemcells.json | jq ".[] | select(.slug == \"$product\").versions | .[] | select(.version == $version).products | .[]" -r` | |
for product in $products | |
do | |
cat $product | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
function Invoke-DownloadFileCore{ | |
param( | |
[string]$url, | |
[string]$output, | |
[bool]$skipTlsValidation, | |
[X509Certificate]$certificate) | |
$code = @' | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cell(object): | |
def __init__(self, L): | |
self.L = L | |
self.edges = set() | |
self.redus = set() | |
class Chart(object): | |
def __init__(self): | |
self.cont = [] | |
self.visit = set() |
etcd --name infra0 \
--initial-advertise-peer-urls http://192.168.1.101:2380 \
--listen-peer-urls http://192.168.1.101:2380 \
--listen-client-urls http://192.168.1.101:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://192.168.1.101:2379 \
--initial-cluster-token huber-cluster \
--initial-cluster infra0=http://192.168.1.101:2380,infra1=http://192.168.1.102:2380,infra2=http://192.168.1.103:2380 \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$variables = | |
[Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Machine) -split ';' | | |
foreach { $_.Trim().TrimEnd('\\') } | | |
group | | |
select -ExpandProperty Name | | |
where { -not [string]::IsNullOrWhitespace($_) } | |
$path = $variables -join ';' | |
[Environment]::SetEnvironmentVariable("PATH", $path, [System.EnvironmentVariableTarget]::Machine) |
NewerOlder