Skip to content

Instantly share code, notes, and snippets.

@kpma1985
kpma1985 / gist:cb7af5d39fc90ce16ff86a74b5250620
Created August 14, 2025 11:47
RTX 5070 Hashcat 7 benchmark
hashcat.exe -b -d1
hashcat (v7.0.0) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
CUDA API (CUDA 13.0)
====================
@kpma1985
kpma1985 / wingetinstall.ps1
Created November 26, 2024 10:48 — forked from Sp5rky/wingetinstall.ps1
Winget Installation
# Fetch the URI of the latest version of the winget-cli from GitHub releases
$latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object { $_.EndsWith('.msixbundle') }
# Extract the name of the .msixbundle file from the URI
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split('/')[-1]
# Show a progress message for the first download step
Write-Progress -Activity 'Installing Winget CLI' -Status 'Downloading Step 1 of 2'
# Temporarily set the ProgressPreference variable to SilentlyContinue to suppress progress bars
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@kpma1985
kpma1985 / invert.md
Created October 7, 2024 08:03 — forked from arbourd/invert.md
Invert Windows 10 mouse scroll wheel
  1. Open Powershell as an administrator
  2. Run
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
  3. Verify that all mice devices have had their FlipFlopWheel attributes set to 1
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
  4. Reboot
#!/usr/bin/env python3
############################################################################
# ========================================================================
# Copyright 2021 VMware, Inc. All rights reserved. VMware Confidential
# ========================================================================
###
# Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache License 2.0
@kpma1985
kpma1985 / whitelist.ini
Created July 16, 2024 23:57 — forked from EinfachAleks/whitelist.ini
PiHole Whitelist
0-edge-chat.facebook.com
0.client-channel.google.com
1-edge-chat.facebook.com
1drv.com
2-edge-chat.facebook.com
2.android.pool.ntp.org
3-edge-chat.facebook.com
4-edge-chat.facebook.com
5-edge-chat.facebook.com
6-edge-chat.facebook.com
@kpma1985
kpma1985 / installer.sh
Created October 1, 2023 09:53 — forked from unique1984/installer.sh
OpenZFS - ZFS as a Root File System on Debian Bullseye
#!/usr/bin/env bash
###########################################################################################################
# Bash Script of this Documentation :
# https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html#debian-bullseye-root-on-zfs
#
# Copyright © 2022 - installer.sh
# Yasin Karabulak
# [email protected]
# https://github.com/unique1984
#
@kpma1985
kpma1985 / gist:3b0c2f13400c80fe6461cbd54c3fcdb0
Last active February 26, 2025 11:36
dietpi quick cheats
apt install git zsh -y
cd
git clone https://github.com/kpma1985/ezsh/
cd ezsh
./install.sh -c # only run with '-c' the first time, running multiple times will duplicate history entries
## DIRTYYYYYY
echo 'export PATH=/usr/bin:/boot/dietpi:/bin:/usr/sbin:/sbin:$PATH' > ~/.config/ezsh/ezshrc.zsh.tmp
cat ~/.config/ezsh/ezshrc.zsh >> ~/.config/ezsh/ezshrc.zsh.tmp
@kpma1985
kpma1985 / README.md
Created September 11, 2022 22:04 — forked from ernstki/Classy .screenrc.md
screenrc with a decent-looking caption / hardstatus line, including LSF job status

A classy .screenrc with LSF support

Screenshot of what you get

Here's a sensible .screenrc that does the following:

  • gives you a useful and hip-looking status line
  • tries really hard to enable 256 color support for programs that support it, like Vim
  • disables the visual bell and splash screen
  • remaps window #0 to be Ctrl+A, `, which feels more natural to me
@kpma1985
kpma1985 / README.md
Created August 17, 2022 13:45 — forked from zoilomora/README.md
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf: