Skip to content

Instantly share code, notes, and snippets.

@eliasschr
eliasschr / DDPM2.0.md
Last active September 15, 2026 09:16 — forked from nebriv/DDM2.0.md
DELL Display and Peripheral Manager 2.0 CLI for MacOS

Dell Display and Peripheral Manager 2.0 Command Line

All available Commands found in the CLI.

Whole Command looks like this:

/Applications/DDPM/DDPM.app/Contents/MacOS/DDPM /set -display=ActiveInputSource -value=USB-C Write commands can be prefixed with int:command to specify which monitor to send the command to.

If you want to controll your Display through shortcuts I'd suggest writing a .command script and having it on your Desktop or putting it into a Stream Deck, my .command files look like this:

@sumonst21
sumonst21 / Remove YT Shorts | AdGuard.md
Created June 23, 2023 09:48
Remove YT Shorts | AdGuard

https://www.reddit.com/r/uBlockOrigin/wiki/solutions/youtube/#wiki_shorts

! YT Homepage - Hide the Shorts section
youtube.com##[is-shorts]
! YT Menu - Hide the Shorts button
www.youtube.com###guide [title="Shorts"], .ytd-mini-guide-entry-renderer[title="Shorts"]
! YT Search - Hide Shorts
www.youtube.com##ytd-search ytd-video-renderer [overlay-style="SHORTS"]:upward(ytd-video-renderer)
! YT Search and Channels - Hide the Shorts sections
www.youtube.com##ytd-reel-shelf-renderer
@giannello
giannello / setup.sh
Last active April 27, 2026 12:32
Install fprintd-tod with support for Broadcom readers on Debian testing
#!/usr/bin/env sh
####################################################################
### ____ _____ ____ ___ _ _ _ ___ _ _ _ __ __ ###
### | _ \| ____| __ )_ _| / \ | \ | | / _ \| \ | | | \ \ / / ###
### | | | | _| | _ \| | / _ \ | \| | | | | | \| | | \ V / ###
### | |_| | |___| |_) | | / ___ \| |\ | | |_| | |\ | |___| | ###
### |____/|_____|____/___/_/ \_\_| \_| \___/|_| \_|_____|_| ###
####################################################################
####### _ _ ___ _ _ ____ _ _ _ _ _____ _ _ ########
@wswld
wswld / compress_pdf.md
Created July 19, 2020 06:37 — forked from ahmed-musallam/compress_pdf.md
How to compress PDF with ghostscript

How to compress PDF using ghostscript

As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!

to learn more abot ghostscript (gs): https://www.ghostscript.com/

What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.

credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9

@brainfucksec
brainfucksec / bash.bashrc
Last active March 31, 2026 15:17
Termux bash.bashrc
######################################
#
# Termux bash.bashrc
# by brainf+ck
#
# Last modified: 2022/06/30
#
######################################
#### Global ##########################
@rohan-molloy
rohan-molloy / Caddyfile-Example
Last active March 26, 2026 13:29
Caddyfile cheatsheet
# Serve requests only for virtual host set in environment variable
{$CADDYHOST}
# Bind Virtual Host to address set in environment
bind {$CADDYBIND}
# Registration email for automated issuing of Lets Encrypt certs
tls {$CADDYEMAIL}
# Define the web server root (using environment variable)

So you bought a ColorOS powered phone (Oppo/Realme) and aren't liking the decisions made by OS.

Launcher

I use Customized Pixel Launcher which allows me to hide apps from App Drawer and get notification drawer by swiping down on homescreen. That pretty much makes the phone look like stock android.

Bloatware Apps

The second thing you would want to do is uninstall useless apps that can't be disabled.

@Log1x
Log1x / debloatNox.md
Last active September 18, 2026 22:25
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@steviecoaster
steviecoaster / New-DotNetToast.ps1
Created November 16, 2018 19:48
Create a WIndows 10 Toast notification using .Net
Function New-DotNetToast {
[cmdletBinding()]
Param(
[Parameter(Mandatory, Position = 0)]
[String]
$Title,
[Parameter(Mandatory,Position = 1)]
[String]
$Message,