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 / git-aliases-pwsh.txt
Last active March 28, 2024 12:27
Windows pwsh aliases
Invoke-Expression (&starship init powershell)
Invoke-Expression (& { (zoxide init powershell | Out-String) })
function Get-GitStatus { & git status -sb $args }
New-Alias -Name gs -Value Get-GitStatus -Force -Option AllScope
function Get-GitDiff { & git diff $args}
New-Alias -Name gd -Value Get-GitDiff -Force -Option AllScope
<?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>
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:
@elithrade
elithrade / gist:e099dfe44831c4ab97599c74c0c9a944
Created February 21, 2019 13:41
.tern-project for deoplete-ternjs
{
"libs": [
"ecma5",
"ecma6",
"browser"
],
"loadEagerly": [
],
"plugins": {
"node": {}
@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:e0196f39c26113007e3a0b3e74bf34fe
Created April 25, 2018 05:55
KDE disable mouse scroll switching workspaces
RMC -> Configure Desktop -> Mouse Actions
@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.
Find uid and gid by using 'id username'
/dev/NTFS-partition /mnt/windows ntfs-3g uid=userid,gid=groupid,umask=0022 0 0
def_key "/"
find
def_key "/"
find_item_forward
def_key "+"
show_clock
def_key "="
volume_up
@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