View kubedf
This file contains 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
#!/usr/bin/env bash | |
NODESAPI=/api/v1/nodes | |
function getNodes() { | |
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name' | |
} | |
function getPVCs() { | |
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\ |
View gnome-to-more-like-unity.sh
This file contains 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
#!/usr/bin/env bash | |
# gnomeversion=latest force=1 ./gnome-to-more-like-unity.sh | |
set -e | |
restart=0 | |
if [ ! -f /usr/local/bin/gnomeshell-extension-manage ]; then | |
echo Downloading gnomeshell-extension-manage |
View d3d9Test.cpp
This file contains 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
// compile with: x86_64-w64-mingw32-g++ d3d9Test.cpp | |
#include <d3d9.h> | |
#include <stdio.h> | |
static BOOL Monitorenumproc( | |
HMONITOR hMonitor, | |
HDC unnamedParam2, | |
LPRECT bounds, | |
LPARAM unnamedParam4 |
View dumpSSHFP.sh
This file contains 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
#!/usr/bin/env bash | |
echo $1 | base64 -d | md5sum | sed 's/../&:/g;s/: .*$//;s/.*/MD5:&/' | |
echo $1 | base64 -d | sha256sum | xxd -r -p | base64 | sed 's/=*$//;s/.*/SHA256:&/' |
View findHostName.sh
This file contains 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
#!/usr/bin/env bash | |
host=$1 | |
awk -v host=$host ' | |
/^|1/ { | |
split($1, a, /\|/) | |
key=a[3] | |
hmac=a[4] |
View WRTest.cs
This file contains 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
using System; | |
using System.Net; | |
public class WRTest | |
{ | |
public static void Main () | |
{ | |
WebRequest req = WebRequest.Create("http://www.google.com"); | |
HttpWebResponse resp = (HttpWebResponse) req.GetResponse(); | |
Console.WriteLine(resp.StatusDescription); |
View isLUHNValid.sh
This file contains 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
#!/usr/bin/env bash | |
. library.sh | |
pan="$1" | |
isLUHNValid "$pan" |