sudo nano /etc/default/grub
# add systemd.unified_cgroup_hierarchy=1 to the key GRUB_CMDLINE_LINUX_DEFAULT (space separated list)
sudo grub-mkconfig -o /boot/grub/grub.cfg
# reboot
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
package: | |
name: cilium-cli | |
version: 0.13.0 | |
epoch: 0 | |
description: CLI to install, manage & troubleshoot Kubernetes clusters running Cilium | |
target-architecture: | |
- all | |
copyright: | |
- license: Apache-2.0 | |
paths: |
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
export LIST1=a b c d | |
export LIST2=b c d e f | |
INTERSECTION=($(comm -12 <(for X in "${LIST1[@]}"; do echo "${X}"; done|sort) <(for X in "${LIST2[@]}"; do echo "${X}"; done|sort))) | |
echo ${INTERSECTION[@]} | |
# b c d |
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
package: | |
name: kubevela | |
version: 1.7.0 | |
epoch: 0 | |
description: KubeVela is a modern application delivery platform that makes deploying and operating applications across today's hybrid, multi-cloud environments easier, faster and more reliable | |
target-architecture: | |
- all | |
copyright: | |
- license: Apache-2.0 | |
paths: |
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
package glob_test | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
"testing" | |
"github.com/google/go-containerregistry/pkg/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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if ! crane version >/dev/null; then echo "Must install crane."; exit 1; fi | |
if ! cosign version >/dev/null; then echo "Must install cosign."; exit 1; fi | |
GHCR_ROOT_NAMESPACE="${GHCR_ROOT_NAMESPACE:-}" |
- Use 64 bit OS. At the moment, Rasberry Pi OS is only available in 32bit. 64 bit version is still beta. Find the latest 64 bit builds here.
- Your choice is to use a beta OS or switch to another OS like Ubuntu.
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: pihole-config | |
data: | |
WEBPASSWORD: pihole | |
TZ: 'Asia/Ho_Chi_Minh' | |
DNS1: 1.1.1.1 | |
DNS2: 1.0.0.1 |
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
const data = [ | |
{ | |
roomId: 1, | |
rateId: 2, | |
name: 'room 1' | |
}, | |
{ | |
roomId: 1, |
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
''' | |
sort_zset_cols.py | |
Copyright 2013 Josiah Carlson | |
Released into the public domain. | |
''' | |
''' | |
Let's imagine that there are 3 restaurants with price, score, distance info | |
being: |