Skip to content

Instantly share code, notes, and snippets.

@inikitin
inikitin / .gitattributes
Last active June 14, 2024 10:06
.gitattributes for Unity with case-insensitive Git LFS extension filters
# Unity specific .gitattributes
* text=auto
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity YAML
*.anim -text merge=unityyamlmerge diff
@simdezimon
simdezimon / VRNightVision.cs
Last active April 13, 2021 04:18
VR Night Vision Shader
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class VRNightVision : MonoBehaviour {
private Material material;
private Camera cam;
[Tooltip("Grain size in pixel. Should be greater than 1 with supersampling.")]
@adamb70
adamb70 / Blowfish-Compat.py
Created April 15, 2015 22:59
Decrypt and encrypt Blowfish-Compat format files in Python 2.7
import os
from Crypto.Cipher import _Blowfish
from struct import pack
def encrypt(infilepath, outfilepath, key):
""" Encrypt the specified file with the specified
key and output to the chosen output file."""
size = os.path.getsize(infilepath)