Skip to content

Instantly share code, notes, and snippets.

View elithrade's full-sized avatar

Bin Hu elithrade

  • Perth, Western Australia
View GitHub Profile
@elithrade
elithrade / tmux-keyboard-shortcuts
Last active May 10, 2017 15:10
My tmux keyboard shortcuts
<prefix> then c to create a new window
<prefix> then n to switch to the next window
<prefix> then , then [type something] then ⌤ to rename the current window
<prefix> then | to split the current window into panes vertically
<prefix> then - to split the current window into panes horizontally
<prefix> then q to show pane numbers, then (optionally) the number to switch to that pane
<prefix> then <shift> + (h, j, k, l) to resize the current pane up (works for all four arrows)
<prefix> then x to kill the current pane (or window if it only has one pane)
<prefix> then [ to enter copy mode, then h, j, k, l to move
<ctrl> + (h, j, k, l) to move the panes
@elithrade
elithrade / vimfiler-shortcuts
Last active October 12, 2022 21:13
Common vimfiler keyboard shortcuts
Toggle safe mode: gs
Create new file: N
Delete file: d
Rename file: r
New directory: K
Open file: e
Move file: m
Open VimFilerExplorer: e
Open current directory in a new buffer: dl
Open current directory in a new split: ds
def_key "/"
find
def_key "/"
find_item_forward
def_key "+"
show_clock
def_key "="
volume_up
Find uid and gid by using 'id username'
/dev/NTFS-partition /mnt/windows ntfs-3g uid=userid,gid=groupid,umask=0022 0 0
@elithrade
elithrade / Unity_vscode_arch.txt
Created April 17, 2018 14:27
Setup unity editor with vscode and OmniSharp
https://aur.archlinux.org/packages/msbuild-stable/ is needed for OmniSharp to work inside vscode.
@elithrade
elithrade / gist:e0196f39c26113007e3a0b3e74bf34fe
Created April 25, 2018 05:55
KDE disable mouse scroll switching workspaces
RMC -> Configure Desktop -> Mouse Actions
@elithrade
elithrade / gist:341dbe7f8d32da85ba22c59f68d64fb3
Created May 27, 2018 02:02
Tmux neovim true color support
http://homeonrails.com/2016/05/truecolor-in-gnome-terminal-tmux-and-neovim/
@elithrade
elithrade / gist:e099dfe44831c4ab97599c74c0c9a944
Created February 21, 2019 13:41
.tern-project for deoplete-ternjs
{
"libs": [
"ecma5",
"ecma6",
"browser"
],
"loadEagerly": [
],
"plugins": {
"node": {}
Long gone are the days to use Tslint with Typescript. 😰
The roadmap for Typescript is to move over to Eslint while the official TSLint project is being deprecated.
This is good news for us! Finally, we will get some consistency in the ECMAScript world as Eslint standard for both Typescript and Javascript! 🤩
Here is how you can easily get up and running with Eslint, Typescript, Prettier and React. I’m going to give you the setup first, then explain how it works together, and in the end, I’ll give you a working example.
Prerequisites
If you don’t have an existing typescript/react project you can use create-react-app with the typescript template:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family"><string>monospace</string></test>
<edit name="family" mode="append_last" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>