To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
# Run this in the project repo from the command-line | |
# http://stackoverflow.com/a/4593065/99923 | |
git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}' |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
Add the following line at the top of your .ovpnfile to prevent it from routing all network traffic on your Mac through | |
the VPN: | |
route-nopull | |
Next add the following line to allow the VPN to reroute traffic ONLY for a given IP address / domain (if you need to enable it | |
for a domain you can use its IP address): | |
route 1.2.3.4 |
$ convert -density 200 INPUT.pdf -rotate 0.3 +noise Multiplicative -format pdf -quality 85 -compress JPEG -colorspace gray OUTPUT.pdf
#!/bin/bash | |
set -eu -o pipefail | |
roman_numerals=$(echo $1 | tr a-z A-Z) | |
# Test that it is valid | |
[[ "${roman_numerals//[IVXLCDM]/}" == "" ]] || \ | |
{ echo Roman numerals ${roman_numerals} contains invalid characters ; \ | |
exit 1 ;} |
I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.
Here is what I had messed up, which you also probably did:
This file live in the .circleci/
directory of your project, named config.yml
:
version: 2.1
jobs:
skip:
working_directory: ~/PROJECT_DIRECTORY # If we leave this out, the build will break with missing required arguments
docker: [ image: circleci/ruby:2.6.5 ] # This doesn't really matter, but just choose any docker image
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
// 1. Create a table on Airtable, and make URL/text columns with these names: | |
// URL, Title, Description, Image, Feed | |
// | |
// 2. Add a Form view. Click "Open form", then copy the URL. Set `airtable_form_url` | |
// below to that URL. | |
// | |
// 3. Create a new bookmark in your web browser, and paste in the code below. Whenever | |
// you're on a page you want to save, click the bookmark ("bookmarklet", technically). | |
// You'll go to the airtable form, and the columns listed above will be prefilled. | |
// |
#!/bin/bash | |
# Change the date under CUTOFF_DATE to change how far back you want to delete | |
# Install the GitHub CLI tool by following the instructions in the official documentation: https://cli.github.com/manual/installation | |
# Make sure you auth first to github with 'gh auth login' | |
REPO_OWNER="OWNER" | |
REPO_NAME="REPO_NAME" | |
CUTOFF_DATE=$(date --date='30 days ago' +'%Y-%m-%dT%H:%M:%SZ') | |
PAGE=1 |