Skip to content

Instantly share code, notes, and snippets.

View paveltimofeev's full-sized avatar

Pavel Timofeev paveltimofeev

View GitHub Profile
@AngryAnt
AngryAnt / PackageInfo.cs
Created November 8, 2012 09:19
Utility editor script for displaying a dialog message when it is imported. Useful for adding messages to asset store packages for instance. Rather than just showing a dialogue, this could also be used as a platform for running an actual package installer
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class PackageInfo
{
const string kTitle = "Notice", kMessage = "This package is the prettiest of them all.", kButton = "Ok", kPackageIdentifier = "AwesomePackage";
@AngryAnt
AngryAnt / Menu.cs
Created September 30, 2012 07:38
Example code for "Building a menu of delegates and enums" blog post on AngryAnt.com
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Menu : MonoBehaviour
{
delegate void OnGUIImplementation();
public enum MenuState {Main,Settings,Credits};
public struct Settings
{
@bradland
bradland / ssh-known-hosts-mgmt.sh
Last active April 4, 2023 21:21
SSH known_hosts tools
# This is a short collection of tools that are useful for managing your
# known_hosts file. In this case, I'm using the '-f' flag to specify the
# global known_hosts file because I'll be adding many deploy users on this
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts
# Add entry for host
ssh-keyscan -H github.com >> /etc/ssh/ssh_known_hosts
# Scan known hosts
ssh-keygen -f /etc/ssh/ssh_known_hosts -F github.com