Skip to content

Instantly share code, notes, and snippets.

View JohnnyHowe's full-sized avatar
🤠
Enjoying a glass of milk

Johnny Howe JohnnyHowe

🤠
Enjoying a glass of milk
View GitHub Profile
@JohnnyHowe
JohnnyHowe / make_index.py
Last active April 8, 2022 15:18
Place me in a Obsidian md vault and when run I will create an index.md file. Filenames shown as headings, and headins shown as bullet points with appropriate indenting.
"""
Place me in a Obsidian md vault and when run I will create an index.md file.
Filenames shown as headings, and headins shown as bullet points with appropriate indenting.
Just try it out
Jonathon Howe
"""
import os
import re
@JohnnyHowe
JohnnyHowe / PlayStoreUpload.sh
Last active January 22, 2024 02:28
Tutorial on how to use Unity Cloud Build to build and then upload your app to the Play Store
#!/bin/bash
KEY_WITH_NEWLINES=$(echo $PLAYSTORE_KEY | jq '.private_key |= sub(" (?!PRIVATE|KEY)"; "\n"; "g")' -c -j)
fastlane supply init
fastlane supply \
--package_name "$PACKAGE_NAME" \
--aab "$UNITY_PLAYER_PATH" \
--json_key_data "$KEY_WITH_NEWLINES" \
--track $RELEASE_TRACK \
@JohnnyHowe
JohnnyHowe / sprite.shader
Last active April 30, 2026 22:22
Unity Sprite Shadow and Flashable Shader
// Combination of https://pastebin.com/yRPktdSP (https://www.youtube.com/watch?v=flu2PNRUAso) and https://gist.github.com/ilhamhe/81b285fd302d7964d18c22ad05857343
Shader "Sprites/Custom/Sprite"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
_FlashColor ("Flash Color", Color) = (1,1,1,1)
@JohnnyHowe
JohnnyHowe / move_all_blend_files_to_hidden_folder.py
Created November 8, 2025 17:59
Move all .blend files to subfolder
"""
# What?
Move every .blend file in working_dir/Assets to a hidden folder in place of the original file.
So all .blend files in Assets/Models/Weapons gets moved to Assets/Models/Weapons/.blend_files
Important notes
* Will NOT move files if they're already hidden (any parent folder prefixed with ".")
* WILL change everything else: files in git submodules
# How to Use
For the love of god, make a backup, this is a one way script.