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
--[[ | |
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. |
-- μ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 |
# 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 ... | |
""" |
<?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> |
<?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> |
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
$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 | |
} | |
} |