Skip to content

Instantly share code, notes, and snippets.

@AveYo
AveYo / 7-Zip_Windows11.reg
Last active January 10, 2026 20:10
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
@abdelkrimdev
abdelkrimdev / Extract-Subtitles-And-Attachments.ps1
Last active April 25, 2025 11:55
A PowerShell script using MKVToolNix (CLI) to batch extract subtitles and attachments from your Matroska Video files (MKV)
#===========================================#
# +Psycho-Pass #
# |+Season 1 #
# |-01 - First Episode.mkv #
# |-02 - Second Episode.mkv #
# |-... #
# |-Season 2 #
# |-Extract-Subtitles-And-Attachments.ps1 #
#===========================================#
@up1
up1 / 0.cs
Last active September 16, 2021 17:27
Selenium with C# (Waiting)
webdriver.FindElement(By.Id("search_button")).Click();
Thread.Sleep(5000);
IWebElement searchResult = webdriver.FindElement(By.Id("search_result"));
@kampfgnu
kampfgnu / mkvextractTracks.sh
Last active October 24, 2025 09:28
batch extract subtitles from mkv files
#!/bin/bash -e
# a script that extracts the subtitle file of every mkv movie file and saves it with the same name
# copy to the folder where the mkv files live and run "./mkvextractTracks.sh" in terminal
# options: [trackID]
# example: ./mkvextractTracks.sh 1
#
# info:
# mkvextract is used to extract the subtitles, so mkvtoolnix app (which contains the mkvextract binary) is used:
# https://mkvtoolnix.download/downloads.html
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 18, 2026 20:43
Essential JavaScript Links
@adamrecsko
adamrecsko / knockout-numeral
Last active August 22, 2018 05:51
Knockout binding use Numeral.js to format money. It is a requirejs module, the paths of the numeral and the knockout must be defined in the requirejs config.
define(['knockout','numeral'],function(ko,numeral){
ko.bindingHandlers.money = {
update: function (element, valueAccessor,allBindingsAccessor) {
var format = allBindingsAccessor().format || "00,000";
var value = ko.utils.unwrapObservable(valueAccessor());
$(element).text(numeral(value).format(format));
}
};
});
@hyle
hyle / ko.utils.3.1.0.signatures.js
Created March 5, 2014 08:30
KnockoutJS 3.1.0 utils (ko.utils) signatures
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ }
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ }
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
@lelandrichardson
lelandrichardson / ko-convenience.js
Created March 5, 2014 01:11
Knockout.js Custom Utility Bindings
(function (ko, handlers, unwrap, extend) {
"use strict";
extend(handlers, {
href: {
update: function (element, valueAccessor) {
handlers.attr.update(element, function () {
return { href: valueAccessor() };
});
}
},
@zaus
zaus / ConfigurableJsMinify.cs
Last active January 10, 2020 02:16
How to create a custom BundleTransform in .NET MVC4, specifically for the purposes of not renaming variables. Since I could not find this after an hour of concentrated interweb searching...
using System.IO;
using Microsoft.Ajax.Utilities;
/// <summary>
/// Minify javascript files with externally overridable configuration settings.
/// </summary>
public class ConfigurableJsMinify : StandardFileBundleTransform {
protected bool includeFilenamesInOutput;
@mgalante
mgalante / knockout.autonumeric.js
Created July 3, 2013 13:37
knockout js binding for jQuery autoNumeric
;(function ($) {
var getElementValue = function(el) {
return parseFloat(el.autoNumeric('get'), 10);
}
var getModelValue = function(accessor) {
return parseFloat(ko.utils.unwrapObservable(accessor()), 10);
}