Skip to content

Instantly share code, notes, and snippets.

@tracer8
tracer8 / multiclone.bat
Created December 6, 2020 10:16 — forked from michidk/multiclone.bat
Clone multiple repos (listed in text file) at once
@echo off
for /F "tokens=*" %%i in (repos.txt) do call :DOSTUFF %%i
pause > nul
:DOSTUFF
echo "Cloning %~1"
git clone https://[email protected]/brokenvector/%~1.git
@tracer8
tracer8 / SoftEther VPN for Ubuntu 16.04 & 18.04
Created November 13, 2020 12:22 — forked from amanjuman/SoftEther VPN for Ubuntu 16.04 & 18.04
SoftEther VPN for Ubuntu 16.04 & 18.04
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.34-9745-beta/softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
@tracer8
tracer8 / CameraBillboard.cs
Created October 4, 2018 05:01 — forked from ditzel/CameraBillboard.cs
Rotates an object (e.g. a canvas) to face it towards the camera
/*
* Rotates an object towards the currently active camera
*
* 1. Attach CameraBillboard component to a canvas or a game object
* 2. Specify the offset and you're done
*
**/
using UnityEngine;
@tracer8
tracer8 / runAndroid.sh
Created August 18, 2018 04:34 — forked from fadookie/runAndroid.sh
Script to install, run, and open logcat for a Unity Android App
#!/bin/sh
# Script to install, run, and open logcat for a Unity Android App.
# I needed this as one of my libraries has a critical post-build script so I can't use "Build and Run" anymore - this is the "and Run" part.
# Be sure to update these variables to match your app's publishing/build settings:
APK_PATH='builds/android/basecode.apk'
BUNDLE_ID='com.eliotlash.basecode'
alias unilogcat='adb logcat|egrep "Unity"'
adb install -r "${APK_PATH}" && adb logcat -c && adb shell am start -n "${BUNDLE_ID}/com.unity3d.player.UnityPlayerNativeActivity" && echo 'DONE, LOG:' && unilogcat
@tracer8
tracer8 / GravityWarp.shader
Created May 18, 2018 02:39 — forked from PixelScream/GravityWarp.shader
Gravity Warp Shader
Shader "Unlit/GravityWarp"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags {
"RenderType"="Opaque"
@tracer8
tracer8 / GlowLevels.shader
Created May 14, 2018 09:44 — forked from jzayed/GlowLevels.shader
Glow Levels Shader
Shader "Sprites/GlowLevels"
{
Properties
{
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}
_AlphaIntensity_Fade_1("_AlphaIntensity_Fade_1", Range(0, 3)) = 1
_TintRGBA_Color_1("_TintRGBA_Color_1", COLOR) = (1,1,1,1)
_AlphaIntensity_Fade_2("_AlphaIntensity_Fade_2", Range(0, 3)) = 1
_TintRGBA_Color_2("_TintRGBA_Color_2", COLOR) = (1,1,1,1)
@tracer8
tracer8 / multiple_ssh_setting.md
Created March 29, 2018 07:52 — forked from rsmn/multiple_ssh_setting.md
How to add Multiple SSH keys to Gitlab and Add Sites from both account to Laravel Forge

Multiple SSH Keys settings for different gitlab account

Example Use Case:

  • Server: Digital Ocean
  • Server Name: serverone
  • First Gitlab Account Username: account1
  • Second Gitlab Account Username: account2

create different public key