See https://kit.svelte.dev/docs/creating-a-project
npm create svelte@latest my-app
# Pick "skeleton project"
# Typescript and prettier are also pretty cool
cd my-app
<script lang="ts"> | |
import { Capacitor } from '@capacitor/core'; | |
let emojis = [ | |
'😀', | |
'😃', | |
'😄', | |
'😁', | |
'😆', | |
'😅', |
<script lang="ts"> | |
let emojis = [ | |
'😀', | |
'😃', | |
'😄', | |
'😁', | |
'😆', | |
'😅', | |
'😂', | |
'🤣', |
See https://kit.svelte.dev/docs/creating-a-project
npm create svelte@latest my-app
# Pick "skeleton project"
# Typescript and prettier are also pretty cool
cd my-app
kubectl config use-context example/tb:prod | |
kubectl apply -f ./k8s/namespaces/exampleproject.yaml | |
kubectl config set-context --current --namespace=exampleproject | |
helm upgrade --install exampleproject-ingress ./k8s/helm/xxx --values=exampleproject/k8s/prod/exampleproject-ingress.values.yaml | |
helm upgrade --install exampleproject ./k8s/helm/tb-deployment --values=exampleproject/k8s/prod/exampleproject-deployment.values.yaml --set image.repositoryWithTag="$EXAMPLEPROJECT_IMAGE" | |
kubectl rollout status deployment/exampleproject |
// There were mentions that the default mastodon client does not let you search in your posts | |
// e.g. https://infosec.exchange/@codinghorror/110232149814997656 | |
// This is a hacky function to fetch all posts and search through them. Use and adapt at your own risk. | |
// Usage: | |
// 1. Navigate to your mastodon server | |
// 2. Open browser console | |
// 3. Copy paste the function | |
// 4. Execute the function for example like this: searchPosts("techhub.social", "bersling", "something") |
import java.security.KeyFactory | |
import java.security.interfaces.RSAPublicKey | |
import java.security.spec.X509EncodedKeySpec | |
import java.util.Base64.getDecoder | |
/* | |
* Utility Method to convert a public key in the form of a string into a RSAPublicKey object. | |
* Helpful for example for verifying JWT signatures! | |
* */ | |
fun convertPublicKeyStringToRSAPublicKey(publicKey: String): RSAPublicKey { |
import subprocess | |
import sys | |
from PIL import Image | |
# Read the filename from the command line args | |
filename = sys.argv[1] | |
# Read in the image | |
image = Image.open(filename) |
Äntefudi Quackquackquack het am Fudi Siegellack, Siegellack goht nümme ab, Äntefudi Quackquackquack |