Application | Type | Macports? | Port | Alternative |
---|---|---|---|---|
direnv | formula | yes | direnv | |
fzf | formula | yes | fzf | |
sqlite | formula | yes | sqlite3 | |
xz | formula | yes | xz | |
gnu-getopt | formula | yes | getopt | |
goenv | formula | no | curl-style | |
k3d | formula | yes | k3d | |
pqrs | formula | no |
This file contains 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 | |
for i in {1..10} | |
do | |
curl -H "Accept: text/plain" https://icanhazdadjoke.com/ >> jokes.txt | |
echo -e "\n" >> jokes.txt | |
done |
This file contains 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 | |
SONY_ID="sony-wh-1000-xm4" | |
SONY_MAC="f8-4e-17-38-53-18" | |
PLT_ID="plantronics-bb-pro-2" | |
PLT_MAC="bc-f2-92-d4-11-25" | |
declare -A headphones | |
headphones["$SONY_ID"]="$SONY_MAC" | |
headphones["$PLT_ID"]="$PLT_MAC" |
This file contains 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
#################################################################### | |
# Create compute environment and job queue for AWS Batch with Boto3 | |
# Daisuke Miyamoto | |
# 20200330 | |
# | |
import boto3 | |
import botocore.waiter | |
from botocore.exceptions import WaiterError | |
import time |
To install vagrant with the vmware plugin, follow these steps:
- Download [VMware Fusion 12 Player][1] for macOS
- Use license key from your myVMware account and install the application
- Allow VMware Fusion to control system events within the app when prompted
- Enable the accessibility preference at System Preferences > Security & Privacy > Accessibility > VMware Fusion
- Install [vagrant][2]:
brew tap hashicorp/tap && brew install vagrant
- Find the box you want to install from Vagrant [Cloud][3] or my boxes on [Github][4]
- Install the [vagrant-vmware-desktop plugin][5]:
vagrant plugin install vagrant-vmware-desktop
- Install the [VMware utility][6] for vagrant:
brew install --cask vagrant-vmware-utility
References:
- https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/about-authentication-to-github
- https://docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication#providing-a-2fa-code-when-signing-in-to-the-website
- https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
- https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification
Steps:
- Install git, gh
This file contains 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
// | |
// WARNING: Not a complete executable program, this is for demonstration purposes | |
// | |
fn main() -> Result<(), CustomError> { | |
/// .. get input and output from the user | |
for input in inputs { | |
dump_contents(input, output)?; | |
} | |
I found this user management strategy somewhere, and it's been working great for me:
git config --global --unset user.name
git config --global --unset user.email
git config --global --unset user.signingkey
git config --global user.useConfigOnly true
git config --global user..name ""
This file contains 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
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
pname = "avro-tools"; | |
version = "1.9.2"; | |
src = fetchurl { | |
url = | |
"https://repo1.maven.org/maven2/org/apache/avro/avro-tools/${version}/${pname}-${version}.jar"; |
This file contains 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 | |
# List of applications to operate on | |
# Make sure the name of the application matches the formulae on brew.sh | |
applications=( | |
1password | |
docker | |
firefox | |
google-chrome |
NewerOlder