bash <(curl -s https://gist.githubusercontent.com/jroehl/e96378b14cf35213bfdae060d965ec6f/raw/unpublishAndDelete.sh) "contentTypeId"
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"additionalProperties": false, | |
"definitions": { | |
"AppDefinition": { | |
"additionalProperties": false, | |
"properties": { | |
"bundle": { | |
"$ref": "#/definitions/Link<\"AppBundle\">", | |
"description": "Link to an AppBundle" |
Interactive bash script to open the sqlite database directory (core data) of a specific app installed in Xcode simulator
Needs jq to be installed
Needs xcrun to be installed (xcode-select --install
)
Needs /usr/libexec/PlistBuddy to be installed (xcode-select --install
)
. <(curl -s https://gist.githubusercontent.com/jroehl/e5230754a95d7c243a3c6290668d94fb/raw/find-simulator-coredata.sh)
Bash script to create a billing report task in kanbanflow
Needs jq >= 1.5
curl -s https://gist.githubusercontent.com/jroehl/8ba7eb7280278518a52889613dcc02d3/raw/create-billing-report.sh | bash -s "--month=1 --year=2020"
import to require
import (.*) from (.*)[;]?$
const $1 = require($2);
export to module.exports
export ((?:async )?(?:function)*(?:class)* ([a-zA-Z0-9]+)[ ]?\([\s\S]*?\n}\n)
$1
Needs yq (
pip install yq
) anddig
to be installed
curl -s https://gist.githubusercontent.com/jroehl/25dcd6a35d5cf7809d3274439a1e6783/raw/update-ddns.sh | bash -s "host" "domain" "password"
This script is useful if you want to set environment variables dynamically in circleci config.yml
file. The environment variables used in this case are used for go-suitesync.
The env variable
master_NSCONF_ACCOUNT
will overwrite theNSCONF_ACCOUNT
variable - if set!
curl -sL https://gist.github.com/jroehl/30d8c212babd5414ad921a298bebec87/raw/set-circleci-env.sh | bash
#! /bin/bash | |
# Execute locally | |
# source ./aws-assume-role.sh AccountId Role Region [LifetimeCredentials] | |
# Execute from remote | |
# source <(curl -sL https://gist.github.com/jroehl/c0789a3c4dca94ecf6958a9f4e408b8a/raw/aws-assume-role.sh) AccountId Role Region [SessionName] [LifetimeCredentials] | |
if ( | |
[[ -n $ZSH_EVAL_CONTEXT && $ZSH_EVAL_CONTEXT =~ :file$ ]] || | |
[[ -n $KSH_VERSION && $(cd "$(dirname -- "$0")" && |
#!/bin/bash | |
# Update the nameserver of a domain with the nameservers of a specified hostedzone | |
# aws-update-nameservers.sh HostedZoneId | |
HOSTED_ZONE_ID=$1 | |
RESULT=(`aws route53 get-hosted-zone --query '[DelegationSet.NameServers,HostedZone.Name]' --output text --region us-east-1 --id $HOSTED_ZONE_ID `) | |
NAMESERVERS=("${RESULT[@]:1}") | |
SANITIZED_NAMESERVERS=${NAMESERVERS[@]/#/Name=} |