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
affinity: | |
podAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
- labelSelector: | |
matchExpressions: | |
- key: "app.kubernetes.io/component" | |
operator: In | |
values: | |
- synapse | |
topologyKey: "kubernetes.io/hostname" |
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
# 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"; | |
} |
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
// ==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 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
// 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; | |
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 -e | |
export GPG_TTY=$(tty) | |
KEY=12CDBA2124EC19869892D6175C29252265360140 | |
if [ ! -f "$1" ]; then | |
echo "Please specify a file!" | |
exit 1 | |
fi |
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/sh | |
# By Sharky - https://sharky.pw/ | |
COLS=`tput cols` | |
ROWS=`tput lines` | |
OWOS=( | |
"OwO" "ØwØ" "◕w◕" "◔w◔" "ʘwʘ" "𝕆𝕨𝕆" "σωσ" "𝙊𝙬𝙊" "(。O ω O。)" | |
"UwU" "🆄🆆🆄" "ⓤⓦⓤ" "𝖴𝗐𝖴" "𝓤𝔀𝓤" "( ᴜ ω ᴜ )" |
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
/* Edited by IntelligentComment | |
/* Moderator tag */ | |
.thing .tagline .author.friend { | |
padding: 1px 8px; | |
border-radius: 10px; | |
background-color: red; | |
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 -ex | |
while read p; do | |
echo -e "\n$p ->" | |
echo $p | awk '{ print $2 }' | # Only the actual key data without prefix or comments | |
base64 -d | # decode as base64 | |
sha256sum | # SHA256 hash (returns hex) | |
awk '{ print $1 }' | # only the hex data | |
xxd -r -p | # hex to bytes | |
base64 # encode as base64 | |
done < /root/.ssh/authorized_keys |
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
# Install in to ~/.local/share/kservices5/vscodehere.desktop | |
[Desktop Entry] | |
Type=Service | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=openVSCodeHere; | |
X-KDE-AuthorizeAction=shell_access | |
[Desktop Action openVSCodeHere] |
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 | |
# See ssh -Q cipher (on both machines) | |
CIPHERS="[email protected] aes128-ctr aes192-ctr aes256-ctr [email protected] [email protected]" | |
# Destination server (data will be piped to /dev/null) | |
DESTINATION="[email protected]" | |
for cipher in ${CIPHERS} ; do | |
for i in 1 2 3 ; do |
NewerOlder