Skip to content

Instantly share code, notes, and snippets.

@tobiashochguertel
tobiashochguertel / DDM2.0.md
Created December 7, 2023 05:06 — forked from nebriv/DDM2.0.md
Dell Display Manager 2.0 command line documentation

Dell Display Manager 2.0 Command Line

Decompiled DLL with ILSpy to identify various commands.

Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork

Write commands can be prefixed with int:command to specify which monitor to send the command to.

.\DDM.exe /0:writebrightnesslevel 50

@tobiashochguertel
tobiashochguertel / Open Activity from where we need the result - MainActivity.kt
Last active June 29, 2023 11:30
Android retrieving a result from an Activity #Android
// the logic to launch the Activity from the property defined previously
findViewById<Button>(R.id.submit_button).setOnClickListener {
startForResult.launch(
Intent(this, RainbowColorPickerActivity::class.java) // Intent that is launched for its result!
)
}
// This creates an Intent that is launched for its result: `Intent(this, RainbowColor PickerActivity::class.java)`.
@tobiashochguertel
tobiashochguertel / colors.xml
Last active June 29, 2023 08:21 — forked from erikcox/colors.xml
Android Material Design Colors #Android #AndroidColors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Material Design - Color Palette -->
<!-- http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- Red -->
<color name="red_50">#FFEBEE</color>
<color name="red_100">#FFCDD2</color>
<color name="red_200">#EF9A9A</color>
@tobiashochguertel
tobiashochguertel / Add-Path.ps1
Last active September 20, 2015 19:33
Add-Path Cmdlet
function Add-Path {
<#
.SYNOPSIS
Adds a Directory to the Current Path
.DESCRIPTION
Add a directory to the current path. This is useful for temporary
changes to the path or, when run from your profile, for adjusting
the path within your powershell prompt.
.EXAMPLE
Add-Path -Directory "C:\Program Files\Notepad++"