Skip to content

Instantly share code, notes, and snippets.

@AHilyard
AHilyard / import-github-labels.js
Created January 6, 2022 20:22
Import Github Labels via console commands
/*
This script will import Github labels from an array.
Optionally, existing labels can be removed prior to import.
Instructions:
Go to the labels page for the repo you'd like to import to (https://github.com/user/repo/labels)
Run the labels exporter script first, if you haven't. (https://gist.github.com/AHilyard/a5b9376d0326fd658a8064d5569791a4)
Modify this script by pasting your labels in where directed,
and optionally changing the "removeExisting" variable to true.
Press Enter
@AHilyard
AHilyard / export-github-labels.js
Last active April 19, 2023 12:56
Export Github Labels via console commands
/*
This script will export Github labels to an array.
This array can then be imported using the label importer script.
Instructions:
Go to the labels page for the repo you'd like to export from (https://github.com/user/repo/labels)
Paste this script in your console
Press Enter
Copy the resultant array into the importer script. (https://gist.github.com/AHilyard/5babebe06c30a48e07d949053e00bd5c)
*/
@AHilyard
AHilyard / tags.txt
Created September 29, 2021 20:24
List of default item tags in forge 36.2.5
forge:barrels
forge:barrels/wooden
forge:bones
forge:bookshelves
forge:chests
forge:chests/ender
forge:chests/trapped
forge:chests/wooden
forge:cobblestone
forge:crops
@AHilyard
AHilyard / generate_storyboard_id.py
Created March 22, 2017 16:35
A very simple Python script to generate Xcode storyboard file IDs.
#!/usr/bin/python
import string
import random
def get_random_character(input):
if input == 'X':
all_characters = string.ascii_letters + string.digits
return random.choice(all_characters)
@AHilyard
AHilyard / signalmanager.cpp
Last active May 23, 2021 21:33
SignalManager class to handle Unix signals safely in Qt Applications.
/**
* @file signalmanager.cpp
*
* @date 6/24/2015
* @author Anthony Hilyard
* @brief
*/
#include "signalmanager.h"