Skip to content

Instantly share code, notes, and snippets.

View quonic's full-sized avatar

Spyingwind quonic

  • Dallas
View GitHub Profile
@bsdayo
bsdayo / pwsh-bash-completion.ps1
Created November 12, 2024 23:47
Make Bash's autocompletion available to PowerShell on Linux.
# Add this snippet to your $PROFILE to make Bash's autocompletion available to PowerShell on Linux.
# Warning: adds ~500ms initialization time.
# References: https://brbsix.github.io/2015/11/29/accessing-tab-completion-programmatically-in-bash/
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/register-argumentcompleter
# Find all commands
$commands = bash -c 'source /usr/share/bash-completion/bash_completion && complete' | awk '{ print $NF }'
$commands += ls /usr/share/bash-completion/completions
$commands | ForEach-Object {
Accessory_NormalResist_1
Accessory_NormalResist_2
Accessory_NormalResist_3
Accessory_AquaResist_1
Accessory_AquaResist_2
Accessory_AquaResist_3
Accessory_AT_1
Accessory_AT_2
Accessory_AT_3
Accessory_CoolResist_1
@ngandrass
ngandrass / 51-rename-rode-rodecaster-pro-2.lua
Last active April 10, 2024 22:28
Rename RODE RODECaster Pro II outputs (sinks) and inputs (sources). To be used with PipeWire and WirePlumber.
-- Renames the outputs and inputs of the RODE RODECaster Pro II.
--
-- Place this file inside ~/.config/wireplumber/main.lua.d/
--
-- Tips on using the RODE RODECaster Pro II on Linux:
-- - Use PipeWire together with WirePlumber. I'm using the following packages on
-- Arch Linux: pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber.
-- Optional packages: qpwgraph
-- - Configure the RODE RODECaster Pro II to use the 'Pro Audio' profile
-- - Your node names might differ. Run `pactl list sinks` and `pactl list sources` to check assigned names.
@tpope
tpope / 90-rodecaster-pro-ii.rules
Created July 6, 2022 20:53
RODECaster Pro II PulseAudio support
# /etc/udev/rules.d/90-rodecaster-pro-ii.rules
# RODECaster Pro II primary USB interface: 19f7:0030
# RODECaster Pro II secondary USB interface: 19f7:0026
# We're only concerned with the former.
# PulseAudio
ATTRS{idVendor}=="19f7", ATTRS{idProduct}=="0030", ENV{PULSE_PROFILE_SET}="rodecaster-pro-ii.conf"
# PipeWire
@jh0ker
jh0ker / _readme.md
Last active October 2, 2024 19:01
Max attributes and skills in SCUM game single player

README

This script manipulates the SCUM database for the single player mode to increase the level of all skills and attributes to max (or the value of your choice) for a given prisoner. This script does not work for multiplayer characters.

You can edit the configuration settings SET_ATTRIBUTES and SET_SKILLS at the start of the script below to change the target values for the skills and attributes. Default is maxed out.

Tested with SCUM Build 0.9.101.72873

How do I use it?

@jborean93
jborean93 / win_powershell_ssh.ps1
Last active July 27, 2024 19:38
Windows PowerShell SSH Remoting Stub
<#
.SYNOPSIS
Windows PowerShell SSH Server Subsystem Shim.
.DESCRIPTION
Used as a basic wrapper for Windows PowerShell that allows it to be used as a target for SSH based remoting sessions.
This allows a PowerShell client to target a Windows host through SSH without having PowerShell 7 installed.
.NOTES
This is experimental and used as a POC.
@darconeous
darconeous / rect-starlink-cable-hack.md
Last active November 8, 2024 16:20
Hacking the Rectangular Starlink Dishy Cable
@gingerBill
gingerBill / sdl2_opengl_demo.odin
Last active October 7, 2024 22:39
Simple SDL2 + OpenGL demo written in Odin
package main
import "core:fmt"
import glm "core:math/linalg/glsl"
import "core:time"
import SDL "vendor:sdl2"
import gl "vendor:OpenGL"
main :: proc() {
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
@johnpenny
johnpenny / starbase.deltaui
Last active November 1, 2022 18:18
starbase.deltaui
PROJECT: DELTA UI
BY: Oo
COMPANY: io
V: 1.1
LIC: FREE if you leave in the credit
$: Any IN-GAME donations are welcome
---------------------------------------------------------------------------
#### HOW TO INSTALL