Skip to content

Instantly share code, notes, and snippets.

@mchubby
mchubby / ddc-ci-u2713hm.py
Last active July 7, 2023 04:12 — forked from Fr6jDJF/ddc-ci.py
Python script for adjusting the settings of my monitor, by using DDC/CI
#!/usr/bin/env python3
"""
Show and adjust display parameters on a Dell U2713HM monitor
Requirements:
- mentioned monitor (27' should also work) with DDC/CI setting on
- Windows Vista+ (dxva2.dll)
- Python 3
@mchubby
mchubby / Ansible-vault-id-script.md
Last active October 2, 2022 16:21
Trying to get Ansible --vault-id auto selection working
@mchubby
mchubby / _disable.cmd
Created January 5, 2022 12:44
Firefox win32 component disabling (batch file)
@echo off
goto :main
:rn
del %1-
ren %1 %1-
goto :eof
:main
call :rn Accessible.tlb
@mchubby
mchubby / gist:ce8b06612f944e4d5f96efbcc9cfb6ab
Created October 24, 2021 17:01
mpv.conf auto-deinterlacing depending on input
[deinterlace]
profile-cond=p["video-frame-info/tff"]
profile-restore=copy
# vf=yadif=mode=1:deint=1
deinterlace=yes
# osd-msg1="Interlaced: ${video-frame-info/interlaced}\nTFF: ${video-frame-info/tff}"
@mchubby
mchubby / bitlocker-status-ps1.txt
Created December 16, 2017 16:22
Query Bitlocker status Powershell/WMI
gwmi("Win32_EncryptableVolume") -namespace "root\CIMV2\Security\MicrosoftVolumeEncryption"
Get-CimInstance -Namespace root/CIMV2/Security/MicrosoftVolumeEncryption -ClassName Win32_EncryptableVolume
gwmi("Win32_EncryptableVolume") -namespace "root\CIMV2\Security\MicrosoftVolumeEncryption" -Filter "DriveLetter = 'O:'"
gwmi("Win32_EncryptableVolume") -namespace "root\CIMV2\Security\MicrosoftVolumeEncryption" | foreach {
$obj = $_
@mchubby
mchubby / Hades.log
Created October 22, 2020 21:00
Hades.log Legendary crash
date time [thread name/id ] file:line v |
2020-10-22 22:56:31 [MainThread ] log.cpp:279 INFO| Opened log file Hades.log
2020-10-22 22:56:31 [MainThread ] program.cpp:1333 DBG| Previous stack guard size was 0 bytes
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: /c=.. /DirectLoadShell=true
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -AUTH_LOGIN=unused
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -AUTH_PASSWORD=
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -AUTH_TYPE=exchangecode
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -epicapp=Min
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -epicenv=Prod
2020-10-22 22:56:31 [MainThread ] optionset.cpp:157 INFO| argument: -EpicPortal
$ curl 'https://1fichier.com/dir/sBYijOvq?json=1' | \
    jq -S -c '.[] | del(.date) | select( .filename | contains("pdate") | not )'
@mchubby
mchubby / Vagrantfile
Created January 1, 2020 23:51
Vagrantfile "hashicorp/bionic64"
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
> docker run -it --rm --user ContainerAdministrator --dns 9.9.9.9 mcr.microsoft.com/powershell:6.1.1-nanoserver-1809
where 1809 matches host edition (otherwise get 'helpful' error: manifest unknown: manifest unknown.)
> docker pull mcr.microsoft.com/powershell:latest
may work better
C:\Users\Cador PS>docker pull mcr.microsoft.com/powershell:latest
latest: Pulling from powershell
7ddbc47eeb70: Pull complete
c1bbdc448b72: Pull complete
/*AGENT_SHEET included by CustomCSSforFx*/
/* Draw a line over selected tab. See https://raw.githubusercontent.com/mozilla/gecko-dev/master/browser/base/content/tabbrowser-tab.js for structure */
/* https://www.reddit.com/r/FirefoxCSS/comments/c5aqyn/my_userchromecss_customizations/ for funky styling */
.tabbrowser-tab:not([usercontextid]) .tab-content[selected="true"],
.tabbrowser-tab[usercontextid] .tab-content[selected="true"] .tab-label-container {
background-image: linear-gradient(to bottom,rgba(255,192,0,0),rgba(255,192,153,32));
}
.tabbrowser-tab[unread] .tab-label {