Skip to content

Instantly share code, notes, and snippets.

@xezrunner
xezrunner / xz_pre-commit-nocheckin
Last active March 8, 2024 05:38
Git nocheckin pre-commit hook (with error message and grep output)
#!/bin/bash
# Author: xezrunner (github.com/xezrunner)
# Credit: DustinGadal on r/Jai
# https://www.reddit.com/r/Jai/comments/jp0vjy/nocheckin_behavior_in_gitsourcetree/gbfhzd1/
# Required programs/utilities for default behavior (as-is):
# git, grep, xargs
# This pre-commit hook/script checks for the existence of the word "$SEARCH_TARGET"
# in your *staged* source files, then aborts the commit if any matches were found.
// The progressringAnimation Timer object is placed in a form (WinForms designer), and has an Interval of 30.
// The progressRing Label object has its Font property set to the Setup font.
// In case you are using the Segoe Boot Semilight font, make sure to check the character codes!
// There's better ways to do this, this was my solution back in 2015.
// This is the "first frame - 1" character code. You can get the character codes with the Character map.
char code = "\ue051"[0];
private async void progressringAnimator_Tick(object sender, EventArgs e)
{
class DefaultApplicationConfiguration
{
public List<Configuration> CreateDefaultApplicationConfigurationList()
{
return new List<Configuration>
{
// Theming engine
new Configuration() {Property = "IsThemingEnabled", DefaultValue = "True"},
new Configuration() {Property = "IsAccentColorizationEnabled", DefaultValue = "True"},
new Configuration() {Property = "IsFluentDesignChoice", DefaultValue = "True"},