Skip to content

Instantly share code, notes, and snippets.

View ghenry's full-sized avatar
🐧
Working on SentryPeer

Gavin Henry ghenry

🐧
Working on SentryPeer
View GitHub Profile
@ghenry
ghenry / main5.dart
Created June 21, 2020 20:37 — forked from RodBr/main5.dart
Themes plus persistence
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart'; //STEP 4 - Import shared_preferences
void main() {
Get.lazyPut<ThemeController>(
() => ThemeController()); //STEP 5 - lazy create ThemeController
runApp(MyApp());
}
#
T 2019/07/21 20:22:45.813195 127.0.0.1:59362 -> 127.0.0.1:2012 [AP]
{"method":"SessionSv1.AuthorizeEvent","params":[{"GetAttributes":true,"AuthorizeResources":false,"GetMaxUsage":true,"ProcessThresholds":true,"ProcessStats":false,"GetSuppliers":false,"SuppliersMaxCost":"","SuppliersIgnoreErrors":false,"AttributeIDs":null,"ThresholdIDs":null,"StatIDs":null,"Tenant":"surevoip","ID":"f91bf65","Time":"2019-07-21T20:22:45.813087307Z","Event":{"Account":"229199","Category":"mo_call","Destination":"180055555555","OriginHost":"10.255.0.50","OriginID":"146726364","RequestType":"*pseudoprepaid","RoamingOn":"4477850140","SetupTime":"*now","ToR":"*voice","Usage":"24h"},"Limit":null,"Offset":null}],"id":49}
##
T 2019/07/21 20:22:45.813471 127.0.0.1:59390 -> 127.0.0.1:2012 [AP]
{"method":"AttributeSv1.ProcessEvent","params":[{"AttributeIDs":null,"Context":"*sessions","ProcessRuns":null,"Tenant":"surevoip","ID":"f91bf65","Time":"2019-07-21T20:22:45.813087307Z","Event":{"Account":"229199","Category":"mo_call","Destination
root@aio ~]# cat /etc/kazoo/kamailio/local.cfg
################################################################################
## ROLES
################################################################################
## Enabled Roles
#!trydef DISPATCHER_ROLE
#!trydef NAT_TRAVERSAL_ROLE
#!trydef REGISTRAR_ROLE
#!trydef PRESENCE_ROLE
#!trydef RESPONDER_ROLE
@ghenry
ghenry / conference.conf.xml
Created December 18, 2017 14:31 — forked from thehunmonkgroup/conference.conf.xml
ClueCon talk 2016 - Videoconferencing with Verto, example code/config/links/slides
<configuration name="conference.conf" description="Audio Conference">
<!-- Other conference config... -->
<profiles>
<profile name="video-mcu-stereo">
<!-- Other profile config... -->
<!-- Mux the inbound video streams into one outbound stream. -->
<param name="video-mode" value="mux"/>
<!-- Enable the live array, minimize outbound video encoding. -->
<param name="conference-flags" value="livearray-sync|livearray-json-status|minimize-video-encoding"/>
<!-- Use this video layout by default if no other is specified. -->
@ghenry
ghenry / taking screenshot in linux with C
Created August 3, 2016 15:02 — forked from bozdag/taking screenshot in linux with C
This C program takes the whole screenshot of the root window for a given display and saves it in PNG file format.
/*
Grabs a screenshot of the root window.
Usage : ./scr_tool <display> <output file>
Example : ./scr_tool :0 /path/to/output.png
Author: S Bozdag <selcuk.bozdag@gmail.com>
*/
@ghenry
ghenry / apology101.markdown
Created March 22, 2012 20:35 — forked from avdi/apology101.markdown
How to apologize

Chances are your head's spinning right now. That accusation of bias caught you off guard, you got kind of defensive, and now all hell has broken loose. You're feeling attacked on all sides. You're a good person at heart, and having all these people treat you like the antichrist is pretty upsetting.

You need to say something, but you're probably not in the best headspace to write copy right now. So to help you along, here's my 100% guaranteed-or-you-money-back scandal defusement apology template: