This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Cheers; | |
public class FreeLook : MonoBehaviour | |
{ | |
public float mouseSpeed = 10f; | |
public float minYaw = -40; | |
public float maxYaw = 40; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)" | |
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi | |
# Git sometimes goes into a detached head state. git_prompt_info doesn't | |
# return anything in this case. So wrap it in another function and check | |
# for an empty string. | |
function check_git_prompt_info() { | |
if git rev-parse --git-dir > /dev/null 2>&1; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/wizcas/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;=================================================================================================== | |
;====================================== Volume OSD ================================================= | |
;=================================================================================================== | |
; Author: Sjc1000 ( Uptone Software ) | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e "\ | |
====================== | |
GIT PROXY SETUP TOOL | |
by wizcas | |
====================== | |
Prerequisites: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create or update this file at: /etc/wsl.conf | |
# Enable extra metadata options by default | |
[automount] | |
enabled = true | |
root = / | |
options = "metadata,umask=22,fmask=11" | |
mountFsTab = false | |
# Enable DNS – even though these are turned on by default, we’ll specify here just to be explicit. | |
[network] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the apt proxy config file | |
sudo vi /etc/apt/apt.conf.d/proxy.conf | |
# Add http & https proxies into the file | |
Acquire { | |
HTTP::proxy "http://127.0.0.1:7890"; | |
HTTPS::proxy "http://127.0.0.1:7890"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example makefile with some dummy rules | |
.PHONY: all | |
## Make ALL the things; this includes: building the target, testing it, and | |
## deploying to server. | |
all: test deploy | |
.PHONY: build | |
# No documentation; target will be omitted from help display | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; How much height of screen size the terminal window takes. | |
VRatio := 0.8 | |
; The path to the Windows Terminal exe file. | |
WtPath = "%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" | |
#SC29::ToggleTerminal() | |
ShowAndPositionTerminal() | |
{ | |
ScreenX := GetScreenLeft() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"command" : "closeTab", | |
"keys" : | |
[ | |
"ctrl+shift+w" | |
] | |
}, | |
{ | |
"command": "closePane", | |
"keys": [ |
OlderNewer