Skip to content

Instantly share code, notes, and snippets.

Avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
View checkov-install.log
⏚ [id:~] $ pip3 install --pre -U checkov
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: checkov in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (2.0.660)
Collecting checkov
Downloading checkov-2.0.693-py3-none-any.whl (882 kB)
|████████████████████████████████| 882 kB 1.2 MB/s
Requirement already satisfied: GitPython in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (3.1.24)
Requirement already satisfied: boto3>=1.17 in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (1.20.24)
Requirement already satisfied: cachetools in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (4.2.4)
Requirement already satisfied: semantic-version in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (2.8.5)
View 01_apt-upgrade.log.sh
Setting up pipewire-bin (0.3.42.r25.gc8fc79b-1~ubuntu21.04) ...
/var/lib/dpkg/info/pipewire-bin.postinst: 1: ppa:pipewire-debian/wireplumber-upstream: not found
pipewire 0.3.42-1 (https://pipewire-debian.github.io)
Debian Package -
- move out pipewire-media-session to a new package
View 66rc.conf.sh
[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 Dec 13, 2021 — forked from bahamas10/README.md
Void Linux on Raspberry Pi 4
View README.md

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 Nov 13, 2021
What is left to get working well on linux desktop?
View everything-on-linux-desktop.md

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 Nov 2, 2021
Update the apt sources.list.d/* files, to point to most recent matching release
View apt-sources-fixer
#!/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 Dec 19, 2021
wayland gnome - how to setup a global hotkey, to trigger something useful inside of an application, etc.
View wayland-global-hotkey-instructions.md

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.)

View openocd.reset.output.log.c
[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 Jun 11, 2021 — forked from dapao9999/ikev2.xml
IKEv2 VPN profile for Apple devices, Pre-Shared Key(PSK)
View ikev2.xml
<?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 -->
View i_dont_know_qss_syntax.qss.what_is_it?.qss
QSystemTray{
qproperty-iconSize: 24px;
}
QSystemTrayIcon{
qproperty-iconSize: 24px;
}
QIcon{
width: 22px;