# Configure Terraform and required providers
terraform {
required_version = ">= 1.0.0"
required_providers {
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
#btrfs benchmark for daily used desktop OS |
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
startDelaySeconds: 120 | |
lowercaseOutputName: true | |
lowercaseOutputLabelNames: true | |
blacklistObjectNames: | |
- "kafka.consumer:type=*,id=*" | |
- "kafka.consumer:type=*,client-id=*" | |
- "kafka.consumer:type=*,client-id=*,node-id=*" | |
- "kafka.producer:type=*,id=*" | |
- "kafka.producer:type=*,client-id=*" | |
- "kafka.producer:type=*,client-id=*,node-id=*" |
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
version: "3.6" | |
services: | |
whoami: | |
image: traefik/whoami:v1.6.0 | |
deploy: | |
mode: replicated | |
replicas: 1 | |
labels: | |
- traefik.enable=true |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]
struct foo {
struct bar {
int x;
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
# To list installed distributions | |
wsl -l | |
wsl --list | |
# To list installed distributions along with its running status and wsl config being 1 or 2 | |
wsl -l --verbose | |
wsl -l -v | |
# To run a specific distro | |
wsl -d distro_name |
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
#!/bin/bash | |
TOPICS=$(kafka-topics --zookeeper [ZK_IP]:2181/kafka --list ) | |
for T in $TOPICS | |
do | |
if [ "$T" != "__consumer_offsets" ]; then | |
kafka-topics --zookeeper [ZK_IP]:2181/kafka --delete --topic $T | |
fi | |
done |
- GUID Partition Table
- Encrypted root and swap partitions with dm-crypt
- Btrfs filesystem with support to snapshots
- bspwm + polybar
Download the install ISO image at https://archlinux.org/download/
Burn the ISO to a USB drive and boot from it.
NewerOlder