-
Install Secretive using
brew install --cask secretive
, then launch Secretive App. -
Create a new secret that requires authentication, named
gitsign
. You will need to perform biometric authentication each time this key is used. -
Create a new secret that notify only, named
github
. This key is used for performing git pull/push/fetch from GitHub. -
Add
gitsign
public key to SSH "Signing keys" on Github Settings Page. Title is not required.
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 | |
CF_API_TOKEN="redacted" | |
# check api token is valid | |
curl -X GET "https://api.cloudflare.com/client/v4/accounts/8bb6305b489fc12377ff03ffbcbadbc6/tokens/verify" \ | |
-H "Authorization: Bearer $CF_API_TOKEN" \ | |
-H "Content-Type:application/json" | |
# reset to defaults (includes weak ciphers) | |
curl --request PATCH \ |
captive.apple.com, www.apple.com, clients3.google.com, clients4.google.com, connectivitycheck.gstatic.com, www.gstatic.com, edge-http.microsoft.com, msftconnecttest.com, detectportal.brave-http-only.com, detectportal.firefox.com, spectrum.s3.amazonaws.com, cloudflareportal.com, cloudflarecp.com, cloudflareok.com, connectivity-check.warp-svc, connectivity.cloudflareclient.com
See:
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 zsh | |
curl -o commandlinetools-linux.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip && unzip commandlinetools-linux.zip && rm commandlinetools-linux.zip |
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
# Measure Bandwidth (using https://www.speedtest.net/apps/cli) | |
#wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz -O /tmp/speedtest.tgz | |
wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-aarch64.tgz -O /tmp/speedtest.tgz | |
tar -xzvf /tmp/speedtest.tgz -C /usr/sbin/ | |
rm -f /tmp/speedtest.tgz /usr/sbin/speedtest.* | |
chmod +x /usr/sbin/speedtest | |
/etc/init.d/qosify stop | |
speedtest --format=tsv > /tmp/speedtest.tsv && | |
BANDWIDTH_DOWN="$(($(cut -f6 /tmp/speedtest.tsv) / 125000))mbit" && |
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
# Install asdf | |
brew install coreutils git | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0 | |
cat <<EOF >> ~/.zshrc | |
. "$HOME/.asdf/asdf.sh" | |
# append completions to fpath | |
fpath=(${ASDF_DIR}/completions $fpath) | |
# initialise completions with ZSH's compinit | |
autoload -Uz compinit && compinit | |
EOF |
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
FROM keybaseio/client:stable-slim | |
RUN apt-get update && apt-get install -y expect | |
COPY keybase-provision.sh /provision.sh | |
RUN chmod +x /provision.sh | |
CMD ["/provision.sh", "keybase", "chat", "send", "--channel", "'#general'", "stockbitcrypto", "'Hello World from bot'"] |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/credentials" | |
"github.com/aws/aws-sdk-go/aws/session" |
NewerOlder