Skip to content

Instantly share code, notes, and snippets.

View danryu's full-sized avatar
🦄
Focusing

Dan G danryu

🦄
Focusing
View GitHub Profile
@danryu
danryu / gist:06d377b94436131715c9c125c657bae7
Last active March 2, 2023 08:47
gst-meet - test single file recording from meeting - 0.4.2/0.7.0 -
$ GST_DEBUG=3 ./target/release/gst-meet --verbose=GST_DEBUG=3 --web-socket-url=wss://0n3fyo5l.kv.mydomain.com:30702/xmpp-websocket --xmpp-domain=meet.jitsi --muc-domain=muc.meet.jitsi --room-name=video --video-codec=vp9 --recv-pipeline-participant-template="webmmux name=muxer ! queue ! filesink location={participant_id}.webm
opusenc name=audio ! muxer.audio_0
vp9enc name=video ! muxer.video_0"
2023-03-01T16:54:37.304495Z INFO Connecting XMPP WebSocket to wss://0n3fyo5l.kv.mydomain.com:30702/xmpp-websocket
2023-03-01T16:54:38.358824Z DEBUG No cached session for DnsName(DnsName(DnsName("0n3fyo5l.kv.mydomain.com")))
2023-03-01T16:54:38.360202Z DEBUG Not resuming any session
2023-03-01T16:54:38.677142Z DEBUG Using ciphersuite TLS13_AES_256_GCM_SHA384
2023-03-01T16:54:38.677232Z DEBUG Not resuming
2023-03-01T16:54:38.677357Z DEBUG TLS1.3 encrypted extensions: [ServerNameAck]
2023-03-01T16:54:38.6773
@danryu
danryu / gist:4df440fc3365b97413c3329da5b566d6
Created June 8, 2022 15:42
Qt 6.3.0 windeployqt - inc webview, webengine
2022-06-08T14:27:01.5834222Z Requested labels: windows-2019
2022-06-08T14:27:01.5834265Z Job defined at: koord-live/koord-realtime/.github/workflows/autobuild.yml@refs/heads/testgui2
2022-06-08T14:27:01.5834288Z Waiting for a runner to pick up this job...
2022-06-08T14:27:03.9258170Z Job is waiting for a hosted runner to come online.
2022-06-08T14:27:25.4795529Z Job is about to start running on the hosted runner: GitHub Actions 5 (hosted)
2022-06-08T14:27:30.7884907Z Current runner version: '2.292.0'
2022-06-08T14:27:30.7913227Z ##[group]Operating System
2022-06-08T14:27:30.7914046Z Microsoft Windows Server 2019
2022-06-08T14:27:30.7914882Z 10.0.17763
2022-06-08T14:27:30.7915463Z Datacenter
@danryu
danryu / gist:43b126c5e22c435469d773f0281de4c5
Created June 8, 2022 10:05
Qt 6.3.0 AppImage build with QtWebEngineProcess
[user@thinkpad1 myapp]$ env | grep QM
QMAKE=/home/user/Qt/6.3.0/gcc_64/bin/qmake
[user@thinkpad1 myapp]$ linuxdeploy --appdir appdir_gui --plugin qt --output appimage
linuxdeploy version 1-alpha (git commit ID 56760df), GitHub actions build 84 built on 2022-06-01 01:50:27 UTC
-- Creating basic AppDir structure --
Creating directory appdir_gui/usr/bin/
Creating directory appdir_gui/usr/lib/
Creating directory appdir_gui/usr/share/applications/
Creating directory appdir_gui/usr/share/icons/hicolor/
@danryu
danryu / gist:489f5307972c803b5364f8002d14d362
Created June 7, 2022 12:01
linuxdeploy - no QtWebEngineProcess bundled
user@thinkpad1 build-gui]$ make install INSTALL_ROOT=../appdir_gui
/home/user/Qt/6.3.0/gcc_64/bin/qmake -install qinstall -exe myapp ../appdir_gui/usr/bin/myapp
strip ../appdir_gui/usr/bin/myapp
/home/user/Qt/6.3.0/gcc_64/bin/qmake -install qinstall /media/data/code/myapp/distributions/myapp.desktop ../appdir_gui/usr/share/applications/myapp.desktop
/home/user/Qt/6.3.0/gcc_64/bin/qmake -install qinstall /media/data/code/myapp/distributions/myapp.png ../appdir_gui/usr/share/icons/hicolor/512x512/apps/myapp.png
/home/user/Qt/6.3.0/gcc_64/bin/qmake -install qinstall /media/data/code/myapp/distributions/upapp.1 ../appdir_gui/usr/share/man/man1/upapp.1
[user@thinkpad1 build-gui]$ cd ../
[user@thinkpad1 myapp]$ linuxdeploy --appdir appdir_gui/ --plugin=qt --output=appimage
linuxdeploy version 1-alpha (git commit ID 56760df), GitHub actions build 84 built on 2022-06-01 01:50:27 UTC
@danryu
danryu / razer_quirk_util.py
Created April 10, 2021 15:28
Utility to scrape openrazer project for Razer Blade USB VID numbers for libinput quirk configuration
import re
import requests
modelpattern = re.compile("RazerBlade\w+")
vidpattern = re.compile("0x\w+")
content = requests.get("https://raw.githubusercontent.com/openrazer/openrazer/master/daemon/openrazer_daemon/hardware/keyboards.py")
razerdata=[]
for line in content.iter_lines(decode_unicode=True):
razerdata.append(line)
@danryu
danryu / gist:4618225877559c66d3ec13f07604b3da
Created January 21, 2021 10:11
terraform plan error on k8s cluster node_pool size change
$ terraform plan -var="do_token=TOK" -var="access_id=ACCID" -var="secret_key=SECKEY"
digitalocean_domain.testexamplelive: Refreshing state... [id=test.example.live]
digitalocean_database_cluster.postgres-example: Refreshing state... [id=498Xax21-5670-4d7f-a067-6e29735ea054]
digitalocean_domain.examplelive: Refreshing state... [id=example.live]
digitalocean_spaces_bucket.demoarchive: Refreshing state... [id=demoarchive]
digitalocean_container_registry.example: Refreshing state... [id=example]
digitalocean_spaces_bucket.demostems: Refreshing state... [id=demostems]
digitalocean_spaces_bucket.exampledl: Refreshing state... [id=exampledl]
digitalocean_kubernetes_cluster.service_live: Refreshing state... [id=sasasd-285d-4ca5-83c9-a0c98842919b]
digitalocean_record.mx0: Refreshing state... [id=119298494]
@danryu
danryu / docker-cleanup-resources.md
Created October 29, 2020 09:08 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

#!/usr/bin/env bash
# Makes unmaintainable Go plugin for phpstorm compatible with actual versions.
# https://github.com/go-lang-plugin-org/go-lang-idea-plugin
#
# Run ./go_compiler.sh path/to/downloaded/Go/plugin.zip version_of_phpstorm(e.g. 182, 173, etc.)
# For instance
# ./go_compiler.sh /home/user/downloads/Go-0.13.1947.zip 173
# New relevant file will be created in the same directory as initial archive. It will have name Go.zip.
{
"id": "sub_CzocMPomzkwhHl",
"object": "subscription",
"application_fee_percent": null,
"billing": "charge_automatically",
"billing_cycle_anchor": 1528242904,
"cancel_at_period_end": false,
"canceled_at": null,
"created": 1528242904,
"current_period_end": 1530834904,
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
<title>AttributeError
at /payments/confirm/1/</title>
<style type="text/css">
html * { padding:0; margin:0; }
body * { padding:10px 20px; }