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
#!/bin/sh | |
# https://www.vultr.com/docs/installing-docker-compose-on-coreos | |
set -e | |
mkdir -p /opt/bin | |
export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1` | |
curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose | |
echo "docker-compose version $DOCKER_COMPOSE_VERSION has been installed: /opt/bin/docker-compose" |
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
#!/bin/sh | |
PORT=443 | |
if [ $# -lt 1 ] || [ $# -gt 2 ]; then | |
echo "Usage: $0 <domain> [<port>] (without https://)" 1>&2 | |
echo " default port is $PORT" 1>&2 | |
exit 1 | |
fi |
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 python | |
# coding=utf-8 | |
import argparse | |
import getpass | |
import os | |
import random | |
import string | |
from passlib.hash import (bcrypt, des_crypt, md5_crypt, sha1_crypt, |
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
-----BEGIN DH PARAMETERS----- | |
MIICCAKCAgEArL0ftH2X30K9qsEXtF6SO3u+1swdWTevg11zWjuHhPt7cBf6P/sh | |
INDugYinDWnz3SGqXY8T24ttiB/dsnpwEdH0lPbxSgGcngTJRVGP8qQ7hHv3VCz1 | |
inlZUVv5Wgqzjv16cDjl07oQ2gwVgfwEsBVQovafHP3wN8Wk0nq/XmbewoPA+WS/ | |
GzqAHKH2iIgrwInwuaQZTUprxt7WT4ezk4sHVZHhXjXAjANx7MrpK9z+d0Sw5c/5 | |
LqW9pBBju9+lL51414lzQS+gpoYuaMx+axCH97j9NrS7PSlXzMmlp2KkcSwpAtQq | |
8RJgULN95Yov9K14txgXiygRp+w6g2oVsRfBxP+Aoe9OSUbbc1VQuz2vyQKux1Nd | |
FyUUC13waE1lerbf0DOSugp6U0h4uzG3H++HsVqjn1+qcGundnwtE63fioynnS/h | |
t4X+Ai4eJHrSSLDqIat38MQTFel2zd1MNvZITsH9QXOdfsQf39QzLdOyNK6tn0Cg | |
YLc9qFRGt9kRUYJU6o30381F2ASsZZloaV85TuQsuEJBx3oOmhVavruFjyxxOLlq |
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
#!/bin/sh | |
cat /sys/firmware/devicetree/base/model |
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
#!/bin/bash | |
# vCenter/PSC SSL Certificate Updater. | |
# For more information see | |
# https://wiki.9r.com.au/display/9R/LetsEncrypt+Certificates+for+vCenter+and+PSC | |
# Copyright (c) 2018 - Rob Thomas - xrobau@linux.com | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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
#!/bin/sh | |
# Select next source in Input menu | |
KEY=AppleSymbolicHotKeys.61.value.parameters.2 | |
# Shift-space | |
VALUE=131072 | |
plutil -replace "$KEY" -integer "$VALUE" -o /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist | |
cp ~/Library/Preferences/com.apple.symbolichotkeys.plist{,.backup} | |
cp /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist |
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 python | |
import hashlib | |
import getpass | |
def main(): | |
password = getpass.getpass("Password:") | |
print("NTLM hash: " + hashlib.new('md4', password.encode('utf-16le')).hexdigest()) |