Skip to content

Instantly share code, notes, and snippets.

View asticode's full-sized avatar

Quentin Renard asticode

View GitHub Profile
@asticode
asticode / main.go
Last active January 12, 2020 17:08
func main() {
// Create logger
l := log.New(log.Writer(), log.Prefix(), log.Flags())
// Run bootstrap
bootstrap.Run(bootstrap.Options{
MenuOptions: []*astilectron.MenuItemOptions{{
Label: astilectron.PtrStr("File"),
SubMenu: []*astilectron.MenuItemOptions{
{
@asticode
asticode / index.js
Last active December 2, 2017 14:49
let index = {
about: function(html) {
let c = document.createElement("div");
c.innerHTML = html;
asticode.modaler.setContent(c);
asticode.modaler.show();
},
init: function() {
// Wait for astilectron to be ready
document.addEventListener('astilectron-ready', function() {
func main() {
bootstrap.Run(bootstrap.Options{
Asset: Asset,
RestoreAssets: RestoreAssets,
})
}
{
"app_name": "Astilectron demo",
"icon_path_darwin": "resources/icon.icns",
"icon_path_linux": "resources/icon.png",
"icon_path_windows": "resources/icon.ico",
"output_path": "output"
}
(gdb) bt
#0 0x00007fe615e2796b in priv_conn_keepalive_tick_unlocked (agent=agent@entry=0x564d22c940a0) at conncheck.c:835
#1 0x00007fe615e28074 in priv_update_selected_pair (agent=agent@entry=0x564d22c940a0, component=component@entry=0x564d22c96b20, pair=0x564d22caa880) at conncheck.c:1433
#2 0x00007fe615e2bac8 in priv_map_reply_to_conn_check_request (resp=0x7fe6163abbf0, remote_candidate=0x564d22c91f30, local_candidate=0x564d22c91b40, from=0x7fe6163ac660, sockptr=0x564d22c9e750, component=0x564d22c96b20, stream=0x564d22c966a0, agent=<optimized out>) at conncheck.c:2752
#3 0x00007fe615e2bac8 in conn_check_handle_inbound_stun (agent=agent@entry=0x564d22c940a0, stream=stream@entry=0x564d22c966a0, component=component@entry=0x564d22c96b20, nicesock=0x564d22c9e750, from=0x7fe6163ac660, buf=buf@entry=0x564d22c8c480 "\001\001", len=64) at conncheck.c:3681
#4 0x00007fe615e2403a in agent_recv_message_unlocked (agent=agent@entry=0x564d22c940a0, stream=stream@entry=0x564d22c966a0, component=component@entry=0x564d22
Janus commit: f7b02e767debae86f1cea9880e3e29162bb79d30
Compiled on: Mon Feb 25 21:11:56 UTC 2019
Failed to load /opt/janus/etc/janus/janus.jcfg, trying the INI instead...
[ERR] [config.c:janus_config_parse:191] -- Error reading configuration file 'janus.jcfg'... error 2 (No such file or directory)
---------------------------------------------------
Starting Meetecho Janus (WebRTC Server) v0.6.1
---------------------------------------------------
Checking command line arguments...
New connection on REST API: ::ffff:10.0.0.6
[transports/janus_http.c:janus_http_handler:1166] Got a HTTP POST request on /janus...
[transports/janus_http.c:janus_http_handler:1167] ... Just parsing headers for now...
[transports/janus_http.c:janus_http_headers:1777] X-Real-IP: 10.255.0.2
[transports/janus_http.c:janus_http_headers:1777] X-Forwarded-For: 10.255.0.2
[transports/janus_http.c:janus_http_headers:1777] Host: event-janus.livemix.local
[transports/janus_http.c:janus_http_headers:1777] Connection: close
[transports/janus_http.c:janus_http_headers:1777] Content-Length: 46
[transports/janus_http.c:janus_http_headers:1777] origin: https://bo.livemix.local
[transports/janus_http.c:janus_http_headers:1777] user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.98 Chrome/71.0.3578.98 Safari/537.36
(gdb) bt
#0 0x00007f34bec5acee in priv_conn_keepalive_tick_unlocked (agent=agent@entry=0x562338179040) at conncheck.c:1303
#1 0x00007f34bec5b3d7 in priv_update_selected_pair (agent=agent@entry=0x562338179040, component=component@entry=0x56233817cca0, pair=pair@entry=0x5623381a0e40) at conncheck.c:1749
#2 0x00007f34bec5ff40 in priv_map_reply_to_conn_check_request (resp=0x7f34bf1e1be0, remote_candidate=0x562338177ea0, local_candidate=0x562338177ab0, from=0x7f34bf1e2660, sockptr=0x562338174de0, component=0x56233817cca0, stream=0x56233817c640, agent=<optimized out>) at conncheck.c:3252
#3 0x00007f34bec5ff40 in conn_check_handle_inbound_stun (agent=agent@entry=0x562338179040, stream=stream@entry=0x56233817c640, component=component@entry=0x56233817cca0, nicesock=0x562338174de0, from=0x7f34bf1e2660, buf=buf@entry=0x562338193440 "\001\001", len=64) at conncheck.c:4246
#4 0x00007f34bec56daa in agent_recv_message_unlocked (agent=agent@entry=0x562338179040, stream=stream@entry=0x56233817c640, component=component@en
[general]
configs_folder = /opt/janus/etc/janus
plugins_folder = /opt/janus/lib/janus/plugins
transports_folder = /opt/janus/lib/janus/transports
events_folder = /opt/janus/lib/janus/events
debug_level = 7
[media]
rtp_port_range = 10000-10200
@asticode
asticode / main.go
Last active January 12, 2020 17:03
astibob index
package main
import (
"flag"
"fmt"
"log"
"github.com/asticode/go-astibob"
"github.com/asticode/go-astibob/index"
)