Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Remove terminating namespaces
# Usage: ./remove-terminating-ns.sh
TERMINATING_NS=$(kubectl get ns | grep Terminating | awk '{print $1}')
kubectl proxy &
PROXY_PID=$!
@bohrasd
bohrasd / dns.yaml
Last active December 18, 2021 06:35
clash-dns-header
port: 8888
socks-port: 8889
mixed-port: 8899
redir-port: 8890
allow-lan: true
mode: Rule
log-level: info
external-controller: 127.0.0.1:6170
experimental:
ignore-resolve-fail: true
@bohrasd
bohrasd / huh.sh
Created August 27, 2021 16:27
a naive POC of bidirectional connection with HTTP/2+FETCH+SSE
#!/bin/bash
a=0
while true
do
a=$(($a + 1))
echo "waiting for command $a"
read -r abc
echo "executing $abc"
$abc
done
@bohrasd
bohrasd / geo.json
Last active December 16, 2019 13:29
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.