Skip to content

Instantly share code, notes, and snippets.

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

Wing Chau iamWing

🏠
Working from home
View GitHub Profile
@iamWing
iamWing / .gitconfig
Last active December 17, 2023 04:38
git graph command alias
[alias]
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
graph-log = log --all --decorate --graph
@iamWing
iamWing / unity.gitattributes
Created March 16, 2023 09:07
.gitattributes file for Unity projects
# Macro for Unity YAML-based asset files.
[attr]unityyaml merge=unityyamlmerge diff -text
# Macro for all binary files that should use Git LFS.
[attr]lfs filter=lfs diff=lfs merge=lfs -text
# Default to auto-normalized line endings.
* text=auto
# Code
@iamWing
iamWing / .zshrc
Last active February 18, 2024 03:01
.zshrc from my primary Mac
export LC_ALL=en_US.UTF-8
export PATH="/usr/local/bin:$PATH"
export TERM="xterm-256color"
alias ..='cd ..'
alias ll='ls -alF'
POWERLEVEL9K_MODE="nerdfont-complete"
source /usr/local/share/powerlevel10k/powerlevel10k.zsh-theme
@iamWing
iamWing / package.json
Last active July 24, 2022 01:41
Project generated using Electron Forge
{
"name": "test-app",
"productName": "test-app",
"version": "1.0.0",
"description": "My Electron application description",
"main": ".webpack/main",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
@iamWing
iamWing / .vimrc
Last active December 14, 2023 01:31
VIM config from my main MacBook
syntax on " enable syntax highlighting
colorscheme desert " set `desert` as default colour scheme
set autoindent " indent when moving to the next while writing code
set encoding=utf-8 " show output in UTF-8 as YouCompleteMe requires
set expandtab " expand tabs into spaces
set fileencoding=utf-8 " save file with UTF-8 encoding
set fileformat=unix " save file with LF line endings
set number " show line numbers
set shiftwidth=4 " shift lines by 4 spaces for indent
set showmatch " show the matching part of the pair for [] {} & ()
@iamWing
iamWing / UCJavaTester.java
Created January 7, 2018 07:50
Command line application to test the Universal Controller server
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;
public class UCJavaTester {
/**
@iamWing
iamWing / my.cnf
Last active February 21, 2019 17:08
Customised minimal my.cnf file
# This is the custom minimal my.cnf file for MariaDB
# Uncomment these if you wan to use a nonstandard connection to MariaDB
#socket = /tmp/mysql.sock
#port = 3306
# This will be pased to all MariaDB clients
[client]
#password = my_password