pacman -Suy containerd nerdctl nerdctl kubectl qemu-user-static rootlesskit slirp4netns buildkit cni-plugins
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
version: '3.9' | |
services: | |
postgresql: | |
restart: unless-stopped | |
container_name: postgresql | |
hostname: postgresql | |
image: postgres:alpine | |
ports: | |
- '5432:5432' | |
volumes: |
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
# docs https://adax.no/wi-fi/api-development/#local | |
# registers heater to your wifi network | |
# install dependencies with: pip install bleak requests | |
import bleak | |
import asyncio | |
import operator | |
import urllib.parse | |
wifi_ssid = 'replace with your wifi name' # replace with your wifi name | |
wifi_psk = 'replace with your wifi psk' # replace with your wifi psk | |
access_token = '12345678' # generate some strong password for your heater |
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
Computer Information: | |
Manufacturer: Gigabyte Technology Co., Ltd. | |
Model: B450 AORUS M | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 5 1600 Six-Core Processor | |
CPU Family: 0x17 |
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
// jose version v2.x | |
const jose = require('jose'); | |
const simpleJWKgen = async({ | |
kty = 'OKP', | |
crvOrSize = 'Ed25519', | |
options: { | |
alg = 'EdDSA', | |
kid, | |
key_ops, | |
use = 'sig' |
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 key = (k, strLen) => Array | |
.from({ | |
length: Math.ceil(strLen / k.length) | |
}) | |
.fill(k) | |
.join('') | |
.split('') | |
.map((v) => v.charCodeAt(0)); | |
const xorStr = (s, {key: {ascii: asciiKey}}) => { |
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
from typing import Awaitable | |
import asyncio | |
import i3ipc | |
import threading | |
def pollTitle(c): | |
# i3.get_tree().find_focused().name | |
print(c.get_tree().find_focused().window_class) | |
async def run() -> Awaitable[str]: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
const EventEmitter = require('events'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
// flattenAPI(data) |
NewerOlder