Skip to content

Instantly share code, notes, and snippets.

View cihadturhan-st's full-sized avatar

Cihad Turhan cihadturhan-st

View GitHub Profile
@mihow
mihow / load_dotenv.sh
Last active August 17, 2025 04:25
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@R-WebsterNoble
R-WebsterNoble / SavWav.cs
Last active November 8, 2024 02:15 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,