Skip to content

Instantly share code, notes, and snippets.

View siuoly's full-sized avatar

siuoly

  • Taiwan,Taipei
View GitHub Profile
@0xadada
0xadada / README.md
Last active August 5, 2022 16:48
VIM movement, keyboard commands and shortcuts
@dergachev
dergachev / ssh-forward-clipboard.md
Last active October 13, 2024 05:26
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@romainl
romainl / list.md
Last active November 7, 2021 20:57
Show ]I, [I, ]D, [D, :ilist and :dlist results — even spanning multiple files — in the quickfix window.
@kastnerkyle
kastnerkyle / audio_tools.py
Last active September 12, 2024 11:16
Audio tools for numpy/python. Constant work in progress.
raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest")
# License: BSD 3-clause
# Authors: Kyle Kastner
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise
# http://ml.cs.yamanashi.ac.jp/world/english/
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl
# Pieces also adapted from SPTK
from __future__ import division
import numpy as np
@j-jith
j-jith / howto-compile-vim.md
Last active November 6, 2023 17:30
How to compile and install Vim 8.0 on Ubuntu

Install build dependencies

$ sudo apt-get build-dep vim

Clone git repo

$ git clone https://github.com/vim/vim.git

Change to src directory

@fillmember
fillmember / bopomofo_hsuq.schema.yaml
Created March 19, 2017 20:41
我的RIME注音許氏方案
# Rime schema
# encoding: utf-8
schema:
schema_id: bopomofo_hsuq
name: 注音・許式Q 0.4
version: "0.4"
author:
- 佛振 <[email protected]>
- Patrick <[email protected]>
@romainl
romainl / vanilla-linter.md
Last active November 9, 2024 21:02
Linting your code, the vanilla way

Linting your code, the vanilla way

You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.

Defining makeprg

autocmd FileType <filetype> setlocal makeprg=<external command>

This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.