Skip to content

Instantly share code, notes, and snippets.

View eizedev's full-sized avatar
💻
Automating everything

René eizedev

💻
Automating everything
  • Germany
  • 15:44 (UTC +01:00)
View GitHub Profile
@eizedev
eizedev / Get-WifiPassword-DE.ps1
Created January 5, 2024 15:54
quick'n'dirty powershell "script" to get wifi credentials of known and stored wifi profiles.German version: `Get-WifiPassword-DE.ps1`, English version `Get-WifiPassword-EN.ps1`
$WifiCred = @()
$listProfiles = netsh wlan show profiles | Select-String -Pattern "Profil für alle Benutzer" | ForEach-Object { ($_ -split ":")[-1].Trim() };
$listProfiles | ForEach-Object {
$profileInfo = netsh wlan show profiles name=$_ key="clear";
$Key = $profileInfo | Select-String -Pattern "Schlüsselinhalt" | ForEach-Object { ($_ -split ":")[-1].Trim() };
$WifiCred += New-Object -TypeName psobject -Property @{SSID = $_; Password = $Key }
}
Write-Output $WifiCred

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages

Restoring an utterly destroyed DFSR-replicated SYSVOL from backup

Warning: this is not official Microsoft documentation and some of these steps might not actually be supported.

This guide is provided "as is", without warranty of any kind, express or implied. In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from, out of or in connection with applying the steps outlined in this guide.

When to use

@eizedev
eizedev / vs_code_context_menus.reg
Last active May 31, 2024 08:14 — forked from brandon93s/vs_code_context_menus.reg
Add context menu options for Visual Studio Code installed (system wide)
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
@eizedev
eizedev / LogiCapture.exe.config
Last active October 7, 2021 09:45
Make Logitech Webcam C925e (or any other camera) compatible with LogiCapture Software (See comment for details)
<device guid="USB#VID_046D&amp;PID_085B" name="HD Pro Webcam C925e">
<zoom mixer="640,360" max="360" />
<zoom mixer="854,480" max="360" />
<zoom mixer="1280,720" max="180" />
<zoom mixer="1920,1080" max="120" />
<zoom mixer="360,360" max="360" />
<zoom mixer="480,480" max="360" />
<zoom mixer="720,720" max="180" />
<zoom mixer="1080,1080" max="120" />
<zoom mixer="3840,2160" max="120" />
@eizedev
eizedev / Get-CommandSourceCode.ps1
Last active July 11, 2024 04:52
Get SourceCode of any powershell cmdlet/function by using the command metadata
function Get-CommandSourceCode
{
<#
.SYNOPSIS
Get SourceCode of an powershell cmdlet
.DESCRIPTION
Get SourceCode of an powershell cmdlet
.PARAMETER Command
Must be a valid powershell cmdlet/function
.EXAMPLE
@eizedev
eizedev / treestyletab.css
Created June 11, 2021 10:20
Firefox Tree Style Tab CSS - Collapsible
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar.
#tabbar {
border: 0;
overflow-y: scroll !important;
margin-left: -18px !important;
}
*/
/* Hide .twisty and adjust margins so favicons have 7px on left. */
.tab .twisty {
@eizedev
eizedev / vaultwarden.conf
Last active July 6, 2023 14:59
vaultwarden (bitwarden) nginx configuration on synology NAS (DSM 7 compatible) using synology docker (Supporting bitwardens LiveSync with Websocket configuration)
server {
listen 4444 ssl http2;
listen [::]:4444 ssl http2;
server_name CHANGE_SERVERNAME;
ssl_certificate /usr/syno/etc/certificate/system/default/ECC-fullchain.pem;
ssl_certificate_key /usr/syno/etc/certificate/system/default/ECC-privkey.pem;
ssl_trusted_certificate /usr/syno/etc/certificate/system/default/ECC-fullchain.pem;
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
@eizedev
eizedev / run.tpl
Created May 1, 2021 14:08 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@eizedev
eizedev / Get Recovery Keys.ps1
Created March 29, 2021 12:20 — forked from ak9999/Get Recovery Keys.ps1
Retrieve BitLocker Recovery Keys From Active Directory
# Generate Report of BitLocker Status for Computers in the BitLocker Machines OU.
# Sources: https://4sysops.com/archives/find-bitlocker-recovery-passwords-in-active-directory-with-powershell/
param([string]$OutputDirectory="~/Desktop",[string]$OrganizationalUnit=([adsi]'').distinguishedName)
if(!([Security.Principal.WindowsPrincipal] `
[Security.Principal.WindowsIdentity]::GetCurrent() `
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host -ForegroundColor Yellow "Only Administrators can read BitLocker Recovery Keys."
exit
}
$computers = Get-ADComputer -Filter * -SearchBase $OrganizationalUnit