Skip to content

Instantly share code, notes, and snippets.

View roguesleipnir's full-sized avatar

Ryan roguesleipnir

View GitHub Profile
@roguesleipnir
roguesleipnir / HideTwtImg.js
Last active May 5, 2023 06:03
Hide Twitter Image posts.
// ==UserScript==
// @name Hide Twitter Images. Show Videos Only.
// @namespace roguesleipnir
// @version 1.0
// @include http://twitter.com/*
// @include https://twitter.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
@roguesleipnir
roguesleipnir / LassoAutoFillAction.jsx
Last active October 17, 2024 03:25
Auto-Fill Lasso Scripts for Photoshop.
try {
// If bounds are null then there is no selection.
// But null check fails? So use Try/Catch instead.
if (app.activeDocument.selection.bounds) {
// Check Shift Modifier
SHIFT = ScriptUI.environment.keyboardState.shiftKey;
CTRL = ScriptUI.environment.keyboardState.ctrlKey;
// Fill manually.
if (!(CTRL || SHIFT)) {
@roguesleipnir
roguesleipnir / 1-tldr
Created December 20, 2019 07:40
Garrison Archangel December Public Changelog
Campaign Updates
- Sunfield Frontier Final Paragon Mission, Ending Cutscenes.
- Ducouronne Final Paragon Mission, Ending Cutscenes.
- Improved Missions Squad AI.
- Multi-targeting on some Missile weapons upgrades.
New Melee-oriented Internals
- Fine Manipulators - Reload & Trick speed +30%
- Assault Condensers - Trick Charge Rate +20%
- Melee Overdrive - Melee attack speed +15%
@roguesleipnir
roguesleipnir / SearchForProperties.cs
Last active April 7, 2021 11:20
Quick search for components and serialized properties in prefabs.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public class SearchForProperties : EditorWindow {
MonoScript targetComponent;
string propertyString;
bool hideVariants;
@roguesleipnir
roguesleipnir / ShaderOccurence.cs
Last active August 2, 2022 11:18
Material/Shader reference searcher. Find materials that use a shader by name string. Find materials with missing shader or errors. Original snippet from https://answers.unity.com/questions/510945/find-materials-that-use-a-certain-shader.html
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
//https://answers.unity.com/questions/510945/find-materials-that-use-a-certain-shader.html
public class ShaderOccurenceWindow : EditorWindow {
[MenuItem ("Tools/Shader Occurence")]
public static void Open () {