SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowSPC TAB
- switch to previous bufferSPC b b
- switch buffers
This file contains hidden or 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
types = %{ | |
my_enum: {:parameterized, Ecto.Enum, values: [:a, :b, :c]} | |
} | |
# https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/type.ex#L771 | |
defp cast_fun({:parameterized, mod, init_params}), do: &mod.cast(&1, mod.init(init_params)) |
This file contains hidden or 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
{ | |
"captainVersion": "2", | |
"documentation": "Based on https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-18-04", | |
"displayName": "Docker Container Registry", | |
"dockerCompose": { | |
"version": "3.3", | |
"services": { | |
"$$cap_appname": { | |
"image": "registry:2", | |
"containerHttpPort": "5000", |
This file contains hidden or 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
{ | |
"captainVersion": "2", | |
"documentation": "Taken from https://docs.ghost.org/", | |
"displayName": "", | |
"description": "Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License", | |
"dockerCompose": { | |
"services": { | |
"$$cap_appname": { | |
"depends_on": [ | |
"$$cap_appname-db" |
This file contains hidden or 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
{ | |
"captainVersion": "2", | |
"documentation": "Adapted from https://thelounge.chat/docs/install-and-upgrade#docker.", | |
"description": "The Lounge is a self-hosted web IRC client with modern features, persistent connections, and multi-user support.", | |
"displayName": "The Lounge", | |
"dockerCompose": { | |
"version": "3.3", | |
"services": { | |
"$$cap_appname": { | |
"image": "thelounge/thelounge:$$cap_lounge_version", |
This file contains hidden or 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
{ | |
"captainVersion": "2", | |
"documentation": "Taken from https://docs.drone.io/intro/gitea/single-machine/", | |
"displayName": "Drone.io", | |
"description": "Drone is a self-service Continuous Delivery platform for busy development teams", | |
"dockerCompose": { | |
"version": "2", | |
"services": { | |
"$$cap_appname-runner": { | |
"image": "drone/drone-runner-docker:$$cap_drone_runner_version", |
This file contains hidden or 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
;; -*- mode: emacs-lisp; lexical-binding: t -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Layer configuration: | |
This function should only modify configuration layer settings." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
This file contains hidden or 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
defmodule MyAppWeb.AcmeChallengeController do | |
@moduledoc """ | |
Controller used for cerbot renewal. | |
This module reads a file's contents and provides a value back for domain validation. | |
With this module you'll need to add a new route to the router. | |
# router.ex | |
scope "/.well-known/acme-challenge", ProgressPlumWeb do |
I hereby claim:
- I am alexgaribay on github.
- I am alexgaribay (https://keybase.io/alexgaribay) on keybase.
- I have a public key ASCwCbE6fa5y9oWo5QBhQ2-eEGCH7eWbreCwqgMIuUfz8Ao
To claim this, I am signing this object:
This file contains hidden or 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
defmodule App.Worker do | |
def do_work(topic, user) do | |
# async work goes here | |
App.Endpoint.broadcast! topic, "work_done", %{ "user" => user } | |
end | |
end | |
defmodule App.Channel do |