Skip to content

Instantly share code, notes, and snippets.

View firestack's full-sized avatar
:accessibility:

Kayla Firestack firestack

:accessibility:
View GitHub Profile
@darktable
darktable / ProjectAssetPostprocessor.cs
Created April 20, 2012 03:37 — forked from hoesing/ProjectAssetPostprocessor.cs
Unity asset pre/postprocessor for applying asset defaults by path.
// Drop this script in the Editor directory in your project (creating the Editor directory if it's not there yet)
// Then re-import the assets in the directories covered by this script (right click and reimport)
//
// I would replace my path checking with the path checking from this gist:
// https://gist.github.com/1842177
//
// The texture settings for icons might want to use some of his settings combined with mine as well
using UnityEngine;
@AngryAnt
AngryAnt / DualDisplay.cs
Last active January 24, 2024 08:26
Example use of the Unity 4.1 AirPlay API - gives a setup with the iOS device as controller of the remote display.
using UnityEngine;
using System.Collections;
/*
Runtime use:
To be available, AirPlay needs to be switched on for the device either via a native AirPlay UI component or
via the global AirPlay mirroring setting. Your options are:
A: Modify your Xcode project to layer a native AirPlay Cocoa control somewhere over your Unity content.
@rmangino
rmangino / gist:8388849
Created January 12, 2014 18:57
Disable the automatic muting of system audio during Dictation under OS X 10.9 (Mavericks)
defaults write com.apple.SpeechRecognitionCore AllowAudioDucking -bool NO
defaults write com.apple.speech.recognition.AppleSpeechRecognition.prefs DictationIMAllowAudioDucking -bool NO
@graphitemaster
graphitemaster / T0.md
Last active May 6, 2024 10:18
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.

@kosua20
kosua20 / gist:0c506b81b3812ac900048059d2383126
Created March 18, 2017 18:35
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
/*============================================================================
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
------------------------------------------------------------------------------
COPYRIGHT (C) 2010, 2011 NVIDIA CORPORATION. ALL RIGHTS RESERVED.
------------------------------------------------------------------------------
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
@Geri-Borbas
Geri-Borbas / AllEditorAssetNames.txt
Last active January 11, 2023 03:06
Asset names in the Unity Editor Asset Bundle. More at http://eppz.eu/blog/unity-editor-icon-assets/
avatar/arrow.fbx, arrow, UnityEngine.GameObject
avatar/defaultavatar.fbx, DefaultAvatar, UnityEngine.GameObject
avatar/defaultgeneric.fbx, DefaultGeneric, UnityEngine.GameObject
avatar/dial_flat.prefab, dial_flat, UnityEngine.GameObject
avatar/dude.fbm/body normal.tga, body normal, UnityEngine.Texture2D
avatar/dude.fbm/body_color_map.tga, body_color_map, UnityEngine.Texture2D
avatar/dude.fbm/body_specular_map.tga, body_specular_map, UnityEngine.Texture2D
avatar/dude.fbm/eyes_color_map.tga, eyes_color_map, UnityEngine.Texture2D
avatar/dude.fbm/eyes_specular_map.tga, eyes_specular_map, UnityEngine.Texture2D
avatar/dude.fbm/face normal.tga, face normal, UnityEngine.Texture2D
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@ivan
ivan / fix-vscode-server-binaries.nix
Last active May 29, 2022 00:54
Fix vscode server for NixOS
# Based on https://gist.github.com/sonowz/d70b03177c344f4bbbc674de5e5bb937
with import <nixpkgs> {};
let
pname = "fix-vscode-server-binaries";
script = pkgs.writeShellScriptBin pname ''
set -eu -o pipefail
SCRIPT_DIR="$(dirname -- "$(readlink -f -- "$0")")"
@tadfisher
tadfisher / build.nix
Last active May 16, 2024 14:26
Simplified Nix integration with Gradle
{ lib
, stdenv
, jdk
, gradle
, mavenRepo
}:
stdenv.mkDerivation {
pname = "built-with-gradle";
version = "0.0";
@vancluever
vancluever / macos-big-sur-ssh-agent-local-no-disable-sip.md
Last active March 9, 2024 21:45
Run SSH Agent w/Modified Options (MacOS Big Sur, No Homebrew, No SIP Modification)

Run SSH Agent w/Modified Options (MacOS Big Sur, No Homebrew, No SIP Modification)

The following will show you how you can modify the startup options of the SSH agent supplied by MacOS in a non-invasive way. This can be useful for doing things like setting a key lifetime, which can then be used with AddKeysToAgent in your ~/.ssh/config to automate the timing out of saved keys. This ensures that your passphrase is re-asked for periodically without having to shutdown, re-log, or having it actually persisted in keychain, the latter being almost as bad as having no passphrase at all, given that simply being logged in is generally enough to then use the key.

This method does not modify the system-installed SSH agent service (com.openssh.ssh-agent), but rather duplicates its functionality into a user-installed launch agent where we can then modify the options. Modifying the system-installed service is becoming increasingly harder to do; SIP generally protects