export NS=stucked-namespace
kubectl get namespace $NS -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| kubectl replace --raw /api/v1/namespaces/$NS/finalize -f -
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
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: plex-claim-token | |
namespace: media | |
type: Opaque | |
data: | |
token: ${API_TOKEN_OPAQUE} | |
--- | |
apiVersion: v1 |
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 | |
dig -4 TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'\"' '{ print $2}' |
WARNING: The ODC_ACCESS_KEY variable is not set. Defaulting to a blank string.
WARNING: The ODC_SECRET_KEY variable is not set. Defaulting to a blank string.
2019-11-05 15:24:34,971 INFO Starting the index process
2019-11-05 15:24:34,977 INFO Starting the conversion from ll to pathrow for area: [146.3, 146.83, -43.54, -43.2]
2019-11-05 15:24:35,059 INFO Usion bbox filter: { "type": "Polygon", "coordinates": [ [ [ 146.3, -43.54, 0.0 ], [ 146.3, -43.2, 0.0 ], [ 146.83, -43.2, 0.0 ], [ 146.83, -43.54, 0.0 ], [ 146.3, -43.54, 0.0 ] ] ] }
2019-11-05 15:24:35,170 INFO Found 2 features.
2019-11-05 15:24:35,182 INFO Found 2 pathrows to handle
2019-11-05 15:24:35,182 INFO Loading pathrows
[91, 90]
For a number of reasons we'll enable access to our docker daemon (can also limit this to just from the VPN subnet by replacing 0.0.0.0
with the subnet address to listen on).
As discussed in the docs the best way to do this is to use a systemd drop-in file. In addition we'll use a CA, server and client keys with OpenSSL.
sudo -s
export HOST=my.domain
mkdir -p /root/.docker && cd /root/.docker
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
module.exports = { | |
bracketSpacing: false, | |
jsxBracketSameLine: true, | |
singleQuote: true, | |
trailingComma: 'all', | |
}; |
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
module.exports = { | |
root: true, | |
extends: '@react-native-community', | |
}; |
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
# create a react-native project | |
create_expo(){ | |
npx expo-cli init -t blank --yarn --name "$@" "$@" | |
cd "$@" | |
expo-cli install react-navigation react-native-gesture-handler react-native-reanimated react-navigation-stack axios react-native-json-tree | |
} |
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
version: "3" | |
services: | |
traefik: | |
image: "traefik:v2.0" | |
container_name: "traefik" | |
command: | |
# Globals | |
- "--log.level=DEBUG" | |
- "--api=true" |