Skip to content

Instantly share code, notes, and snippets.

@plmcgrn
plmcgrn / Apple_Music_Up_Downvote_Shortcuts.md
Last active December 4, 2024 17:19
Setting favorite/suggest less keyboard shortcuts in Apple Music for Mac

Setting favorite/suggest less keyboard shortcuts in Apple Music for Mac

Apple seems to have dropped the ball on binding these fairly important actions to native shortcut keys while also supplying them for a mountain of things most people don't carte about. This gist will show you how to correct that.

Tested on Apple Music 1.4.2.83 on MacOS Sonoma 14.2.1

What you'll need

  • Automator
  • System Settings

Suggest Less and Next Track

@Omar-Aldawy
Omar-Aldawy / index.html
Created October 8, 2022 11:33
yeti login
<form>
<div class="svgContainer">
<div>
<svg class="mySVG" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 200">
<defs>
<circle id="armMaskPath" cx="100" cy="100" r="100"/>
</defs>
<clipPath id="armMask">
<use xlink:href="#armMaskPath" overflow="visible"/>
</clipPath>
@ryankurte
ryankurte / whatever.service
Created June 16, 2019 03:41
Minimal systemd unit
# place in /etc/systemd/system/whatever.service and install with `systemd install whatever.service`
# note that if you change this file you will need to run `systemctl daemon-reload` to get systemd to notice
[Unit]
Description=A good service description
# After networking because we need that
After=network.target
[Service]
@matthewzring
matthewzring / markdown-text-101.md
Last active December 4, 2024 17:13
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active December 4, 2024 17:13
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@mattifestation
mattifestation / CertTBSHash.ps1
Created September 7, 2017 01:13
Calculates a ToBeSigned hash of a certificate, producing the same uniquely identifying hash present in code integrity rule sets.
# Example: ls 'C:\Windows\System32\*' -Include '*.dll' | Get-AuthenticodeSignature | Select -ExpandProperty SignerCertificate | Get-TBSHash
filter Get-TBSHash {
[OutputType([String])]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[Security.Cryptography.X509Certificates.X509Certificate2]
$Certificate
)
/**
* @section General Code Styles
*/
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 0.875em;
@broestls
broestls / Remove_VMwareTools.ps1
Last active December 4, 2024 17:12
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;
@bramreth
bramreth / Godot4FPS.gd
Last active December 4, 2024 17:11
The code for a first person movement youtube tutorial in Godot 4
extends CharacterBody3D
const SPEED = 5.0
const JUMP_VELOCITY = 4.5
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity")
@onready var neck := $Neck
@onready var camera := $Neck/Camera3d
@steffenmueller4
steffenmueller4 / k3s-syncthing.yaml
Last active December 4, 2024 17:10
Kubernetes (k3s + Traefik) Syncthing Deployment
---
apiVersion: v1
kind: Namespace
metadata:
name: syncthing
labels:
name: syncthing
---
apiVersion: v1
kind: PersistentVolumeClaim