Skip to content

Instantly share code, notes, and snippets.

🎯
Swimming 🏊 in the sea of code~~

jdhao jdhao

Block or report user

Report or block jdhao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ConEmu.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2019-04-29 11:20:20" build="180626">
<value name="ColorTable00" type="dword" data="00222827"/>
<value name="ColorTable01" type="dword" data="009e5401"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
<value name="ColorTable03" type="dword" data="00a6831a"/>
<value name="ColorTable04" type="dword" data="003403a7"/>
<value name="ColorTable05" type="dword" data="009c5689"/>
View markdown.snippets
snippet kbd "HTML kbd tag"
<kbd>${1:KEY}</kbd>$0
endsnippet
snippet head "Markdown header" b
---
title: "$1"
date: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
tags: [$3]
categories: [$4]
@jdhao
jdhao / words
Last active Apr 29, 2019
Dictionary for Linux systems
View words
This file has been truncated, but you can view the full file.
10-point
11-point
12-point
16-point
18-point
20-point
30-30
48-point
5-point
@jdhao
jdhao / .tmux.conf
Created Apr 18, 2019
Tmux configuratons
View .tmux.conf
#######################################################################
# key bindings #
#######################################################################
# SET THE PREFIX TO CTRL-W.
unbind C-b
set-option -g prefix C-w
bind-key C-w send-prefix
# make split pane similar to vim
@jdhao
jdhao / .bash_profile
Created Apr 18, 2019
Bash configurations
View .bash_profile
export PATH=$HOME/local/bin:$PATH
export SHELL=`which zsh`
[ -f "$SHELL" ] && exec "$SHELL" -l
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
@jdhao
jdhao / .zshrc
Created Apr 18, 2019
Zsh configuration
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH="/home/haojiedong/.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/robbyrussell/oh-my-zsh/wiki/Themes
# to use random theme, enable the following option
ZSH_THEME="random"
@jdhao
jdhao / .pdbrc
Created Apr 18, 2019
Pdb configurations
View .pdbrc
# Enable tab completion
import rlcompleter
import pdb
pdb.Pdb.complete=rlcompleter.Completer(locals()).complete
@jdhao
jdhao / Sublime_text_regex_cheat_sheet.md
Last active Mar 3, 2019
Sublime Text regular expression cheat sheet, you can also find it in https://jdhao.github.io/2019/02/28/sublime_text_regex_cheat_sheet/
View Sublime_text_regex_cheat_sheet.md

Special characters

expression Description
. Match any character
^ Match line begin
$ Match line end
* Match previous RE 0 or more times greedily
*? Match previous RE 0 or more times non-greedily
+ Match previous RE 1 or more times greedily
@jdhao
jdhao / login_to_windows_store.md
Created Feb 17, 2019
解决登录 Windows Store 遇到登录错误问题
View login_to_windows_store.md
@jdhao
jdhao / update_mintty_for_msys2.md
Created Feb 14, 2019
How to update mintty bundled with msys2?
View update_mintty_for_msys2.md

To update mintty packaged with msys2, first download the latest version of mintty from here. Download the mintty tarball and extract it. Then copy mintty.exe to MSYS2_ROOT/usr/bin to replace the old mintty.exe file.

Restart msys2 and you should be albe to use the latest mintty. Reference here.

You can’t perform that action at this time.