Notes for Air6372SO
Last error message from dmesg
:
D%G - Power failure detected. ADSL Link down.
#!/usr/bin/env python3 | |
# start redis first: | |
# docker run --name=redis --rm -itdp 6379:6379 redis:latest | |
# install dependencies: | |
# python3 -m pip install -U flask redis | |
# run the app | |
# python3 reporter.py |
/* | |
compile & run: | |
$ cc -o tree tree.c && ./tree \ | |
| tee out.c | |
echo 'output:' | |
cc -o out out.c && ./out | |
*/ | |
int main(){ | |
int printf(const char *, ...); |
#!/usr/bin/env -S bash -xo pipefail | |
users=( "$@" ) | |
baseurl="https://registry.hub.docker.com/v2" | |
#baseurl="https://registry-1.docker.io/v2" | |
function get_token { | |
local user="${1}" | |
local repo="${2}" | |
local scope="repository:${user}/${repo}:pull" |
Last error message from dmesg
:
D%G - Power failure detected. ADSL Link down.
#!/usr/bin/env make -f | |
TOOLS := \ | |
kn \ | |
k3d \ | |
rke \ | |
kind \ | |
kops \ | |
krew \ | |
kubens \ |
#!/usr/bin/env python3 | |
# First create subdomain. Eg: laptop.example.com | |
# Then set parameters belog. Eg: subdom = "laptop" | |
# This script will fetch external public ip and set it as value. | |
# Make sure target record is A record! | |
import json, urllib.request | |
""" | |
urllib.request.install_opener( |
#!/usr/bin/env node | |
const EMAIL = "something@email.com"; | |
const X_AUTH_KEY = "ABCDE"; | |
const ZONE = "ABCDE"; | |
const os = require("os"); | |
const fetch = require("node-fetch"); | |
const cf = require("cloudflare")({ | |
email: EMAIL, |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <dlfcn.h> | |
#include <dirent.h> | |
int main(int argc, char **argv) { |
#!/bin/env sh | |
#set -x | |
set -o pipefail | |
PREFIX=usr_ | |
NAME="${PREFIX}$(hostname | cut -d. -f1)" | |
INFO="$(uname -a) --- $(date)" | |
CHAN="${1:-#test}" | |
PING=10.0 |
#!/usr/bin/env bash | |
#set -x | |
set -o pipefail | |
PREFIX=usr | |
NAME="${PREFIX}$(hostname | cut -d. -f1)" | |
CHAN="${1:-#test}" | |
INFO="$(date) $(uname -a)" | |
PING=10.0 |