Skip to content

Instantly share code, notes, and snippets.

View brunocastello's full-sized avatar

Bruno Castelló brunocastello

View GitHub Profile
@ThioJoe
ThioJoe / Icon-Upscale.bat
Last active July 1, 2024 08:19
Low-Res Icon Upscaler Batch Script
@echo off
setlocal enabledelayedexpansion
rem | Lines beginning with 'rem' are comments
rem -------------------------------------------------------------------------------------------
rem | "Icon Upscaler" Script by ThioJoe: https://github.com/ThioJoe
rem | I created this script specifically for upscaling very low res (such as 256x256) icons like those in Windows. It uses a combination of Image Magick (to first improve the transparency edges) and the RealCugan-ncnn-vulkan upscaler which seems to perform the best for this use case. Of course, the script can be used for all sorts of images, but I have found this to yield the best results of any other method, and better than just using an upscaler alone.
@anthonykava
anthonykava / dosbox_ppp.sh
Last active December 21, 2023 00:58 — forked from mainframed/dosbox_ppp.sh
This script lets you connect Windows 3.11 to the internet with PPP and Trumpet WinSock in DOSBox
#!/bin/bash
#
# [------------------------------------------------------------------------------------------------]
# [ modified from (legend!) Soldier of FORTRAN's script to work in my testing on Ubuntu 20.04 ]
# [ intended, if it be the will of the demo gads, for a my talk entitled, ]
# [ "the root password was klondike" at kernelcon 2022, https://kernelcon.org ]
# [------------------------------------------------------------------------------------------------]
# [ stolen de: ]
# [ https://gist.github.com/mainframed/2300903d9cc259a2a2ab431ca152dffc ]
# [ also see: ]
@lukele
lukele / Boot SuperDuper backup in VMWare.md
Last active March 18, 2022 16:42
Boot SuperDuper! backup in VMWare

Boot SuperDuper! backup in VMWare Fusion

It's quite strange that VMWare doesn't expose this feature in the UI directly, but fortunately enough it's pretty easy to do.

  1. Create a new custom virtual machine with macOS 10.14 as guest
  2. Quit VMWare after creating the virtual machine
  3. Change into the virtual machine folder ~/Virtual Machines/<name>.vmwarevm
  4. Connect your external harddrive with your SuperDuper! bootable backup
  5. Use diskutil list to figure out which device number your harddrive was assigned
  6. Create a raw disk using the vmware-rawDiskCreator tool which is linked to the external harddrive: