Skip to content

Instantly share code, notes, and snippets.

View Nesh108's full-sized avatar

Nesh Nesh108

View GitHub Profile
@Nesh108
Nesh108 / CustomComponentMenu.cs
Created April 17, 2020 14:37
Unity - How to create custom menu for Components
using UnityEditor;
using UnityEngine;
public class CustomComponentMenu : MonoBehaviour
{
// Object is for any component type
[MenuItem("CONTEXT/Object/Move Top")]
static void MoveTop(MenuCommand command)
{
// Making sure it goes to the top
@Nesh108
Nesh108 / DiscordLogger.cs
Last active February 8, 2024 01:59
Unity Logger for posting Errors to Discord channel
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Networking;
// License: MIT
// Created by: Aceria_
// Edited by: Nesh108
// To use, add these to any MonoBehaviour:
// OnEnable: `Application.logMessageReceived += DiscordLogger.HandleLog;`
@Nesh108
Nesh108 / ParallaxPlacer.cs
Last active February 27, 2019 08:37
Parallax Placer Gist
using UnityEngine;
[ExecuteInEditMode]
public class ParallaxPlacer : MonoBehaviour
{
[SerializeField] private ParallaxSettings Settings;
[SerializeField] private SpriteRenderer[] ParallaxObjects;
void LateUpdate()
{
@Nesh108
Nesh108 / golang-tls.md
Created July 3, 2016 15:52 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key