hidutil property --set '{
"UserKeyMapping": [
{
"HIDKeyboardModifierMappingSrc": 0x700000064,
"HIDKeyboardModifierMappingDst": 0x700000035
},
{
This file contains hidden or 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
#!/bin/bash | |
set -o errexit -o nounset -o pipefail -o xtrace | |
echo "Hello World" | |
curl -I "https://app.n26.com/login" | |
# install software | |
sudo apt update | |
sudo apt install -y iputils-ping netcat |
This file contains hidden or 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
# Ouput of `k get kafka -o yaml -n strimzi` | |
apiVersion: v1 | |
items: | |
- apiVersion: kafka.strimzi.io/v1beta1 | |
kind: Kafka | |
metadata: | |
annotations: | |
meta.helm.sh/release-name: kafka | |
meta.helm.sh/release-namespace: strimzi | |
creationTimestamp: "2020-12-28T08:06:05Z" |
This file contains hidden or 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: kafka.strimzi.io/v1beta1 | |
kind: Kafka | |
metadata: | |
name: my-cluster | |
spec: | |
# kafka cluster configuration | |
kafka: | |
# Annotations for Datadog JMX auto-discovery | |
template: | |
pod: |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 |
-
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)"
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
{ | |
"contentType": "application/gliffy+json", | |
"version": "1.3", | |
"metadata": { | |
"title": "untitled", | |
"revision": 0, | |
"exportBorder": false, | |
"loadPosition": "default", | |
"libraries": [ | |
"com.gliffy.libraries.flowchart.flowchart_v1.default", |
NewerOlder