-
install iterm, oh-my-zsh
-
clone zsh auto-suggestions and enable in .zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Add ssh keys
eval "$(ssh-agent -s)"
| // BacsPayment | |
| /* | |
| ----, | |
| SQS ) => Received => AccountCheck => MandateCheck => Withdraw => Succeeded | |
| ----' | |
| */ | |
| fun processPayment(payment: BacsPayment<Received>) { |
| { | |
| "contentType": "application/gliffy+json", | |
| "version": "1.3", | |
| "metadata": { | |
| "title": "untitled", | |
| "revision": 0, | |
| "exportBorder": false, | |
| "loadPosition": "default", | |
| "libraries": [ | |
| "com.gliffy.libraries.flowchart.flowchart_v1.default", |
| { | |
| "contentType": "application/gliffy+json", | |
| "version": "1.3", | |
| "metadata": { | |
| "title": "untitled", | |
| "revision": 0, | |
| "exportBorder": false, | |
| "loadPosition": "default", | |
| "libraries": [ | |
| "com.gliffy.libraries.flowchart.flowchart_v1.default", |
| #!/bin/bash | |
| sudo docker stop $(docker ps -aq) | |
| sudo docker rm $(docker ps -a -q) | |
| docker network prune -f | |
| docker volume rm $(docker volume ls -f dangling=true -q) | |
| #docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/lib/docker:/var/lib/docker martin/docker-cleanup-volumes |
install iterm, oh-my-zsh
clone zsh auto-suggestions and enable in .zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
eval "$(ssh-agent -s)"
| #!/bin/bash | |
| set -euxo pipefail | |
| if [[ -d "/mnt/disks/persistent_storage" ]]; then | |
| exit | |
| else | |
| sudo mkfs.ext4 -m 0 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/sdb; \ | |
| sudo mkdir -p /mnt/disks/persistent_storage | |
| sudo mount -o discard,defaults /dev/sdb /mnt/disks/persistent_storage | |
| fi |
| #!/bin/bash | |
| set -uxo pipefail | |
| # DISK_NAME = Name of the disk in terraform | |
| # DEVICE_NAME = When $DISK_NAME is mounted in the compute instance at `/dev/` | |
| MOUNT_DIR=/mnt/disks/persistent_storage | |
| # Check if entry exists in fstab | |
| grep -q "$MOUNT_DIR" /etc/fstab |
| # Resolution mapping with Mac - 1920x1200 | |
| # Virtual box display scaling - 165% | |
| # Oh-my-zsh | |
| sudo apt install git zsh | |
| wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | |
| sh install.sh | |
| # Docker | |
| sudo apt-get update |
| apiVersion: kafka.strimzi.io/v1beta1 | |
| kind: Kafka | |
| metadata: | |
| name: my-cluster | |
| spec: | |
| # kafka cluster configuration | |
| kafka: | |
| # Annotations for Datadog JMX auto-discovery | |
| template: | |
| pod: |