Skip to content

Instantly share code, notes, and snippets.

View bcardarella's full-sized avatar
Out sailing

Brian Cardarella bcardarella

Out sailing
View GitHub Profile

Section

# The dependency chain is a bit complex, but think of Foo and a

defmodule Lib.Foo do
  defmacro __using__(opts) do
    quote do
      @foo_opts unquote(opts)
 @before_compile Lib.Foo

LiveView Native Livebook

Mix.install(
  [
    {:plug_cowboy, "~> 2.5"},
    {:jason, "~> 1.0"},
    {:phoenix, "~> 1.7.2", override: true},
    {:phoenix_live_view, "~> 0.18.2"},
    {:phoenix_live_reload, "~> 1.4.1", override: true},

Regenerating SSL Cert

cd ssl
rm -rf *
openssl req \
    -newkey rsa:2048 \
    -x509 \
    -nodes \
 -keyout server.key \
** (MatchError) no match of right hand side value: {:error, {{:EXIT, {:undef, [{Comet.ChromeWorker, :start_link, [[name: :"test get object"]], []}, {:supervisor, :do_start_child, 2, [file: 'supervisor.erl',line: 365]}, {:supervisor, :handle_start_child, 2, [file: 'supervisor.erl', line: 724]}, {:supervisor, :handle_call, 3, [file: 'supervisor.erl', line: 422]}, {:gen_server, :try_handle_call, 4, [file: 'gen_server.erl', line: 615]}, {:gen_server, :handle_msg, 5, [file: 'gen_server.erl', line: 647]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}}, {:child, :undefined, Comet.ChromeWorker, {Comet.ChromeWorker, :start_link, [[name: :"test get object"]]}, :permanent, 5000, :worker, [Comet.ChromeWorker]}}}
upstream phoenix {
server 127.0.0.1:4000;
}
server {
myapp.com
location @phoenix {
include proxy_params;
proxy_redirect off;
➜ high-tide-app git:(master) ✗ ember build
⠸ Buildingbroccoli-babel-transpiler is opting out of caching due to a plugin that does not provide a caching strategy: `function () {
return {
visitor: {
VariableDeclaration: function VariableDeclaration(path, file) {
var node = path.node,
parent = path.parent,
scope = path.scope;
if (!isBlockScoped(node)) return;
[?25hRegistering hook -> configure[build]
[?25hRegistering hook -> build[build]
[?25hRegistering hook -> configure[scp]
[?25hRegistering hook -> willBuild[scp]
[?25hRegistering hook -> build[scp]
[?25hRegistering hook -> willUpload[scp]
[?25hRegistering hook -> upload[scp]
[?25hExecuting pipeline
[?25h|
[?25h+- configure
[
{
"type": "title",
"content": "Extraordinary User Experiences. Expert Software Engineering - DockYard",
"tagId": "title"
},
{
"type": "meta",
"attrs": {
"content": "Extraordinary User Experiences. Expert Software Engineering - DockYard",
server {
server_name production.example.com;
return 301 https://example.com/$request_uri;
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});