Skip to content

Instantly share code, notes, and snippets.

View arcv's full-sized avatar
🏠
#!

Oguz arcv

🏠
#!
View GitHub Profile
@arcv
arcv / MainToolbarExtend.cs
Created September 30, 2025 18:32
Available in Unity 6.3+. This script adds extra Play Mode buttons and Time Scale slider to the Play/Pause area. Copy this file to any Editor folder then right click the MainToolbar area then click Show All in the Extend menu. More info: https://docs.unity3d.com/6000.3/Documentation/ScriptReference/Toolbars.MainToolbar.html
using UnityEditor;
using UnityEditor.Toolbars;
using UnityEngine;
/// <summary>
/// Add extra buttons to Main Toolbar in Unity 6.3+
///
/// To enable; right click in the toolbar area (play/pause/step area) and click Show All in Extend menu
/// </summary>
public class MainToolbarExtend
; change exe path
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Alacritty]
@="Open Alacritty Here"
"Icon"="C:\\Apps\sbin\\alacritty.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Alacritty\command]
@="\"C:\\Apps\\sbin\\alacritty.exe\" --working-directory \"%V\""
// go to https://old.reddit.com/user/[your_username]/upvoted/
// open developer tools, ctrl-shift-i
// open console tab and copy-paste code below
// delay 2s between requests
//
// tips: increase display posts per page to 100 from pref page: https://old.reddit.com/prefs/
//
(async () => {
const elements = Array.from(document.querySelectorAll("div.arrow.upmod"));
@arcv
arcv / remove-outlook-upgrade-your-account.txt
Created April 9, 2023 11:05
uBlock filter to remove "Microsoft Outlook Upgrade Your Account" row in web interface
// add this line to My Filters in uBlock configuration
outlook.live.com##span:has-text(Microsoft Outlook):upward(8)
private void Update()
{
if (Input.GetMouseButtonDown(0))
{
swipeStart = true;
firstTap = Input.mousePosition;
}
if (Input.GetMouseButtonUp(0) && swipeStart)
{
@arcv
arcv / open_in_unity.reg
Created March 22, 2020 09:49
Open Unity from directory right click context
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenInUnity2019]
@="Open in Unity 2019.3"
[HKEY_CLASSES_ROOT\Directory\shell\OpenInUnity2019\command]
@="C:\\Program Files\\Unity\\Hub\\Editor\\2019.3.5f1\\Editor\\Unity.exe -projectPath \"%1\""
@arcv
arcv / Startup.cs
Created June 23, 2018 00:18
Auto set Android Build password/alias in Unity3D
// https://davikingcode.com/blog/unity-auto-set-android-password-in-project/
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class GameStartup
{