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 | |
| # | |
| ## example running it from cron | |
| # MAILTO="" | |
| # SHELL=/bin/bash | |
| # VERBOSE=1 | |
| # CMD_ON_FAILURE='/etc/init.d/nginx reload' | |
| # * * * * * root timeout -k 2 5 /tmp/check_dns.sh upstream.server.com 2>>/var/log/check_dns.log | |
| # * * * * * root sleep 10 && sed -e :a -e '$q;N;501,$D;ba' -i /var/log/check_dns.log | |
| # |
| #!/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 |
| <?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'); |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| #================================================================ | |
| # DESCRIPTION | |
| # Script retrieves files from S3 via SQS at maximum warp. | |
| #================================================================ | |
| # AUTHOR Anastas Dancha (@anapsix) | |
| # COPYRIGHT Copyright (c) Anastas Dancha (@anapsix) | |
| # LICENCE GNU General Public License | |
| #================================================================ |
remaining tickets count from Eventbrite, without API key