Skip to content

Instantly share code, notes, and snippets.

@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active October 28, 2025 19:35
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@j-mai
j-mai / README.md
Last active October 14, 2025 19:03
A guide for using Unity and Git

Using Git with Unity

What are the problems?

  • Noise: Unity editor has lots of temporary files that we don’t want git to track
  • Broken object references: Unity keeps track of objects created by using random GUIDs, and if they aren’t tracked using .meta files then there can be conflicts that really break your project
  • Unresolvable merge conflicts: files like scene files that are written in confusing languages (like YAML) that are supposed to be translations of Unity editor actions into code. Most likely, you cannot resolve using Git, and the only way to resolve merge conflicts is to open it in a text editor and resolve them manually while hoping you don't mess anything up because these files are confusing and not meant to be manipulated directly.
  • Large files: Sometimes assets are large and take up a lot of storage space

💻 Project Setup

@DarinDev1000
DarinDev1000 / My_Recommended_Programs.md
Created January 20, 2020 02:14
My Recommended Programs
@DarinDev1000
DarinDev1000 / init-export-db-schema.sh
Last active February 8, 2020 08:48
Run this file in your project directory to add a database schema export script.
#!/bin/bash
echo "************************************"
echo
echo "This script initializes a new database schema export in this project"
echo "It exports the database schema from localhost with the mysql and mysqldump cli tools"
echo
echo "You may want to make a new database user named 'export' with the correct permissions"
echo "permissions example: mysql> GRANT SELECT,LOCK TABLES ON DBNAME.* TO 'username'@'localhost';"
echo
echo "------WARNING------"
// This page demonstrates running multiple functions simultaneously
// and waiting on them to finish.
// Maybe you have an api call that takes 6 seconds...
// And you only need the response at the end
// Would you like to start a function and check if the promise is resolved later?
// Then check out the async/await and the promiseAll functions
main();
@ditzel
ditzel / PhysicsHelper.cs
Created January 20, 2019 16:54
Unity Helper for Physic Functions
using UnityEngine;
namespace Ditzelgames
{
public static class PhysicsHelper
{
public static void ApplyForceToReachVelocity(Rigidbody rigidbody, Vector3 velocity, float force = 1, ForceMode mode = ForceMode.Force)
{
if (force == 0 || velocity.magnitude == 0)