Keybase proof
I hereby claim:
- I am musha68k on github.
- I am musha68k (https://keybase.io/musha68k) on keybase.
- I have a public key whose fingerprint is 3AC3 9645 FDE9 3C57 6A42 451A 56DA C4A3 1372 6D99
To claim this, I am signing this object:
let rec fold ~init ~f = function | |
[] -> init | |
| x :: xs -> fold ~init:(f init x) ~f xs | |
let length xs = | |
xs | |
|> fold ~init:0 ~f:(fun acc _ -> acc + 1) | |
let reverse xs = | |
xs |
#!/usr/bin/env ruby | |
require 'vpim' | |
require 'vcardio' | |
files = Dir.glob "*.vcf" | |
vcards = files.map do |f| | |
vc_old = Vpim::Vcard.decode(File.read(f))[0] | |
# proper vcard 4.0 wasn't accepted by the iCLoud web-interface |
I hereby claim:
To claim this, I am signing this object:
our base operating system is Mac OSX which we will simply call osx
on top of osx we run a hypervisor (e.g. xhyve, vmware, virtualbox)
on top of our hypervisor we are running a virtual machine with CoreOS as our docker_engine (with the help of or without vagrant)
on top of our docker_engine we run an arbitrary set of docker_container instances most of which are comprised of a "bespoke" docker_image of our own; a certain "microservice" in development
# the shotgun way.. | |
exec = require('child_process').exec | |
exec('source ~/.zshrc') |
``` | |
notify_me() { | |
osascript -e "display notification \"$1\" with title \"$2\"" | |
} | |
alias notify_me=notify_me | |
``` |
We need a Docker container engine which will enable us to run docker containers on OSX. | |
So the first step to get there is to create a Vagrant virtual machine image with the provider of your choice. | |
Vagrantfile: | |
``` | |
Vagrant.configure(2) do |config| | |
config.vm.box = 'ubuntu/trusty64' |
How to fix skewed system times on multiple vagrant instances
Set current date of darwin/osx on all local vagrant instances:
date | pbcopy && vagrant status | grep running | awk '{print $1}' | xargs -I {} vagrant ssh {} -c "sudo date --s \"$(pbpaste)\""
Set current date of darwin/osx on all vagrant instances:
date | pbcopy && vagrant global-status | grep running | awk '{print $1}' | xargs -I {} vagrant ssh {} -c "sudo date --s \"$(pbpaste)\""
Example: https://denpa.moe/~syrup/himawari8.png |