More or less like what SLAAC is doing, but without relying on the router advertisment.
pip install netifaces
kubectl api-resources --no-headers | awk -F' ' '{if (NF == 5) {shortname=$2; name=$1; kind=$5} else if (NF == 4) {shortname=""; name=$1; kind=$4} else {shortname=$2; name=$1; kind=$4} if (shortname != "") print shortname "\t" name "\t" kind}' | sort | uniq | column -t |
#!/bin/zsh | |
# Function to validate each line of /etc/hosts | |
validate_line() { | |
local line="$1" | |
# Regular expression to match valid IP address and hostname entries, including comments | |
if [[ "$line" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}([[:space:]]+([a-zA-Z0-9.-]+,?)+)+$ ]] || [[ "$line" =~ ^::1([[:space:]]+([a-zA-Z0-9.-]+,?)+)+$ ]] || [[ "$line" =~ ^#.* ]]; then | |
echo "Valid: $line" | |
else | |
echo "Invalid: $line" |
I hereby claim:
To claim this, I am signing this object:
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://labs.kagi.com/ai/sum?url='+encodeURIComponent(q),'Kagi Universal Summarizer','toolbar=no,width=710,height=685')); |
version: '3.8' | |
services: | |
traefik: | |
image: traefik:v2.5.0-rc2 | |
container_name: traefik | |
restart: always | |
environment: | |
- TZ=Asia/Taipei | |
ports: |
/\b[A-Z_0-9]+-[1-9]\d?\b/gmi |
<?php | |
if (sodium_crypto_aead_aes256gcm_is_available()) { | |
echo 'sodium_crypto_aead_aes256gcm_is_available is true'.PHP_EOL; | |
} else { | |
echo 'sodium_crypto_aead_aes256gcm_is_available is false'.PHP_EOL; | |
} | |
//echo 'Generated key with sodium_crypto_aead_aes256gcm_keygen is: ' . sodium_crypto_aead_aes256gcm_keygen() . PHP_EOL; | |
$msg = '[email protected]'; |
qodana: | |
stage: report | |
image: | |
name: jetbrains/qodana:latest | |
entrypoint: ["/usr/bin/bash", "-l", "-c"] | |
needs: | |
- composer-prod | |
script: | |
- ln -sf $CI_PROJECT_DIR/ /data/project | |
- /opt/idea/bin/entrypoint --save-report |
FROM nvidia/cuda:10.0-base-ubuntu18.04 | |
# See http://bugs.python.org/issue19846 | |
ENV LANG C.UTF-8 | |
LABEL com.nvidia.volumes.needed="nvidia_driver" | |
RUN echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
libc6-dev \ |