Skip to content

Instantly share code, notes, and snippets.

View grantbevis's full-sized avatar
❄️

Grant Bevis grantbevis

❄️
  • United Kingdom
  • 22:11 (UTC +01:00)
View GitHub Profile
@JurajNyiri
JurajNyiri / utm_pass_usb_device
Last active November 6, 2023 09:26
UTM Pass USB Device via apple script
#---- MODIFY BELOW ----#
set application_name to "Home Assistant" # Set to your UTM VM Name
set button_name to "USB" #Description of the button, can be found by using Accessibility Inspector from Xcode, you probably want this set to "USB"
set usb_select to "Conbee" #Name of the device you wish to pass to VM
#---- MODIFY ABOVE ----#
#---- APPLICATION CODE, DO NOT TOUCH BELOW----#
set foundVM to false
repeat while foundVM = false
@Kirens
Kirens / procedure.md
Created January 13, 2018 14:27
Deploying a NixOS server on DigitalOcean

Prerequisites

We'll use NixOps to deploy, so we need to install it

nix-env -i nixops

And to deploy on DigitalOcean we need to have an account and create an API access token for it.

@teknikqa
teknikqa / lastfm_delete_loved.js
Created May 7, 2017 06:38
Bulk delete Last.FM scrobbles & loved tracks
// On the Last.FM website go to the page which lists the tracks that you have loved.
// Open Chrome DevTools (or Firefox or any modern browser that has a built in Javacript Console)
// and run the following command.
// This basically clicks on all the delete buttons on the page and reloads the page.
jQuery('.love-button--loved').each(function(_, b) {
b.click();
});
location.reload();