Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
@dreamcat4
dreamcat4 / README.md
Created December 13, 2021 14:34 — forked from bahamas10/README.md
Void Linux on Raspberry Pi 4

Summary

I'm able to get a Void Linux image (32bit, raspberry pi 2 image) to boot on the raspberry pi 4. Currently, I can get it to boot and even handle upgrading via xbps-install -Su (networked over ethernet), however I can't seem to get it to see the internal wlan (wifi) device.

huge shout out to kodifies on this reddit post for helping me to get this going.

@dreamcat4
dreamcat4 / dell-perc-h310-how-to-flash.sh
Last active February 6, 2024 17:14
how to flash LSI SAS 2008 hba dell perc h310 to lsi 8112-8i firmware p19 or p20
# ======
# how to flash LSI SAS 2008 hba dell perc h310 raid jbod card
# for uefi motherboards, must boot uefi and use sas2flash.efi
# select uefi in the moot menu --> launches boof.efi. then:
# official UEFI oprom downloads are now only available from the product page of lsi 8210-8i card
# however we found an un official mirror / off site backup of previous files
# https://www.broadcom.com/products/storage/host-bus-adapters/sas-9210-8i#downloads
@dreamcat4
dreamcat4 / zfs-build-ubuntu.sh
Created April 14, 2020 08:17
How to install zfs (latest) on ubuntu (latest) with kernel (latest), as of 14th April 2020, with the patches
# ======
# install zfs from source (instructions for ubuntu)
# last tested (worked for me!) on ubuntu 19.10, kernel 5.6.2, zfs-0.8.3
#
# https://github.com/zfsonlinux/zfs/wiki/Building-ZFS
# https://github.com/zfsonlinux/zfs/wiki/Custom-Packages#debian-and-ubuntu
sudo apt install -y build-essential pkg-config autoconf libtool gawk alien fakeroot gdebi wget zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libaio-dev parted lsscsi ksh libssl-dev libelf-dev linux-headers-$(uname -r) python3 python3-dev python3-setuptools python3-cffi < /dev/null
@dreamcat4
dreamcat4 / ikev2.xml
Created June 11, 2021 18:15 — forked from dapao9999/ikev2.xml
IKEv2 VPN profile for Apple devices, Pre-Shared Key(PSK)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- IKEv2 IPSec VPN profile for Apple devices, Pre-Shared Key(PSK), no username password.
References:
https://wiki.strongswan.org/projects/strongswan/wiki/AppleIKEv2Profile
https://developer.apple.com/library/mac/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
https://help.apple.com/configurator
The extension of this file should be .mobileconfig -->
@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 / 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