Skip to content

Instantly share code, notes, and snippets.

View daniele-rapagnani's full-sized avatar

Daniele Rapagnani daniele-rapagnani

View GitHub Profile
@daniele-rapagnani
daniele-rapagnani / Hide Ratings on 1001albumsgenerator.user.js
Created August 26, 2021 09:50
Greasemonkey script to hide group ratings on 1001albumsgenerator.com to avoid being influenced if you didn't vote yet
// ==UserScript==
// @name Hide Ratings on 1001albumsgenerator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hides group ratings on 1001 albums generator to avoid being influenced if you didn't vote yet
// @author Daniele Rapagnani
// @match https://1001albumsgenerator.com/groups*
// @icon https://1001albumsgenerator.com/images/favicon.ico
// @grant none
// ==/UserScript==
@daniele-rapagnani
daniele-rapagnani / unity_find_guid.sh
Created November 11, 2020 19:16
A simple script to match Unity GUIDs to files. Useful when manually merging scenes.
#!/bin/bash
# Run inside a Unity project's root
if [ -z "$1" ]; then
echo "Usage: $0 guid" 1>&2
exit 1
fi
FILENAME=`grep -lr --include "*.scene" --include "*.meta" "^guid: $1$" . | head -n 1`
@daniele-rapagnani
daniele-rapagnani / dump_google_spaces.js
Created March 1, 2017 10:55
Quick and dirty snippet for exporting links from Google Spaces
/**
* This dirty, dirty script, allows you to export links from google spaces
* so that you don't have to do it manually before April 17th.
* I could not find any official way to do this so I quickly threw this script
* together.
*
* USAGE:
* 1. Place yourself on the space page you want to export
* (such as: https://spaces.google.com/space/XXXXXXXXXXXXXXX)
*