Skip to content

Instantly share code, notes, and snippets.

View brokeDude2901's full-sized avatar
πŸͺ
Oh, what a day... what a lovely day!

α—α’αŽΆα‹αα–α¬αŽ· αŽ·α‹α–α—αααŽ₯ፈᏬᎷ brokeDude2901

πŸͺ
Oh, what a day... what a lovely day!
View GitHub Profile
@TheLustriVA
TheLustriVA / Angel.md
Last active July 29, 2023 20:09
DD 5.6 Settings | Coherent characters | Attempt 2

Attempt to generate a coherent character Part 2

I'm still looking for the right settings, and might begin with my previous attempts with a kitsune bard.

Of the three examples below, most break the ["description", "artist", "modifiers"] list convention, and all are relatively uncluttered descriptions.

Primary Settings

Setting TheHistorian WAS
@krzys-h
krzys-h / Hyper-V GPU-PV with Linux guest.md
Last active April 28, 2025 03:55
Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?

Well... not quite. I managed to get it to run... but not well.

How to do it?

  1. Verify driver support
@SaicharanKandukuri
SaicharanKandukuri / CAP_LAST_CAP dbus in termux.bash
Last active April 25, 2023 12:39
way to run dbus inside termux | A way to run Gnome in termux with root
# https://elixir.bootlin.com/linux/v4.3/ident/CAP_LAST_CAP
# first creating a file with 0 inside file
echo 0 > ~/cap_last_cap
# Next step is to bind the file cap_last_cap to /proc/sys/kernel/cap_last_cap
#for proot-distro with ubuntu-18.04 the command looks like
proot-distro login ubuntu-18.04 --bind cap_last_cap:/proc/sys/kernel/cap_last_cap
@maciakl
maciakl / elevate.cmd
Last active January 8, 2025 20:57
If your batch file needs to run as Administrator, put this at the top of your script. It will initiate a UAC prompt and run the rest of the script in elevated mode.
if "%1" == "elevated" goto start
powershell -command "Start-Process %~nx0 elevated -Verb runas"
goto :EOF
:start
rem your code goes here
@edisongustavo
edisongustavo / tabulate-tables-side-by-side
Created March 16, 2021 20:24
Prints tables generated with python-tabulate side by side
from tabulate import tabulate
def print_tables_side_by_side(*tables, spacing: int = 3):
string_tables_split = [tabulate(t, headers="firstrow").splitlines() for t in tables]
spacing_str = " " * spacing
num_lines = max(map(len, string_tables_split))
paddings = [max(map(len, s_lines)) for s_lines in string_tables_split]
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 12, 2025 00:07
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@greyltc
greyltc / launch-GRD.sh
Last active May 8, 2025 20:42
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/env bash
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell
# this will overwrite all the settings it touches
# the name of the user to run these commands as
TARGET_USER=jane
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one
@tytydraco
tytydraco / cmdpatch.sh
Created August 6, 2020 04:19
An Android Linux Kernel command line patch tool using Magisk's magiskboot binary.
#!/system/bin/sh
# Written by Draco (tytydraco @ GitHub)
set -e
MAGISKBOOT="/data/adb/magisk/magiskboot"
err() {
echo -e "\e[91m[!] $@\e[39m"
exit 1
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active May 8, 2025 19:35
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
<#
Create Unix VM's.
PREREQUISITES:
- A VM that has been installed with an OS that supports cloud-init
- cloud-init is installed on the vm
How it works:
- Asks for a bunch of parameters
- Creates a disk from parent vhdx for speed