For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
mvn archetype:generate \ | |
-DarchetypeGroupId=org.apache.flink \ | |
-DarchetypeArtifactId=flink-quickstart-scala \ | |
-DarchetypeVersion=1.13.2 \ | |
-DgroupId=io.dev.flink \ | |
-DartifactId=flink-scala-project \ | |
-Dversion=0.1 \ | |
-DinteractiveMode=false |
NOTE: a more up-to-date version of this can be found on my blog
A few days ago, version 1.9 of the Nix package manager was released. From the release notes:
nix-shell can now be used as a #!-interpreter. This allows you to write scripts that dynamically fetch their own dependencies.
#!/bin/bash | |
# | |
# Bash `flock` example. | |
# Works on: Linux, BSD | |
# Doesn't work on: MacOS | |
# The file which represent the lock. | |
LOCKFILE="`basename $0`.lock" | |
# Timeout in seconds. |
VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.
This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated
# I really enjoyed "Bash One Liner - Compose Music From Entropy in /dev/urandom" | |
# From http://blog.robertelder.org/bash-one-liner-compose-music/ | |
# | |
# This is a collection of one liners that work on Mac OSX | |
# You need sox | |
brew install sox | |
# Major scale | |
cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | sox -v 0.25 -traw -r16000 -b32 -e signed-integer - -tcoreaudio |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
# https://macos-defaults.com/ | |
# https://www.defaults-write.com | |
# reset with: defaults delete -g <FEATURE> | |
# dock | |
# position | |
defaults write com.apple.dock "orientation" -string "right" | |
# icon size | |
defaults write com.apple.dock "tilesize" -int "36" |