Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
[id@void-live etc]$ bat --pager=never -lbash /etc/66rc.conf
───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: /etc/66rc.conf
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ # Copyright (c) 2015-2021 Eric Vidal <eric@obarun.org>
2 │ # All rights reserved.
3 │ #
4 │ # This file is part of Obarun. It is subject to the license terms in
5 │ # the LICENSE file found in the top-level directory of this
6 │ # distribution.
@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 / everything-on-linux-desktop.md
Last active November 13, 2021 19:26
What is left to get working well on linux desktop?

My *. everything on Linux Desktop Checklist

... but what else are you still left hoping for out of the current linux user experience 2021+ onwards? leave it in the comments section.

  • Pipewire Audio Nirvana
    • Fix audio tools roughness around edges
      • Helvum Patchbay GUI
      • RaySession audio session manager
  • Ability to login and try out Wayland + NVIDIA (with the proper GBM support)
  • On a STABLE distro (ubuntu 21.10)
@dreamcat4
dreamcat4 / apt-sources-fixer
Last active November 2, 2021 18:16
Update the apt sources.list.d/* files, to point to most recent matching release
#!/bin/sh
# apt-sources-fixer:
#
# * Get online, download full list of ubuntu release codenames
# * Check the contents of the APT sources.list.d/* subfolder
# * Re-enables any 3rd party sources that got disabled by the distro's do-release-upgrade
# * For each apt source, go online and see if there is a newer release for it
# * Update the apt sources.list.d/* files, to point to most recent matching release
#
@dreamcat4
dreamcat4 / wayland-global-hotkey-instructions.md
Last active May 2, 2023 09:06
wayland gnome - how to setup a global hotkey, to trigger something useful inside of an application, etc.

Global Hotkeys in Wayland (Gnome) - 2021

1st task - Configure just 1 global hotkey

  • Figure out how to set up 1 global hotkey in your chosen desktop environment,
  • Assign to it some simple dummy target ommand. Which you know always works. And is easily verified

That will ensure you can check and test that a specific hotkey assignment is actually definately working independantly of the specific desired action. This is important because the desktop environment can also occupy pre-configured 'system keys' and if they are already being mapped to something other default system wide actions then (likely) will silently be ignored.

So being independant here from the subsequent specific desired target actions in some special app or whatever. Which themselves definately might have other own different issues or not behave correctly. And especially when being invoked from the compositor via this method (rather than a logged in user terminal etc.)

[id:~/Mega/dev/bst-863] $ openocd -s tcl -f interface/ftdi/tumpa.cfg -f interface/ftdi/swd-resistor-hack.cfg -c "transport select swd" -f target/stm32f1x.cfg -c "init; reset halt" -d4
Open On-Chip Debugger 0.10.0+dev-01266-gd8ac0086-dirty (2020-05-27-14:47)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 0 options.c:63 configuration_output_handler(): debug_level: 4
User : 14 0 options.c:63 configuration_output_handler():
Debug: 15 0 options.c:187 add_default_dirs(): bindir=/usr/local/bin
Debug: 16 0 options.c:188 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 17 0 options.c:189 add_default_dirs(): exepath=/usr/local/bin
@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 -->
QSystemTray{
qproperty-iconSize: 24px;
}
QSystemTrayIcon{
qproperty-iconSize: 24px;
}
QIcon{
width: 22px;
openocd-flash-elf-stlink-stm32f4x()
{
if [ ! "$1" ]; then
echo "error: must speficy a firmware.elf to flash"
return 1
fi
_openocd_scripts_path="$HOME/.platformio/packages/tool-openocd/scripts"
# _firmware_elf=".pio/build/blackpill_f411ce/firmware.elf"
_firmware_elf="$1"
@dreamcat4
dreamcat4 / winetricks corefonts vcrun2017 msxml4 dxvk
Created April 18, 2021 08:06
Using latest online winetricks 20210206-next - sha256sum: 346b84b1851021d386dee914d8d997e79c3c15a5ba03b14a754723f8d7223f0c
[id:~/Games] $ cd autodesk-fusion-360.winetricks.online-latest
[id:~/Games/autodesk-fusion-360.winetricks.online-latest] $ du -hd1
4.0K ./dosdevices
1.5G ./drive_c
1.5G .
[id:~/Games/autodesk-fusion-360.winetricks.online-latest] $ winetricks corefonts vcrun2017 msxml4 dxvk
Executing mkdir -p /home/id/Games
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------