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 | |
| URL=https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip | |
| AWS=/usr/local/aws-cli | |
| BIN=/usr/local/bin | |
| TMP=$(mktemp -d /tmp/update-awscli.XXXXXX) | |
| ZIP=$TMP/awscli.zip | |
| echo [+] Downloading $URL | |
| curl -so $ZIP $URL |
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 | |
| if [[ $# -lt 2 ]]; then printf "Usage:\n$0 <src> <dst>\n"; exit; fi | |
| function abspath { # https://stackoverflow.com/a/23002317/226502 | |
| if [[ -d $1 ]]; then (cd "$1"; pwd) | |
| else | |
| if [[ $1 = /* ]]; then echo "$1" | |
| elif [[ $1 == */* ]]; then echo "$(cd "${1%/*}"; pwd)/${1##*/}" | |
| else echo "$(pwd)/$1" |
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
| #!/bin/bash | |
| QUERY=$1 | |
| # https://stackoverflow.com/a/246128/226502 | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| /usr/bin/osascript ${SCRIPT_DIR}/music-search.scpt "${QUERY}" |
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
| curl -sx 127.0.0.1:8080 http://burp/cert \ | |
| | openssl x509 -inform DER \ | |
| | sudo tee /usr/local/share/certificates/burp.crt \ | |
| && sudo update-ca-certificates |
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
| #!/bin/sh | |
| defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers \ | |
| -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.barebones.bbedit;}' |
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 python3 | |
| import http.server | |
| import socketserver | |
| HOST = "localhost" | |
| PORT = 8000 | |
| class HttpRequestHandler(http.server.SimpleHTTPRequestHandler): |
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
| <project name="dex2jar" basedir="." default="build.jar"> | |
| <property name="lib.dir" value="lib"/> | |
| <property name="build.dir" value="build"/> | |
| <property name="dist.dir" value="dist"/> | |
| <property name="dist.jar" value="${dist.dir}/dex2jar.jar"/> | |
| <target name="init" description="Create Directories"> | |
| <mkdir dir="${build.dir}"/> | |
| <mkdir dir="${dist.dir}"/> | |
| <mkdir dir="${lib.dir}"/> |