Skip to content

Instantly share code, notes, and snippets.

View Mapleaph's full-sized avatar

Michael Wu Mapleaph

View GitHub Profile
@Mapleaph
Mapleaph / cscope_maps.vim
Last active December 28, 2017 19:42 — forked from cyeong/cscope_maps.vim
enable cscope shortcuts and functions in vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" CSCOPE settings for vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" This file contains some boilerplate settings for vim's cscope interface,
" plus some keyboard mappings that I've found useful.
"
" USAGE:
" -- vim 6: Stick this file in your ~/.vim/plugin directory (or in a
" 'plugin' directory in some other directory that is in your
@Mapleaph
Mapleaph / .gitignore
Last active January 15, 2021 08:02 — forked from kylemanna/gpioke.c
Read Intel PCH GPIOs and Display Interrupt Enable status
gpioke
gpioke.exe
@Mapleaph
Mapleaph / install-oh-my-zsh.sh
Created March 17, 2023 07:59 — forked from hewerthomn/install-oh-my-zsh.sh
Offline install of oh-my-zsh on Ubuntu
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
@Mapleaph
Mapleaph / Spacemacs on Windows 10.md
Created June 3, 2023 13:22 — forked from cdaven/Spacemacs on Windows 10.md
Setting up Spacemacs on Windows 10

Install Emacs First

Download emacs-w64 and extract somewhere, e.g. a tools or apps folder like C:\Users\<user>\tools\emacs.

Select Emacs' Home

Emacs and many other applications store its configuration in the user's "home" folder. Translated directly from the Unix world, that is %UserProfile% (C:\Users\<user>), but Windows prefers %AppData% instead (C:\Users\<user>\AppData\Roaming).

For simplicity's sake, override this by specifying the HOME environment variable explicitly. Emacs and some other applications (e.g. MinGW) lets this override the default.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.