Skip to content

Instantly share code, notes, and snippets.

View mitchbne's full-sized avatar
🪁
Unblocking every developer on the planet

Mitch Smith mitchbne

🪁
Unblocking every developer on the planet
View GitHub Profile
@mitchbne
mitchbne / quarantine.sh
Created May 9, 2024 04:15
Make an executable file safe to run on MacOS
local filename=$1
if [ -z "$filename" ]; then
echo "No file specified"
echo "Usage: ./quarantine.sh <filename>"
return 1
fi
xattr -d com.apple.quarantine $filename
#!/bin/bash
set -e;
PAYAUS_DIR=$(git rev-parse --show-toplevel)
PAYAUS_RUBY_VERSION=$(cat $PAYAUS_DIR/.ruby-version);
PAYAUS_NODE_VERSION=$(cat $PAYAUS_DIR/.nvmrc);
run-setup-macbook-pro() {
echo "Please run the 'setup_macbook_pro.sh' script first".
#!/bin/bash
set -e;
# Variables
TERMINAL_RC_FILE="$HOME/.zshrc"
DEFAULT_NODE_VERSION="14"
DEFAULT_RUBY_VERSION="2.7.3"
# Install Homebrew
var getConnectButtonsOnPage = () => {
var buttons = document.querySelectorAll("button.search-result__action-button")
var searchText = "Connect";
var found = []
buttons.forEach((button) => {
if (button.textContent.trim() == searchText) { found.push(button) }
})
return found
}