Skip to content

Instantly share code, notes, and snippets.

View Hrxn's full-sized avatar
☯️
"He who knows, does not speak. He who speaks, does not know."

HRXN Hrxn

☯️
"He who knows, does not speak. He who speaks, does not know."
  • Germany
  • 20:26 (UTC +02:00)
View GitHub Profile
--[[
See script details on https://github.com/kevinlekiller/mpv_scripts
Valid --script-opts are (they are all optional):
autospeed-nircmd=false true/false - Use nircmd to change the refresh rate of your monitor.
autospeed-speed=false true/false - Adjust speed of the video?.
autospeed-nircmdc="nircmdc" String - Path to nircmdc executable file. If not set, nircmdc will be searched in Windows PATH variable.
autospeed-monitor=0 Number - Which monitor (display) to set the refresh rate on.
autospeed-dwidth=1920 Number - Display width.
autospeed-dheight=1080 Number - Display height.
@apankrat
apankrat / readme.txt
Last active August 30, 2021 02:45
μGiffer 0.9.10 (preview)
-- μGiffer / preview release --
https://iobureau.com/files/uGiffer-0.9.12.zip (213576 bytes)
------------------------> 32-bit/uGiffer.exe (111488 bytes)
------------------------> 64-bit/uGiffer.exe (123264 bytes)
Both exe files carry an EV signature of IO Bureau SA.
For details see here -> https://iobureau.com/ugiffer
@ghedo
ghedo / 60fps.py
Last active November 15, 2021 19:31
VapourSynth script to convert videos to 60fps (with mpv)
# Usage: mpv --vf=vapoursynth=60fps.py --hwdec=no <file>
import vapoursynth as vs
core = vs.get_core()
src_fps = 24
dst_fps = 60
clip = core.std.AssumeFPS(video_in, fpsnum=src_fps)
super = core.mv.Super(clip, pel=2)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Name
merge_gdl_archives - merge multiple download archives into one
Usage
merge_gdl_archives.py merged.sqlite old1.sqlite old2.sqlite ...
"""
@Nevember
Nevember / Light_Mode_Enable.xml
Last active October 24, 2022 09:35
Enable "Light Mode" at 6:30am daily using this Windows Task Scheduler XML file
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2022-10-23T19:30:00.0000000</Date>
<Author>SCI\SpiralChaotic</Author>
<URI>\SCI\LightModeEnable</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2022-10-23T06:30:00</StartBoundary>
@Nevember
Nevember / Dark_Mode_Enable.xml
Last active October 24, 2022 09:35
Enable "Dark Mode" at 6:30pm daily using this Windows Task Scheduler XML file
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2022-10-23T19:30:00.0000000</Date>
<Author>SCI\SpiralChaotic</Author>
<URI>\SCI\DarkModeEnable</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2022-10-23T18:30:00</StartBoundary>
@ninmonkey
ninmonkey / Write-LogMessage.ps1.md
Created August 11, 2023 18:19
Write-LogMessage.ps1.md
Write-LogMessage Verbose -Message 'stuff' -Json @{ 'user' = 'bob'; id = 100 }
function New-SafeFileTimeNowString {
    <#
    .SYNOPSIS
        timenow for safe filepaths: "2022-08-17_12-46-47Z"
    .notes
@santisq
santisq / mergeZips.ps1
Last active August 27, 2023 07:08
split and merge file into zip chunks
$destination = 'path\to\destination'
$inFS = [System.IO.File]::OpenWrite($destination)
Get-ChildItem -Filter temp* | ForEach-Object {
$stream = $_.OpenRead()
$zip = [System.IO.Compression.ZipArchive]::new($stream, [System.IO.Compression.ZipArchiveMode]::Read)
$entry = $zip.GetEntry($_.Name)
$zipFS = $entry.Open()
$zipFS.CopyTo($inFS)
$zipFS, $zip, $stream | ForEach-Object Dispose
using namespace System.Drawing
Add-Type -AssemblyName System.Drawing
function Resize-Picture {
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[string] $SourcePath,
0..10 | ForEach-Object {
Measure-Command {&{
$fileA = (Get-Item .\lorem1.txt).OpenRead()
$fileB = (Get-Item .\lorem2.txt).OpenRead()
for(($i = 0), ($z = 0); $i -lt $fileA.Length -or $z -lt $fileB.Length; $i++, $z++) {
if(-not $fileA.ReadByte().Equals($fileB.ReadByte())) {
break
}
}