Example Use Case:
- Server: Digital Ocean
- Server Name: serverone
- First Gitlab Account Username: account1
- Second Gitlab Account Username: account2
create different public key
| public class AutoChangeGradleVersion : IPostGenerateGradleAndroidProject, IPreprocessBuildWithReport | |
| { | |
| public int callbackOrder | |
| { | |
| get | |
| { | |
| return 1; | |
| } | |
| } |
| @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 |
| 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 * |
| /* | |
| * 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; |
| #!/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 |
| youtube-dl --download-archive archive.txt -i --format mp4 URL |
| Shader "Unlit/GravityWarp" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { | |
| "RenderType"="Opaque" |
| 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) |
| // Query score | |
| public void QueryScores(int limitUserQuery, Action<List<FacebookUserData>> callbackQueryScoreSuccessPost) | |
| { | |
| string apiCommand = string.Format("/app/scores?fields=score,user.limit({0})", limitUserQuery); | |
| FB.API(apiCommand, HttpMethod.GET, QueryScoresCallback); | |
| OnQueryScoreSuccess = callbackQueryScoreSuccessPost; | |
| } |