Skip to content

Instantly share code, notes, and snippets.

View teefan's full-sized avatar
🏠
Working from home

Long Tran teefan

🏠
Working from home
View GitHub Profile
@teefan
teefan / build.bat
Last active October 26, 2023 03:58
Simple Godot build script for Windows
@echo off
set godot_dir=C:\godot
set doc_dir=C:\godot-docs
set demo_dir=C:\godot-demos
set copy_editor_dir=C:\Users\Teefan\Desktop\Godot\Editors
set export_templates_dir=C:\Users\Teefan\AppData\Roaming\Godot\export_templates
git fetch
@teefan
teefan / .bashrc
Created March 8, 2023 08:18 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@teefan
teefan / .bash_profile
Last active March 5, 2023 03:06
Fix Cygwin Ruby missing command alias
export RUBY_BIN="/cygdrive/c/Ruby32-x64/bin"
for file in $RUBY_BIN/*.bat; do
base=$(basename -- "$file")
cmd="${base%.*}"
alias $cmd="$file"
done
@teefan
teefan / .gitattributes
Last active March 31, 2024 08:42
Unity Git LFS .gitattributes
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@teefan
teefan / gist:927b13d51801b2544e8f6ac1c6cf087b
Created July 19, 2022 14:33
Install Ruby on MacOSX SSL workaround flag
OPENSSL_CFLAGS=-Wno-error=implicit-function-declaration
@teefan
teefan / Keychron Linux Function Key
Created May 8, 2022 10:14
Make Keychron Linux Function keys work
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
git config --global alias.co checkout
git config --global alias.cob 'checkout -b'
git config --global alias.f fetch
git config --global alias.fp 'fetch -p'
git config --global alias.a add
git config --global alias.c commit
git config --global alias.cm 'commit -m'
git config --global alias.ca 'commit --amend'
git config --global alias.pu pull
git config --global alias.p push
alias gs='git status'
alias gm='git merge'
alias grb='git rebase'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gp='git pull'
alias gf='git fetch -p'
alias gc='git commit'
@teefan
teefan / perl: warning: Setting locale failed.txt
Created September 28, 2018 10:37
perl: warning: Setting locale failed
export LANGUAGE="en_US.UTF-8"
echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale
@teefan
teefan / image_type.sh
Last active June 19, 2018 05:26
Check file types of all files recursively osx terminal command line
find ./images -name "*.png" | xargs -Irepl file -I repl