- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
Prior to
Bash 4.4
set -u treated empty arrays as "unset", and terminates the process.
There are a number of possible workarounds using array
parameter expansion,
however almost all of them fail in certain Bash versions.
This gist is a supplement to this StackOverflow post.
| Slot | Name | Source |
|---|---|---|
| Head | Sanctified Frost Witch's Headpiece | Vendor |
| Neck | Blood Queen's Crimson Choker | Blood Queen Lana'thel 25HC |
| Shoulders | Sanctified Frost Witch's Spaulders | Vendor |
| Back | Cloak of Burning Dusk | Halion 25HC |
| #!/bin/bash | |
| #Add specified SSH keys to the SSH Agent, using SSH_ASKPASS to retrieve | |
| #each key's passphrase from the Unix password store (pass). | |
| #This relies upon the keys having the same names in both your key directory | |
| #and your password store. | |
| if [[ -z ${1} ]]; then | |
| echo "$(basename ${0}): no SSH key specified" 1>&2 | |
| exit 1; |
| resource "digitalocean_droplet" "web" { | |
| image = "ubuntu-16-04-x64" | |
| name = "web-1" | |
| region = "sgp1" | |
| size = "512mb" | |
| ssh_keys = [12345] | |
| connection { | |
| type = "ssh" | |
| user = "root" |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| docker.image('cloudbees/java-build-tools:0.0.6').inside { | |
| sshagent(['github-ssh-credentials']) { | |
| sh """ | |
| git version | |
| git config --local user.email \\"cleclerc@cloudbees.com\\" | |
| git config --local user.name \\"Cyrille Le Clerc\\" | |
| git clone git@github.com:cyrille-leclerc/a-test-repo.git | |
| date &> now.txt |
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196 |
| Renew Puppet CA cert. | |
| Not the perfect idea, but should alleviate the need to resign every cert. | |
| What you need from existing puppet ssl directory: | |
| ca/ca_crt.pem | |
| ca/ca_key.pem | |
| Create an openssl.cnf: | |
| [ca] |
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
| cut -f 1 -d ' ' | \ | |
| sed -e s/,.*//g | \ | |
| grep -v ^# | \ | |
| uniq | \ | |
| grep -v "\[" ; |