Skip to content

Instantly share code, notes, and snippets.

View bogenpirat's full-sized avatar
🏠
Working from home

Julian bogenpirat

🏠
Working from home
  • Germany
View GitHub Profile
@bogenpirat
bogenpirat / MP4ToGIF.psm1
Last active December 5, 2021 23:30
powershell script that converts from video to (palettized) gif
# create a folder to place this module in:
#
# New-Item([Environment]::GetFolderPath("MyDocuments") + "\WindowsPowerShell\Modules\MP4ToGIF") -ItemType Directory
# Set-Location([Environment]::GetFolderPath("MyDocuments") + "\WindowsPowerShell\Modules\MP4ToGIF")
# Invoke-WebRequest -Uri "https://gist.githubusercontent.com/bogenpirat/10deac6c16cb62ff91a44aa5fdd70ff4/raw/181ff03b0f4acb3069183958f0ba171d5f0a595a/MP4ToGIF.psm1" -OutFile "MP4ToGIF.psm1"
Function MP4ToGIF {
Param(
[Parameter(Mandatory=$true)] [string]$Filename,
[int]$Rate
@bogenpirat
bogenpirat / wapo-paywall.user.js
Created September 1, 2021 17:31
remove the WaPo's paywall
// ==UserScript==
// @name wapo: remove paywall
// @namespace http://tampermonkey.net/
// @version 0.1
// @description remove wapo's paywall and make content scrollable
// @author bog
// @match http*://www.washingtonpost.com/*
// @icon https://www.google.com/s2/favicons?domain=washingtonpost.com
// @grant none
// ==/UserScript==
@bogenpirat
bogenpirat / readRadioss.m
Last active September 1, 2021 11:12
function for reading node and beam data from radioss files
inFile = 'lattice_test_0000.rad.txt';
fid = fopen(inFile);
clear('nodesTable', 'beamsTable');
inNode = false;
inBeam = false;
line = '';
while ischar(line)
@bogenpirat
bogenpirat / imdb-amazon-prime-video-link.user.js
Created January 29, 2021 01:29
userscript that adds amazon prime video search button if one of the distributors is amazon
@bogenpirat
bogenpirat / nyt-loginfooter.user.js
Created November 4, 2020 20:57
NYT: remove login footer
// ==UserScript==
// @name nyt: remove footer/login shit
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.nytimes.com/*
// @grant none
// @run-at document-body
// ==/UserScript==
@bogenpirat
bogenpirat / versionextractor.ps1
Last active September 8, 2020 01:35
extract version number from a nupkg archive in powershell
function Get-NUPKG-Version {
Param(
[Parameter(Mandatory=$true, Position=0)]
[string] $fullpath
)
Add-Type -assembly "system.io.compression.filesystem"
$zip = [io.compression.zipfile]::OpenRead($fullpath)
$file = $zip.Entries | where-object { $_.Name -Like "*.nuspec"}
$stream = $file.Open()
@bogenpirat
bogenpirat / vreddit to imgur.user.js
Last active February 28, 2024 22:53
relocates v.redd.it videos to imgur with a simple button
// ==UserScript==
// @name reddit.com transload videos to imgur
// @namespace https://www.reddit.com
// @version 0.8
// @description try to take over the world!
// @author bog
// @match https://www.reddit.com/*
// @grant GM_xmlhttpRequest
// @grant GM_setClipboard
// @connect imgur.com
@bogenpirat
bogenpirat / Crash 2017-10-23 01-36-58.txt
Created October 23, 2017 00:08
OBS 20.1 crash thanks to x299 AVX/turbo boost issue
Unhandled exception: c0000005
Date/Time: 2017-10-23, 01:36:58
Fault address: 7FF913C41AE5 (c:\program files (x86)\obs-studio\bin\64bit\libx264-152.dll)
libobs version: 20.1.0
Windows version: 10.0 build 16299 (revision: 19; 64-bit)
CPU: Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz
Thread DE8 (Crashed)
Stack EIP Arg0 Arg1 Arg2 Arg3 Address
@bogenpirat
bogenpirat / mydealz2016.user.js
Last active December 13, 2016 14:10
script that auto-collects mydealz.de christmas crocodiles and reloads a random new page every 5 minutes
// ==UserScript==
// @name mydealz crocs sammeln
// @namespace http://tampermonkey.net/
// @version 0.1
// @description click on all the crocodiles, reload page to random page every 5 minutes
// @author bogenminute
// @match https://www.mydealz.de/*
// @grant none
// ==/UserScript==
@bogenpirat
bogenpirat / youtube-unblocker.user.js
Last active December 3, 2022 11:30
short script to redirect blocked youtube videos to youpak which usually works great.
// ==UserScript==
// @name youtube blocked video redirector
// @namespace http://tampermonkey.net/
// @version 0.3
// @description if a video is blocked, embed the same video from a non-blocking site
// @author bog
// @match https://www.youtube.com/watch?v=*
// @grant none
// @run-at document-idle
// ==/UserScript==