Skip to content

Instantly share code, notes, and snippets.

View wheresmytyphone's full-sized avatar

wheresmytyphone

View GitHub Profile
@FreyaHolmer
FreyaHolmer / FlyCamera.cs
Last active April 24, 2025 21:16
A camera controller for easily flying around a scene in Unity smoothly. WASD for lateral movement, Space & Ctrl for vertical movement, Shift to move faster. Add this script to an existing camera, or an empty game object, hit play, and you're ready to go~
using UnityEngine;
[RequireComponent( typeof(Camera) )]
public class FlyCamera : MonoBehaviour {
public float acceleration = 50; // how fast you accelerate
public float accSprintMultiplier = 4; // how much faster you go when "sprinting"
public float lookSensitivity = 1; // mouse look sensitivity
public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input
public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable
@carcheky
carcheky / stopadobe.ps1
Created August 1, 2019 09:39
Stop all adobe shit process
# https://forums.adobe.com/thread/2621275
cd C:\Users\cmartinezv\Documents
# This will Stop the Services, and change the startup from Automatic to Manual - Opening Adobe Applications will start these services, without your interaction. If you have issues, you can manually start them by replacing Get-Service with Start-Service, or open the Services Panel with WindowsKey+R: "services.msc"
# Setting Startup to Manual only needs to be run once. Stopping the services needs to be done each time you exit application, if you don't want background services running. Such as Sync.
Get-Service -DisplayName Adobe* | Stop-Service
Get-Service -DisplayName Adobe* | Set-Service -StartupType Manual