Skip to content

Instantly share code, notes, and snippets.

11:54:33.952 [error] GenServer #PID<0.289.0> terminating
** (Membrane.ParentError) Duplicated names in children specification: [:audio_timestamper, :audio_payloader, :audio_cmaf_muxer]
(membrane_core 0.5.2) lib/membrane/core/parent/child_life_controller/startup_handler.ex:26: Membrane.Core.Parent.ChildLifeController.StartupHandler.check_if_children_names_unique/2
(membrane_core 0.5.2) lib/membrane/core/parent/child_life_controller.ex:27: Membrane.Core.Parent.ChildLifeController.handle_spec/2
(membrane_core 0.5.2) lib/membrane/core/pipeline/action_handler.ex:53: Membrane.Core.Pipeline.ActionHandler.do_handle_action/4
(membrane_core 0.5.2) lib/membrane/core/pipeline/action_handler.ex:29: Membrane.Core.Pipeline.ActionHandler.handle_action/4
(bunch 1.3.0) lib/bunch/enum.ex:121: anonymous fn/3 in Bunch.Enum.try_reduce/3
(elixir 1.10.2) lib/enum.ex:3686: Enumerable.List.reduce/3
(elixir 1.10.2) lib/enum.ex:2161: Enum.reduce_while/3
(membrane_core 0.5.2) lib/membrane/core/callback_han
Multi.new()
|> Multi.insert(:item_without_hash_id, changeset)
|> Multi.run(:playlist, fn _repo, %{item_without_hash_id: playlist} ->
playlist
|> Playlist.changeset_generate_hash_id()
|> Repo.update()
end)
# iterate over the localized_titles and add to db
# pass in playlist that was just inserted
|> Multi.run(:add_localized_titles, fn _repo, %{playlist: playlist} ->
@mazz
mazz / gist:cb6d69bc76727319e6a19cd28b80caa4
Created February 19, 2020 23:39
decent traefik config
version: '3'
services:
traefik:
container_name: traefik
image: traefik:latest
networks:
- traefik
restart: unless-stopped
command:
version: '3.7'
services:
proxy:
image: traefik:v2.1
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy-network
version: '3.7'
services:
proxy:
image: traefik:v1.7
ports:
- 80:80
- 443:443
networks:
- proxy-network
version: '3.7'
services:
# proxy:
# image: traefik:v1.7
# ports:
# - 80:80
# - 443:443
# networks:
# - proxy-network
version: '3.7'
services:
proxy:
image: traefik:v1.7
ports:
- 80:80
- 443:443
networks:
- proxy-network
import axios from 'axios'
import { Message, MessageBox } from 'element-ui'
import { UserModule } from '@/store/modules/user'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
timeout: 5000
// withCredentials: true // send cookies when cross-domain requests
})
<template>
<div class="app-container">
<el-dropdown trigger="click" @command="handleSetChannel">
<div>
<el-col :span="4" class="text-center">
<router-link class="pan-btn green-btn" to="/table/complex-table">
Select Channel
</router-link>
</el-col>
</div>
@mazz
mazz / add_playlist.ex
Last active November 9, 2019 23:53
how to make a list of maps/structs
def add_playlist(
ordinal,
basename,
small_thumbnail_path,
med_thumbnail_path,
large_thumbnail_path,
banner_path,
media_category,
localized_titles,
channel_id