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
#!/usr/bin/env bash | |
. library.sh | |
pan="$1" | |
isLUHNValid "$pan" |
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
#!/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 |
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
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); |
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
#!/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")) | '\ |
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
#!/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:&/' |
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
#!/usr/bin/env bash | |
host=$1 | |
awk -v host=$host ' | |
/^|1/ { | |
split($1, a, /\|/) | |
key=a[3] | |
hmac=a[4] |
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
// 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 |
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
test_reloc.exe | |
test_reloc.o |