This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| object GraphExample { | |
| import akka.actor.ActorSystem | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.scaladsl._ | |
| import FlowGraph.Implicits._ | |
| import scala.util.{ Failure, Success } | |
| import scala.concurrent.ExecutionContext.Implicits._ | |
| implicit val system = ActorSystem("Sys") | |
| implicit val materializer = ActorMaterializer() |
| /* | |
| I am trying to implement cons / car / cdr in terms of lambdas, then | |
| implement `each` to walk the cons cells, but I can't seem to get the `each` | |
| function to work :( | |
| */ | |
| @discardableResult func cons(_ x: Any, _ y: Any) -> (((Any, Any) -> Any) -> Any) { | |
| return { m in m(x, y) } | |
| } |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| cons = fn (a, b) -> fn x -> x.(a, b) end end | |
| car = fn (p) -> p.(fn (q, _) -> q end) end | |
| cdr = fn (p) -> p.(fn (_, q) -> q end) end | |
| each = fn (list, func) -> | |
| iter = fn (list, func, next) -> | |
| (fn (a, nil) -> func.(a) | |
| (a, b) -> func.(a); next.(b, func, next) | |
| end).(car.(list), cdr.(list)) | |
| end | |
| iter.(list, func, iter) |
| # Run interactive TTY | |
| $ docker run -it <image> /bin/sh | |
| $ docker run -it <image> --entrypoint /bin/sh | |
| # Publish a container’s port(s) to the host | |
| $ docker run -p 127.0.0.1:80:80/tcp -it <image> | |
| # Publish all exposed ports to random ports | |
| $ docker run -P -it <image> |
| import UIKit | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
| let window = UIWindow(frame: UIScreen.main.bounds) |
Steps to add a service catalog to a kubernetes cluster on DigitalOcean
log into do and provision a new cluster
set up service catalog via helm (commands pulled from https://kubernetes.io/docs/tasks/service-catalog/install-service-catalog-using-helm/#before-you-begin)
helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com| cask_args appdir: "/Applications" | |
| tap "homebrew/cask-fonts" | |
| brew "mas" | |
| #### LAPTOPS #### | |
| #cask "tripmode" | |
| #### LAPTOPS #### | |
| mas "Boop", id: 1518425043 |