-
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
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
Example: https://denpa.moe/~syrup/himawari8.png |
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
var a = function(){ | |
var index; | |
function log(){ | |
console.log(index); | |
} | |
function iterate(){ | |
log(); | |
if(index>1) setTimeout(iterate, 1000); |
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
var a = function(){ | |
var index; | |
function log(){ | |
console.log(index); | |
} | |
function iterate(){ | |
log(); | |
if(index>1) setTimeout(iterate, 1000); |
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
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' |
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
``` | |
notify_me() { | |
osascript -e "display notification \"$1\" with title \"$2\"" | |
} | |
alias notify_me=notify_me | |
``` |
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
# the shotgun way.. | |
exec = require('child_process').exec | |
exec('source ~/.zshrc') |
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:
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 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 |
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
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 |
OlderNewer