ATTENTION: use at your own risk, no warranty of any kind This seems to work in High Sierra, but may break in future versions
cat > /tmp/lockscreen.c <<EOF
// lockscreen.c
extern void SACLockScreenImmediate();
int main()
{
#!/usr/bin/env bash | |
# | |
# this script is a helpful wrapper for Helm CLI, when using TLS enabled Tiller | |
# See https://github.com/helm/helm/blob/master/docs/tiller_ssl.md | |
# | |
# === NOTE === | |
# It will attempt to download Helm binary to match Helm Server version | |
# if it's not found locally | |
# | |
# === INSTRUCTIONS === |
############################################################################## | |
# this JQ script parses Cloudflare API call listing Firewall Rules | |
# and generates cloudflare_filter_and cloudflare_firewall_rule | |
############################################################################## | |
# Copyright (c) 2020 Anastas Dancha (@anapsix) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
<?php | |
// if running in Alpine, install the following | |
// apk -U add php7 php7-mbstring php7-simplexml php7-json php7-phar php7-openssl curl | |
// curl -sS https://getcomposer.org/installer | php | |
// php composer.phar require aws/aws-sdk-php | |
// | |
// export AWS_ACCESS_KEY_ID=... | |
// export AWS_SECRET_ACCESS_KEY=... | |
if (getenv('KINESIS_STREAM')) { | |
$streamName = getenv('KINESIS_STREAM'); |
#!/usr/bin/env bash | |
# | |
# DEPRECATED | |
# use k8s-vault instead | |
# https://gist.github.com/anapsix/b5af204162c866431cd5640aef769610 | |
# | |
# | |
# Wrapper for kubectl to establish SSH connection to jumphost, | |
# though which to proxy requests to K8s API | |
# |
#!/usr/bin/env bash | |
set -e | |
set -u | |
set -o pipefail | |
renew_cert() { | |
local cert="${1:-}" | |
local renew="n" | |
if [[ "${cert:-_unset_}" == "_unset_" ]]; then |
#!/bin/bash | |
case $1 in | |
--name) | |
shift | |
zonename="$1" | |
hostedzoneid=($(aws route53 list-hosted-zones | jq -r ".HostedZones[] | select(.Name == \"$zonename.\") | .Id" | cut -d'/' -f3)) | |
if [ ${#hostedzoneid[@]} -eq 0 ]; then | |
echo >&2 "Could not find Route53 zone for \"$zonename\", exiting.." | |
exit 1 |
#!/usr/bin/env bash | |
# | |
# returns the following | |
# [curl exit code],[total request time],[http response code],[number of redirects],[effective url] | |
# | |
if [[ ${1} == '' ]]; then | |
echo >&2 'missing URL to check' | |
echo >&2 "Usage: $0 google.com" | |
exit 1 |
I hereby claim:
To claim this, I am signing this object: