Skip to content

Instantly share code, notes, and snippets.

@kardmode
kardmode / discordRegFix.ps1
Created February 25, 2025 23:45
Discord Registry Fix To Show Taskbar Icon
# Step 1: Get the latest Discord executable path by checking if Discord.exe exists in the folder
$discordDir = "C:\Users\karan\AppData\Local\Discord"
$latestVersionFolder = Get-ChildItem -Path $discordDir -Directory | Where-Object {
$_.Name -like "app-*" -and (Test-Path (Join-Path $_.FullName "Discord.exe"))
} | Sort-Object LastWriteTime -Descending | Select-Object -First 1
# If we found the latest version folder
if ($latestVersionFolder) {
$latestPath = Join-Path $latestVersionFolder.FullName "Discord.exe"
Write-Host "Latest Discord path: $latestPath"
@kardmode
kardmode / video-scroll-seek.tamper.js
Created February 19, 2022 19:41 — forked from vogler/video-scroll-seek.tamper.js
Tampermonkey: video: scroll=seek
// ==UserScript==
// @name Video: scroll=seek
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/b7c66088cd22f899496f353d5295b7ad/raw/video-scroll-seek.tamper.js
// @version 0.16
// @description Scrolling a video seeks back/forward
// @author Ralf Vogler
// @match *://*/*
// @grant none
// ==/UserScript==
@kardmode
kardmode / PakBlacklist-Shipping.txt
Last active September 23, 2021 10:10
PakBlacklist-Shipping.txt
../../../Engine/Content/EditorMeshes/ColorCalibrator/
../../../Engine/Content/EngineMaterials/DefaultBloomKernel.uasset
../../../Engine/Content/EngineMaterials/DefaultBloomKernel.uexp
../../../Engine/Content/Slate/Fonts/NanumGothic.ttf
../../../Engine/Content/Slate/Fonts/DriudSansFallback.ttf
../../../Engine/Content/Tutorials/
../../../Engine/Content/MobileResources/
../../../Engine/Content/Maps/
../../../Engine/Content/EngineDebugMaterials/
../../../Engine/Content/MapTemplates/
//
// LiveFrameCaptureViewController.swift
// SCNKit2Video
//
// Created by Lacy Rhoades on 11/29/16
// Revised 7/19/17
// Copyright © 2017 Lacy Rhoades. All rights reserved.
//
import Foundation
@kardmode
kardmode / print.py
Last active February 22, 2016 07:39
# frappe/frappe/templates/pages/print.py
@frappe.whitelist()
def download_multi_pdf(doctype, name, format=None):
# name can include names of many docs of the same doctype. Formatted as name1-name2-name3
totalhtml = ""
# Pagebreak to be added between each doc html
pagebreak = """<p style="page-break-after:always;"></p>"""
import json
result = json.loads(name)