Skip to content

Instantly share code, notes, and snippets.

View Bryan-Legend's full-sized avatar

Bryan Legend Bryan-Legend

View GitHub Profile
@dustinfreeman
dustinfreeman / gist:4d86891e004258fb201919f8d94ae6f8
Last active December 24, 2019 10:53
Bulk-converting tga's to png's in a Unity project, using bash
for f in *.TGA; do mv ./"$f" ./"${f%.TGA}.tga"; done;
for f in *.TGA.meta; do mv ./"$f" ./"${f%.TGA.meta}.tga.meta"; done;
for f in *.tga.meta; do mv ./"$f" ./"${f%.tga.meta}.png.meta"; done;
for f in *.tga; do convert ./"$f" ./"${f%.tga}.png"; done;
# rm *.tga; rm *.tga.meta;
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active July 16, 2024 16:25
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@boki
boki / SpriteBatch.cs
Created April 18, 2011 11:35
A simple SpriteBatch for XNA in Silverlight 5
namespace Botomata.Xna
{
using System;
using System.Globalization;
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
/// <summary>
/// The glyph batch class provides methods and properties to render batches