Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
@dreamcat4
dreamcat4 / alsactl.dump-config.conf
Created December 11, 2023 19:48
output of alsactl dump-cfg
cards.YMF724 'cards.YMF744'
cards.YMF724F 'cards.YMF744'
cards.YMF740 'cards.YMF744'
cards.YMF740C 'cards.YMF744'
cards.YMF754 'cards.YMF744'
cards.CMIPCI 'cards.CMI8338'
cards.CMI8738 'cards.CMI8338'
cards.CMI8738-SWIEC 'cards.CMI8338-SWIEC'
cards.CMI8738-MC4 'cards.CMI8738-MC6'
cards.'E-mu APS' 'cards.EMU10K1'
{
"id": 58,
"type": "PipeWire:Interface:Device",
"version": 3,
"permissions": [
"r",
"w",
"x",
"m"
],
@dreamcat4
dreamcat4 / vpn.sh
Created November 8, 2023 21:55 — forked from bluewalk/vpn.sh
VPN.SH script to tunnel specific VLAN through a WireGuard tunnel on an UDM Pro
#!/bin/sh
INTERFACE="vpn0"
MARK=100
TABLE="vpn"
SCRIPT_NAME="/etc/wireguard/scripts/vpn.sh"
# set this to the interface(s) on which you want WAN traffic to
# be routed through vpn. separate interfaces with spaces.
# e.g. "br0" or "br0 br1" etc.
@dreamcat4
dreamcat4 / GetNordVPNWireGuardDetails.md
Created November 8, 2023 21:52 — forked from bluewalk/GetNordVPNWireGuardDetails.md
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@dreamcat4
dreamcat4 / acer-x34p.edid.txt
Created May 30, 2023 17:03
edid monitor tools = cvt, wxedid, ddcutil interrogate
Timing characteristics
Horizontal scan range.... 73-180kHz
Vertical scan range...... 30-120Hz
Video bandwidth.......... 640MHz
CVT standard............. Not supported
GTF standard............. Not supported
Additional descriptors... None
Preferred timing......... Yes
Native/preferred timing.. 3440x1440p at 60Hz
@dreamcat4
dreamcat4 / aixun-t3a-openocd.steps.md
Last active December 15, 2023 19:53
openocd stlinkv2 - connecting to aixun t3a swd debugging port

Connect aixun 3ta over SWD pins / stlinkv2

This instructions covers how to connect via openocd on linux platform. And assuming you have the STLINKv2 hardware dongle. And that you have wired it up correctly, to the aixun t3a's debugging port.

NOTE:

  • Case 1) The swd debugging port should normally only be connected up between your PC and the soldering station. When the target device (the aixun t3a) is fully powered off, and it's mains cable unplugged from the outlet. To avoid having dual powering (both connected), or to avoid grounding / reference issues.
  • Case 2) However for live debugging scenarios, or working on firmwares etc. Then you typically would instead disconnect the +3v3 power pin from the SWD port on the STLINKv2. And just tie the GNDs together. To keep the ground reference only. Then have the target DUT (the mcu in the aixun) being powered independantly by itself. Just being aware that this is more risky or delicate situation than when passively powering from the STLINKv2 in the safer
@dreamcat4
dreamcat4 / add-this-into-your-profile-or-login-script.sh
Last active September 18, 2022 13:27
Hex binary diff 2 files, with your own choice / variety of preferred diff tools
# source discussion, over on superuser:
# https://superuser.com/questions/125376/how-do-i-compare-binary-files-in-linux
hex-binary-diff()
{
_diffcmd="$1"
shift
unset _diff_opts
_arg="$1"
[id:~] $ alsa-capabilities --samplerates
1: `DICE' Analog audio output on device Pro40-00822d
-hardware address: hw:0,0 (or hw:Pro4000822d,0)
-sample rates per format: S32_LE: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
-usb audio class: (n/a)
-streamfile: (n/a)
-character device: /dev/snd/pcmC0D0p
-monitor file: /proc/asound/card0/pcm0p/sub0/hw_params
2: `DICE' Analog audio output on device Pro40-00822d
-hardware address: hw:0,1 (or hw:Pro4000822d,1)
@dreamcat4
dreamcat4 / README.md
Created August 7, 2022 13:30 — forked from cellularmitosis/README.md
Arduino LCD display for HP 34401A