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
# nc included in the busybox of Alpine can't be used to do health check as it | |
# reports exit code 1 when the server closes immediately (because no data was sent). | |
# If you need nc -z to behave “as expected,” replace BusyBox with OpenBSD netcat: | |
apk add netcat-openbsd # Alpine | |
apt install netcat-openbsd # Debian/Ubuntu | |
# Then nc -z localhost 31311 will succeed if the connect() call works. |
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
sudo dmesg | grep ath12k | |
# [ 6.100088] ath12k_pci 0000:06:00.0: BAR 0 [mem 0x81200000-0x813fffff 64bit]: assigned | |
# [ 6.100107] ath12k_pci 0000:06:00.0: enabling device (0000 -> 0002) | |
# [ 6.100266] ath12k_pci 0000:06:00.0: MSI vectors: 16 | |
# [ 6.100270] ath12k_pci 0000:06:00.0: Hardware name: wcn7850 hw2.0 | |
# [ 6.264622] mhi mhi0: Direct firmware load for ath12k/WCN7850/hw2.0/amss.bin failed with error -2 | |
# [ 6.264640] ath12k_pci 0000:06:00.0: failed to set mhi state: POWER_ON(2) | |
# [ 6.264642] ath12k_pci 0000:06:00.0: failed to start mhi: -110 | |
# [ 6.264643] ath12k_pci 0000:06:00.0: failed to power up :-110 |
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
#!/usr/bin/env python | |
import re | |
import sys | |
HEADER = r""" | |
\documentclass{article} | |
\usepackage{booktabs,makecell,multirow,threeparttable,diagbox} | |
\usepackage{longtable} | |
\usepackage{fancyvrb} |
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
#!/usr/bin/env python | |
import re | |
import sys | |
HEADER = r""" | |
\documentclass{article} | |
\usepackage{booktabs,makecell,multirow,threeparttable,diagbox} | |
\usepackage{caption} |
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 | |
# limactl start \ | |
# --name=k8s \ | |
# --cpus=6 \ | |
# --memory=8 \ | |
# --vm-type=vz \ | |
# --rosetta \ | |
# --mount-type=virtiofs \ | |
# --mount-writable \ |
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
# Review and modify the following configuration for Lima instance "k8s". | |
# - To cancel starting Lima, just save this file as an empty file. | |
# Deploy kubernetes via kubeadm. | |
# $ limactl start ./k8s.yaml | |
# $ limactl shell k8s kubectl | |
# It can be accessed from the host by exporting the kubeconfig file; | |
# the ports are already forwarded automatically by lima: | |
# |
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
#!/usr/bin/env python | |
import re | |
import requests | |
url = "https://raw.githubusercontent.com/rshkarin/mason-nvim-lint/910dadb99cb2bf0d5176026c7a4ab1861c4e561f/lua/mason-nvim-lint/mapping.lua" | |
if __name__ == "__main__": | |
try: |
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
sudo dd if=xxx.iso of=/dev/sdX bs=4M conv=fsync oflag=direct status=progress |
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
curl https://pyenv.run | bash | |
sudo apt install -y \ | |
wget \ | |
build-essential \ | |
libreadline-dev \ | |
libncursesw5-dev \ | |
libssl-dev \ | |
libsqlite3-dev \ | |
tk-dev \ | |
libgdbm-dev \ |
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
openssl s_client -connect www.example.com:443 </dev/null 2>/dev/null | openssl x509 -inform pem -text |
NewerOlder