Skip to content

Instantly share code, notes, and snippets.

View syntax-tm's full-sized avatar
🕹️

Trey syntax-tm

🕹️
View GitHub Profile
@syntax-tm
syntax-tm / Add_PSStyle_in_Windows_PowerShell.md
Last active April 18, 2024 22:04
$PSStyle in Windows PowerShell

Adding $PSStyle to Windows PowerShell

PSStyle Preview

Usage

  1. Copy the code from PSStyle
  2. Paste the copied code at the top of your script or in your console
@lucsoft
lucsoft / GnomeNested.sh
Last active July 9, 2024 07:17 — forked from davidedmundson/PlasmaNested.sh
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
# Fetch Resolution
RES=$(xdpyinfo | awk '/dimensions/{print $2}')
# Apply Resolution in env and start a new nested gnome with a new dbus
env MUTTER_DEBUG_DUMMY_MODE_SPECS=$RES dbus-run-session -- gnome-shell --wayland --nested
@davidedmundson
davidedmundson / PlasmaNested.sh
Last active July 15, 2024 02:34
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
## whilst being launched by plasma-session
mkdir $XDG_RUNTIME_DIR/nested_plasma -p
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
#!/bin/sh
@TheWover
TheWover / Hollowing.cs
Created July 26, 2019 20:25 — forked from smgorelik/Hollowing.cs
Simple Process Hollowing C#
/***************
* Simple Process Hollowing in C#
*
* #Build Your Binaries
* c:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe Hollowing.cs /unsafe
*
* @author: Michael Gorelik <smgorelik@gmail.com>
* gist.github.com/smgorelik/9a80565d44178771abf1e4da4e2a0e75
* #Most of the code taken from here: @github: github.com/ambray
@Larry57
Larry57 / KeyboardHook.cs
Created April 11, 2013 18:08
A global Keyboard Hook that works in WPF and is also high CPU load proof. Credits: http://blogs.vertigo.com/personal/ralph/Blog/Lists/Posts/Post.aspx?ID=8
public class KeyboardHook
{
#region pinvoke details
private enum HookType : int
{
WH_JOURNALRECORD = 0,
WH_JOURNALPLAYBACK = 1,
WH_KEYBOARD = 2,
WH_GETMESSAGE = 3,