Running ARM64 Debian on MAC OS (13.6) with qemu
# install qemu
brew install qemu
qemu-system-aarch64 --version
mkdir aarm64
Running ARM64 Debian on MAC OS (13.6) with qemu
# install qemu
brew install qemu
qemu-system-aarch64 --version
mkdir aarm64
# Add apt.llvm.org repository and install clang | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | |
sudo apt-add-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" | |
sudo apt-get update | |
sudo apt-get install -y clang clang-format clang-tidy lldb libc++-8-dev libc++abi-8-dev | |
# Check version | |
clang --version | |
clang++ --version |
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:prettier/recommended" | |
], | |
"ignorePatterns": ["**/node_modules/", "/dist/", "/lib/"], | |
"parserOptions": { | |
"sourceType": "module" | |
}, |
[package] | |
name = "clumpctrl" | |
version = "0.1.0" | |
authors = ["Maxim Ivanitskiy <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
rocket = "0.4.4" |
https://www.slideshare.net/ConfluentInc/connecting-kafka-across-multiple-aws-vpcs | |
https://dvirgiln.github.io/exposing-kafka-throw-different-aws-vpcs/ | |
https://dvirgiln.github.io/exposing-kafka-throw-different-aws-vpcs/ |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
SQL=$(cat <<EOF | |
SELECT | |
id, DATE_FORMAT(created_at, "%Y-%m-%d"), | |
type, user_id, location_id, UNIX_TIMESTAMP(created_at) | |
FROM hits | |
EOF | |
) | |
mysql -h source_db_host mydb -BNe "$sql" > hist.txt | |
cat hist.txt | clickhouse-client -d mydb --query="INSERT INTO hits FORMAT TabSeparated" |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
package main | |
import ( | |
"fmt" | |
"reflect" | |
"regexp" | |
"strings" | |
) | |
// Name of the struct tag used in examples. |