Skip to content

Instantly share code, notes, and snippets.

View bryanasdev000's full-sized avatar

Bryan A. S. bryanasdev000

View GitHub Profile
Taken from the original thread: https://github.com/jitsi/lib-jitsi-meet/issues/1082#issuecomment-616948457
###Fresh install of jitsu meet with JWT token authentication on Ubuntu Bionic Beaver 18.04
#add dns for meet.mydomain.com to point to public ip for vm
# Open ports on network security group
# 80/tcp
# 443/tcp
# 4443/tcp
# 10000/udp
@alexrios
alexrios / syllabus.md
Last active June 27, 2021 09:40
Go Concorrente

Go Concorrente

Intro

  • Concorrência
  • Scheduler
    • internals (semantics)
  • Deadlocks, Livelocks e starvation
  • O que é CSP?

Nivel 1

@lightdiscord
lightdiscord / README.md
Last active September 30, 2021 02:06
Troobleshooting of controller hot plugging for steam-run

Every command is done under a nix-shell opened with the following command.

$ nix-shell -p gcc SDL2 steam-run

First thing compile the executable to debug controller hot plugging.

$ gcc ./main.c -o ./main -lSDL2
@srgvg
srgvg / ansible_inventory_plugin_example.py
Created May 26, 2020 09:17
This is a boiler plate example that could be used to write an inventory plugin It shows the use case of retrieving data from a remote API, which might be a slow or costly action, you may want to cache. What needs to be initialized in Ansible to use a cache is shown, too.
# This is a boiler plate example that could be used to write an inventory plugin.
# It shows the use case of retrieving data from a remote API, which might be a
# slow or costly action, you may want to cache.
# What needs to be initialized in Ansible to use a cache is shown, too.
# This example by by Serge van Ginderachter <serge@vanginderachter.be>
# Copyright (c) 2017 Ansible Project
# Copyright (c) 2020 Serge van Ginderachter <serge@vanginderachter.be>
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
@kaychaks
kaychaks / configuration.nix
Last active March 10, 2022 16:00
matrix-jitsi-nixos
# accompanying blog - https://kaushikc.org/posts/matrix-jitsi-nixos.html
# /etc/nixos/configuration.nix
imports =
let
nur-no-pkgs =
import (
builtins.fetchTarball
"https://github.com/nix-community/NUR/archive/master.tar.gz"
@tintoy
tintoy / td-agent.Dockerfile
Created November 15, 2017 04:24
Fluentd on Kubernetes for ASP.NET Core logging (via Serilog)
FROM gcr.io/google_containers/fluentd-elasticsearch:1.22
RUN apt-get update && \
apt-get install -y --no-install-recommends make gcc g++ libc6-dev ruby-dev && \
td-agent-gem install fluent-plugin-concat --version '~>1.0.0' --no-ri --no-rdoc && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false make gcc g++ libc6-dev ruby-dev
# Copy the Fluentd configuration file for concatenating lines in docker logs.
COPY td-agent.conf /etc/td-agent/td-agent.conf
local function string(o)
return '"' .. tostring(o) .. '"'
end
local function recurse(o, indent)
if indent == nil then indent = '' end
local indent2 = indent .. ' '
if type(o) == 'table' then
local s = indent .. '{' .. '\n'
local first = true
@bzon
bzon / flux.alerts.yaml
Created May 12, 2020 18:24
Prometheus Flux alerts
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
app: prometheus-operator
release: prometheus
name: alertmanager-flux
namespace: monitoring
spec:
groups:
@molotovbliss
molotovbliss / terminalrc
Created December 14, 2017 08:41
Dracula Theme for XFCE4 Terminal
ColorBackground=#28282a2a3636
ColorForeground=#f8f8f8f8f2f2
ColorSelection=#363639394848
ColorBold=#f4f47676c3c3
ColorCursor=#5050fafa7b7b
TabActivityColor=#5050fafa7b7b
ColorPalette=#000000000000;#9a9a40404646;#90907979b3b3;#929298986363;#3d3d98985a5a;#9a9a53538282;#3a3a4d4d5b5b;#8bfc8bfc8ccc;#4d4d4d4d4d4d;#ffff55555555;#cacaa9a9fafa;#f1f1fafa8c8c;#5050fafa7b7b;#ffff7979c6c6;#8b8be9e9fdfd;#f8f8f8f8f2f2
ColorSelectionUseDefault=FALSE
ColorBoldUseDefault=FALSE
groups:
- name: datetime
rules:
- record: daily_saving_time_belgium
expr: |
(vector(0) and (month() < 3 or month() > 10))
or
(vector(1) and (month() > 3 and month() < 10))
or
(