Skip to content

Instantly share code, notes, and snippets.

View falldeaf's full-sized avatar

Tom Mardis falldeaf

View GitHub Profile
@falldeaf
falldeaf / plugin_plugins.py
Last active January 31, 2023 16:45
Search plugin for finding TermLauncher plugins
import json
from urllib.request import urlopen,urlretrieve
import pathlib
from appdirs import *
import argparse
from fuzzywuzzy import fuzz, process
parser = argparse.ArgumentParser()
parser.add_argument('--search', help='plugins to search for')
parser.add_argument('--install', help='Install a plugin from a gist')
@falldeaf
falldeaf / plugin_list.json
Last active January 31, 2023 16:39
TermLauncher Plugin List
[
{
"name": "Plugin browser/installer",
"uid": "599e78ae671f1e5506c6b6efb203b998"
},
{
"name": "Application opener",
"uid": "83e239c358e87be89f178b60fe466991"
},
{
@falldeaf
falldeaf / plugin_ai.py
Last active March 21, 2023 20:09
OpenAI interface for termlauncher
import json
import keyring
import argparse
import openai
parser = argparse.ArgumentParser()
parser.add_argument('--prompt', help='search sites for')
parser.add_argument('--apikey', help='Set api key (only needed once)')
parser.add_argument('--temp', help='How deterministic?', default=1, type=int)
parser.add_argument('--tokens', help='How many tokens, max?', default=256, type=int)
@falldeaf
falldeaf / plugin_websearch.py
Last active January 30, 2023 22:01
Web search for termlauncher
import json
import argparse
import webbrowser
parser = argparse.ArgumentParser()
parser.add_argument('--sites', action='store_true', help='search sites for')
parser.add_argument('--run', help='run an application')
parser.add_argument('--index', help='which search item?', default=0, type=int)
args = parser.parse_args()
@falldeaf
falldeaf / plugin_apps.py
Last active January 30, 2023 21:22
App launcher for termlauncher
import json
import argparse
import windowsapps
from fuzzywuzzy import fuzz, process
parser = argparse.ArgumentParser()
parser.add_argument('--search', help='search for app')
parser.add_argument('--run', help='run an application')
parser.add_argument('--num', help='how many results?', default=10, type=int)
args = parser.parse_args()
@falldeaf
falldeaf / plugin_steam.py
Last active January 30, 2023 18:27
Steam library plugin for termlauncher
import ast
import json
import os
import keyring
import pickle
import argparse
import requests
import webbrowser
from fuzzywuzzy import process
#from dotenv import load_dotenv
@falldeaf
falldeaf / unlit-enemy-drip.shader
Last active May 31, 2022 13:27
A Unity3D, unlit shader effect that creates a cartoonish dripping effect on the surface of a model
Shader "Unlit/Enemy Drip"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Droplet color", Color) = (.34, .85, .92, 1) // color
_BTime ("Blink speed", float) = 0.0 // highlight blink speed
_Drops ("# of Droplets per face", int) = 3
_Speed ("Speed of Droplets", Float) = 1.0
_Size ("Size of Droplets", Float) = 1.0
@falldeaf
falldeaf / keepalive.ps1
Created November 24, 2020 17:39
PowerShell script to keep your locked down computer from going to sleep
Clear-Host
Echo "Keep-alive with Scroll Lock..."
$WShell = New-Object -com "Wscript.Shell"
while ($true)
{
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Milliseconds 100
$WShell.sendkeys("{SCROLLLOCK}")
bl_info = {
"name": "Collection Helpers",
"description": "Operators and hotkeys for selecting (Alt+L), duplicating (Ctrl+D), and deleting (Ctrl+X) entire collections based on one member object",
"author": "Tom Mardis (Falldeaf)",
"version": (1, 0),
"blender": (2, 82, 7),
"location": "Object Context Menu",
#"warning": "", # used for warning icon and text in addons panel
#"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/My_Script",
"tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
bl_info = {
"name": "Materials to .PNG Map",
"description": "Convert list of materials to a .PNG",
"author": "Tom Mardis (Falldeaf)",
"version": (1, 0),
"blender": (2, 82, 7),
"location": "Material Specials Menu",
#"warning": "", # used for warning icon and text in addons panel
#"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/My_Script",
#"tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",