Skip to content

Instantly share code, notes, and snippets.

// Code borrowed from ardvarkmadman and Raiku17 on reddit
svgfile = "heart_25x19.svg";
module baseSVG(){
import(svgfile,center=true);
}
linear_extrude(height=3.5)
#!/bin/bash
# Script originally from https://blog.arrogantrabbit.com/backup/Duplicacy-Web-on-Synology-Diskstation/
# Duplicacy version. Modify and re-run the script when new version is released
DUPLICACY_WEB_VERSION=1.3.0
# Username for the daemon to run on behalf of. Give this user permission to read stuff that needs to be backed up.
USERNAME=duplicacy
GROUPNAME=users
using UnityEngine;
using UnityEditor;
using System.IO;
public class FixPrefabThing
{
// Add menu item named "My Window" to the Window menu
[MenuItem("Sam/FixPrefabThing")]
public static void DoSomething()
{
// Terrain offset thing
// Offsets terrain height, splats, details, trees
// I place this code in the public domain. I accept no responsibility for broken terrains or any other bad things.
// Version 1
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
public class TerrainFixer : MonoBehaviour {