Skip to content

Instantly share code, notes, and snippets.

View SDemonUA's full-sized avatar
🏠
Working from home

Dmitry Sokol SDemonUA

🏠
Working from home
View GitHub Profile
@SDemonUA
SDemonUA / README.md
Last active September 8, 2022 12:07
Collect nodejs app traces into jaeger

Configure

  • add tracer.js into app folder
  • install npm packages required in tracer.js
  • start app with node -r tracer.js app.js or require reacer.js and call await tracer.start() before app init
  • start jaeger service and connect it ot app network if required
docker run --rm --name jaeger --network app-network \
 -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
@SDemonUA
SDemonUA / TouchSetting.gt
Created August 12, 2022 12:10
TouchSettings.gt for Teclast x98pro (not original)
[Setting]
;UpdateCFG=1
SendCFG=1 ;Send CFG to touch IC when loading driver
SleepDisable=0
PhysicalXsize=1970 ;Physical size the unit is 0.1mm
PhysicalYsize=1475
[Support]
ESD=1 ;Driver supports ESD recovery processing
;SensorID=0 ;According to the different SensorID send different configuration
@SDemonUA
SDemonUA / perl-funcs.sublime-completions
Last active May 6, 2019 15:49
Simple sublime-completions for perl (not done yet)
{
"scope" : "source.perl",
"completions":[
{"trigger":"AUTOLOAD\tload undefined method", "contents":"sub AUTOLOAD {\nmy \\$program = \\$AUTOLOAD;\n\\$program =~ s/.*:://;\n}"},
{"trigger":"abs\tabsolute value function ", "contents":"abs(${1:VALUE});"},
{"trigger":"accept\taccept an incoming socket connect ", "contents":"accept(${1:NEWSOCKET},${2:GENERICSOCKET});"},
{"trigger":"alarm\tschedule a SIGALRM ", "contents":"alarm(${1:SECONDS});"},
{"trigger":"atan2\tarctangent of Y/X in the range -PI to PI ", "contents":"atan2(${1:Y},${2:X});"},
{"trigger":"BEGIN\tcode block executed as soon as possible", "contents":"BEGIN { ${1:CODE} }"},
{
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
"selector": "source.js"