Skip to content

Instantly share code, notes, and snippets.

View SharkyRawr's full-sized avatar
🦄
Rawr

Sophie SharkyRawr

🦄
Rawr
View GitHub Profile
@SharkyRawr
SharkyRawr / pod-to-pod.yaml
Created September 15, 2022 16:34
pod-to-pod-affinity
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app.kubernetes.io/component"
operator: In
values:
- synapse
topologyKey: "kubernetes.io/hostname"
@SharkyRawr
SharkyRawr / heic_to_jpg.sh
Created December 31, 2020 16:14
Script to convert all HEIC files to JPG
#! /bin/bash -ex
## REQUIRES imagemagick with HEIC support !!!
mkdir -p /tmp/new
find . -type f -iname '*.heic' |
while read file; do
echo $file
basefile=$(basename "$file")

Keybase proof

I hereby claim:

  • I am sharkyrawr on github.
  • I am fynne (https://keybase.io/fynne) on keybase.
  • I have a public key ASCWIvoS0rLRRD_1Zj7wCUp6mK72rqcZE_mEwczRsTpMywo

To claim this, I am signing this object:

# ACME challenge response for acmetool, others might look different
location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
default_type text/plain;
return 200 "$1.your-account-id-here";
}
// ==UserScript==
// @name HumbleBundle Exporter
// @namespace https://sharky.pw/
// @version 0.2
// @description Export lists of your HumbleBundle purchases, keys, etc.
// @author Sophie 'Sharky' Schumann
// @require http://code.jquery.com/jquery-1.9.1.min.js
// @match https://www.humblebundle.com/home/keys
// @match https://www.humblebundle.com/home/purchases
// @match https://www.humblebundle.com/home/library
// This is the main DLL file.
#include "stdafx.h"
array<Byte>^ WebPCLR::Encoder::Encode(Bitmap^ bmp, float quality) {
Rectangle bounds = Rectangle(0, 0, bmp->Width, bmp->Height);
Imaging::BitmapData^ bmpdata = bmp->LockBits(bounds, Imaging::ImageLockMode::ReadOnly, Imaging::PixelFormat::Format32bppArgb);
IntPtr argb = bmpdata->Scan0;
#! /bin/bash -e
export GPG_TTY=$(tty)
KEY=12CDBA2124EC19869892D6175C29252265360140
if [ ! -f "$1" ]; then
echo "Please specify a file!"
exit 1
fi
#include <DigiCDC.h>
// the setup routine runs once when you press reset:
void setup() {
SerialUSB.begin();
// initialize the digital pin as an output.
pinMode(1, OUTPUT); //LED on Model A
}
int get_temp() {
#! /bin/sh
# By Sharky - https://sharky.pw/
COLS=`tput cols`
ROWS=`tput lines`
OWOS=(
"OwO" "ØwØ" "◕w◕" "◔w◔" "ʘwʘ" "𝕆𝕨𝕆" "σωσ" "𝙊𝙬𝙊" "(。O ω O。)"
"UwU" "🆄🆆🆄" "ⓤⓦⓤ" "𝖴𝗐𝖴" "𝓤𝔀𝓤" "( ᴜ ω ᴜ )"

Keybase proof

I hereby claim:

  • I am sharkyrawr on github.
  • I am sharkyrawr (https://keybase.io/sharkyrawr) on keybase.
  • I have a public key ASCGStWI7RHvhQAbWxTCdhEbI_mmQuTB9g4nuEwEV1bh8go

To claim this, I am signing this object: