brew install plantuml fswatch
# Download plantuml-watch.sh
chmod +x ./plantuml-watch.sh
mkdir -p /usr/local/bin
mv ./plantuml-watch.sh /usr/local/bin/plantuml-watch
# Confirm /usr/local/bin is in PATH or mv script to directory in PATH
echo $PATH
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
ENGLISH - balloons | |
------------------ | |
happy birthday | |
████████████████████████████████████████████████████ | |
ARABIC - بالونات (balloons) | |
---------------------------- | |
عيد ميلاد سعيد (happy birthday) |
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
a --------------------- | |
à (grave) | |
á (acute) | |
â (circumflex) | |
ä (umlaut or diaeresis) | |
æ (ash or æsh) [a ligature or diphthong] | |
ã (tilde) | |
å (overring) | |
ā (macron) | |
ǎ (caron or hacek / háček / haček) iOS 17 and later only |
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 -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install openssl readline sqlite3 xz zlib | |
brew install pyenv | |
pyenv install 3.11.3 | |
pyenv global 3.11.3 | |
pyenv version | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc |
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/sh | |
# WARNING: Putting your git repo in your web root can be dangerous. | |
SLACK_WEBHOOK_URL=$(git config --get hooks.slack.deploy-webhook-url) | |
SLACK_USERNAME="Git Deploy Bot (Develop)" | |
REPO_PATH="$(dirname ${BASH_SOURCE[0]})/.." | |
GIT_ORIG_HEAD=$(git rev-parse ORIG_HEAD | awk '{print $1}') | |
GIT_HEAD=$(git rev-parse HEAD | awk '{print $1}') |
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/sh | |
wp --user=1 db import ./wc-delete-all-products.sql | |
wp --user=1 wc tool run regenerate_product_lookup_tables |
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
# Solution 1 | |
echo | openssl s_client -showcerts -servername example.com -connect 127.0.0.1:443 2>/dev/null | openssl x509 -inform pem -noout -text | |
# Solution 2 | |
curl --insecure --resolve example.com:443:127.0.0.1 -vvI https://example.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
def plot_dataset(x, y, legend_loc='lower left'): | |
fig, ax = plt.subplots() | |
ax.scatter( | |
x[y == 1, 0], | |
x[y == 1, 1], |
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
import numpy as np | |
import statsmodels.discrete.discrete_model as sm | |
import matplotlib as mpl | |
import pandas as pd | |
from patsy import dmatrices | |
from matplotlib import pyplot as plt | |
data = pd.read_csv("challenger-data.csv") |
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
import os | |
import requests | |
from datetime import datetime, timedelta | |
from newsapi import NewsApiClient | |
from bs4 import BeautifulSoup | |
# Configurations | |
newsapi = NewsApiClient(api_key='****') | |
output_path = './corpus/' |
NewerOlder