View register_users.ex
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
[debug] QUERY OK source="users" db=1.8ms decode=2.1ms queue=1.4ms idle=130.8ms | |
SELECT TRUE FROM "users" AS u0 WHERE (u0."email" = $1) LIMIT 1 ["kostas@live.com"] | |
#Ecto.Changeset< | |
action: nil, | |
changes: %{email: "kostas@live.com", password: "rubf6TFg"}, | |
errors: [], | |
data: #Elijah.Accounts.User<>, | |
valid?: true | |
> | |
#Ecto.Changeset< |
View simplecombine.swift
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
// | |
// ViewController.swift | |
// combinetest | |
// | |
// Created by Michael on 2020-08-25. | |
// Copyright © 2020 Michael. All rights reserved. | |
// | |
import Cocoa | |
import Combine |
View NYXAVCEncoder.swift
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
import VideoToolbox | |
import AVFoundation | |
private var __canHWAVC: Bool = false | |
private var __tokenHWAVC: dispatch_once_t = 0 | |
public protocol NYXAVCEncoderDelegate : class | |
{ | |
func didEncodeFrame(frame: CMSampleBuffer) | |
func didFailToEncodeFrame() |
View democrash.erl
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
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 |
View multi_insert_with_ecto.ex
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
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} -> |
View gist:cb6d69bc76727319e6a19cd28b80caa4
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
version: '3' | |
services: | |
traefik: | |
container_name: traefik | |
image: traefik:latest | |
networks: | |
- traefik | |
restart: unless-stopped | |
command: |
View docker-compose.yml
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
version: '3.7' | |
services: | |
proxy: | |
image: traefik:v2.1 | |
container_name: traefik | |
restart: unless-stopped | |
security_opt: | |
- no-new-privileges:true | |
networks: | |
- proxy-network |
View docker-compose.yml
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
version: '3.7' | |
services: | |
proxy: | |
image: traefik:v1.7 | |
ports: | |
- 80:80 | |
- 443:443 | |
networks: | |
- proxy-network |
View docker-compose.yml
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
version: '3.7' | |
services: | |
# proxy: | |
# image: traefik:v1.7 | |
# ports: | |
# - 80:80 | |
# - 443:443 | |
# networks: | |
# - proxy-network |
View docker-compose.yml
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
version: '3.7' | |
services: | |
proxy: | |
image: traefik:v1.7 | |
ports: | |
- 80:80 | |
- 443:443 | |
networks: | |
- proxy-network |