Skip to content

Instantly share code, notes, and snippets.

View kiraio-moe's full-sized avatar
๐Ÿ”ฅ
Work & Code

Bayu Satiyo โœจ kiraio-moe

๐Ÿ”ฅ
Work & Code
View GitHub Profile
@zanculmarktum
zanculmarktum / megafetch.sh
Last active July 15, 2025 14:30
Get download url from mega.nz
#!/bin/bash
# Copyright 2018, 2019, 2020 Azure Zanculmarktum
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@tomkail
tomkail / ExtendedScriptableObjectDrawer.cs
Last active July 24, 2025 18:45
Displays the fields of a ScriptableObject in the inspector
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
@ProGM
ProGM / ExampleBehavior.cs
Created October 19, 2016 10:39
A PropertyDrawer to show a popup field with a generic list of string for your Unity3d attribute
public class MyBehavior : MonoBehaviour {
// This will store the string value
[StringInList("Cat", "Dog")] public string Animal;
// This will store the index of the array value
[StringInList("John", "Jack", "Jim")] public int PersonID;
// Showing a list of loaded scenes
[StringInList(typeof(PropertyDrawersHelper), "AllSceneNames")] public string SceneName;
}
@SvDvorak
SvDvorak / WaveGenerator.cs
Last active July 8, 2023 02:09
Unity sound wave using line renderers
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// Creates a wave form based on an audiosource
/// Modified version of http://forum.unity3d.com/threads/making-sense-of-spectrum-data.90262
/// Make sure to plug in the _topLine and _bottomLine line renderers
public class WaveGenerator : MonoBehaviour
{
@evantoli
evantoli / GitConfigHttpProxy.md
Last active July 16, 2025 15:10
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@allfake
allfake / showPolygon2Dcollider.cs
Last active December 30, 2023 19:02 — forked from adekbadek/showedgecollider.cs
Show 2D Polygon Collider as Gizmo, also in Edit Mode (Not support rotation)
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[ExecuteInEditMode]
public class VisibleCollider : MonoBehaviour {
public bool showLine = true;
public Color lineColor = Color.blue;
Shader "Custom/yar" {
Properties {
_ColorLow ("Color Low", COLOR) = (1,1,1,1)
_ColorHigh ("Color High", COLOR) = (1,1,1,1)
_yPosLow ("Y Pos Low", Float) = 0
_yPosHigh ("Y Pos High", Float) = 10
_GradientStrength ("Graident Strength", Float) = 1
_EmissiveStrengh ("Emissive Strengh ", Float) = 1
_ColorX ("Color X", COLOR) = (1,1,1,1)
_ColorY ("Color Y", COLOR) = (1,1,1,1)
@frarees
frarees / MinMaxSliderAttribute.cs
Last active July 25, 2025 09:56
MinMaxSlider for Unity
// https://frarees.github.io/default-gist-license
using System;
using UnityEngine;
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class MinMaxSliderAttribute : PropertyAttribute
{
public float Min { get; set; }
public float Max { get; set; }
@abruzzi
abruzzi / how-to-configure-apt-get.md
Created January 15, 2014 09:00
How to configure apt-get after you had ubuntu installed.

Proxy settings

Touch the proxy configuration file if needed

sudo vi /etc/apt/apt.conf.d/80proxy

Add the following configuration:

@muzizongheng
muzizongheng / AccessCSDN.py
Last active November 8, 2024 17:13
login CSDN by using urllib
#Use this utility to access CSDN blog.
#Author: jiangong li
#Email: [email protected]
import base64
from http import cookiejar
import urllib.request, urllib.parse, urllib.error
#url for accessing
csdnLoginUrl = r"http://passport.csdn.net/ajax/accounthandler.ashx?"