Skip to content

Instantly share code, notes, and snippets.

@MiniMeOSc
MiniMeOSc / install_nvme.sh
Created July 21, 2021 17:59
Draft of a shell script to install raspios to an nvme ssd connected to a cm4
#!/bin/bash
if [[ $EUID -ne 0 ]] ; then
echo "Please run as root"
exit
fi
# exit immediately when a command fails
set -o errexit
# write the image to the nvme drive
@MiniMeOSc
MiniMeOSc / MakeMKV_Backup.bat
Created January 3, 2020 19:38
Create decrypted backup of inserted DVD/BluRay, eject and wait for new disc (rip to harddisk)
@ECHO OFF
REM Configure output path
SET OutputPath=C:\backup
REM Installation path of MakeMKV, see https://makemkv.com
SET MakeMkvDir=C:\Program Files (x86)\MakeMKV
REM Installation path of NirCMD, see https://nirsoft.net/utils/nircmd.html
SET NirCmdDir=C:\Program Files\Nirsoft.net\Nircmd
:CheckForMedia
REM Using Windows Management Instrumentation Commandline check whether a disc is inserted
@MiniMeOSc
MiniMeOSc / Steam-app_move.au3
Created April 4, 2018 21:17
Helper script to move multiple games/apps to a Steam library folder on another drive.
; Steam-app_move.au3
; Helper script to move multiple games/apps to a Steam library folder on another drive.
; Usage:
; 1. Open Steam's console. The easiest way to do this is to enter "steam://open/console"
; into the address bar of a web browser or Windows Explorer.
; 2. Enter the command "apps_installed" and press return. Steam will output a list of apps
; with their IDs, name and install location. Copy this and save it into a file
; "apps_installed.txt". Because some games contain special characters in their name it's
; recommended to save the file encoded as UTF-8.
; 3. Enter the command "install_folder_list" and find the library you want to move the game to.
@MiniMeOSc
MiniMeOSc / New_Tab_Homepage.html
Last active April 8, 2020 21:15
Homepage for the Steam Overlay's built in web browser. Inspired by Firefox's New Tab page, so kudos to their UX designers. It can be easily customized with own addresses to add as tiles.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New Tab Homepage</title>
<!--
This is intended as homepage for the Steam Overlay's built in web browser.
It's inspired by Firefox's New Tab page, so kudos to their UX designers.
It can be easily customized with own addresses to add as tiles.
-->
@MiniMeOSc
MiniMeOSc / printYoutubeDlArchiveForUser.js
Created June 14, 2017 10:58
A script to print all video ids from a user's channel prepended with "youtube" for use with youtube-dl's --download-archive option. To be used if you want to create a download archive, but only want videos uploaded after you created the archive initially.
#!/usr/bin/env node
/*
* printYoutubeDlArchiveForUser.js
* A script to print all video ids from a user's channel prepended with "youtube"
* for use with youtube-dl's --download-archive option. To be used if you want to
* create a download archive, but only want videos uploaded after you created the
* archive initially.
*
* Example usage:
* $ node printYoutubeDlArchiveForUser.js Google > archive.txt