Skip to content

Instantly share code, notes, and snippets.

View Leopotam's full-sized avatar
🇷🇺

Leopotam Leopotam

🇷🇺
View GitHub Profile
@Leopotam
Leopotam / fix_voltage.sh
Created December 8, 2022 00:43 — forked from darkxanter/fix_voltage.sh
orange pi pc fix voltage
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
if [ "$(id -u)" != "0" ]; then
echo "This script must be executed as root. Exiting" >&2
exit 1
fi
apt-get install git pkg-config libusb-dev libusb-1.0-0-dev build-essential
@Leopotam
Leopotam / UnityShaderFFS.md
Created April 4, 2019 15:13 — forked from smkplus/UnityShaderCheatSheet.md
Controlling fixed function states from materials/scripts in Unity

16999105_467532653370479_4085466863356780898_n

Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
 
[HideInInspector] _MainTex2("Hide Texture", 2D) = "white" {}