Skip to content

Instantly share code, notes, and snippets.

View leafac's full-sized avatar

Leandro Facchinetti leafac

View GitHub Profile
// ScreenWriter
#text = "alskdjf alkdfjkls fal kfs aflksafsdjkl fsdk jl jklsad kljfds
jkladfj kldfj klfd jslfasd jklfdk jlas akjlsdfs jklfd jkladf jlkfda jklafd jklfd
ajlksfdal jkfas djksdfaj klafsd jl ljafsd jlkfdasl jadfs lkjfdas lkadlfs kfs klaj
fajldks";
#font = "Arial";
//@param1:scroll_progress 'Progress' 0 0 1 0.5 0.0001
//@param3:font_size 'Font Size (px)' 40 20 250 150 4
@leafac
leafac / gist:abc9e837ba1bb6affba7d573bcbce312
Created December 29, 2021 19:11
REAPER 6.43 Stack Trace
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: REAPER [71676]
Path: /Applications/REAPER.app/Contents/MacOS/REAPER
Identifier: com.cockos.reaper
Version: 6.43.0_0e4a702u (6.43.0_0e4a702u)
Code Type: ARM-64 (Native)
Parent Process: REAPER [71667]
slider1:mode=0<0,0,0{Send,Receive}>Mode
slider2:track.send=0<0,0,0{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128}>Track
slider3:tracks.receive=0<0,0,0{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128}>Tracks
slider4:_global.leafac_Inter_plugin_communication.blocks=1<1,10,1>Blocks
options:gmem=leafac_Inter_plu
@leafac
leafac / notes.md
Last active November 24, 2022 15:31
Performance Measurement

Notes on Performance Measurement

  • Measurement of interest: The response time of the 99%ile under normal load (which tends to be a relatively low load for the time being)

  • Difference in terminology:

    • Me

      ------------------ RESPONSE TIME ---------------------------------
      

--------- LATENCY ---------------------

slider1:frequency=0<20,20000,1>Frequency
@init
zero_crossing_state = 0;
period.samples = 0;
sample.previous = 0;
@sample
// DVD Logo
colorspace = 'RGBA';
background = input_track(0);
overlay = 0;
gfx_blit(background, 0);
input_info(overlay, overlay_width, overlay_height);
@leafac
leafac / notes.md
Created February 3, 2023 19:36
Image/Video Proxy
- Use Got hook
- Use Transform in pipeline
  • Approaches
    • Question about current approach: sindresorhus/got#2060
    • Alternative approach that doesn’t work: Using Caddy. That would be nice because it would reduce the load on the application. But it could be limiting moving forward because it’d be more difficult to do HMAC, and so forth. But none of this matters, Caddy doesn’t seem to support proxying to arbitrary upstreams.
    • Alternative approach: Use a standalone image proxy & fire it up behind Caddy, alongside the main application.
    • Alternative approach: await on headers & only pipe the body?
  • Tests: