Skip to content

Instantly share code, notes, and snippets.

View goldie-lin's full-sized avatar

Goldie Lin goldie-lin

  • Puli, Taiwan
  • 23:36 (UTC +08:00)
View GitHub Profile
@dz1984
dz1984 / Regular.md
Last active November 28, 2019 07:01
這篇收藏起來,以備不時之需。

資料來源:http://disp.cc/b/11.cj-2q1S

Regular expression: 貪婪、非貪婪

貪婪與非貪婪

當要抓取一段不固定的字串,例如 <b></b> 中間的字。 最常看到的方法就是使用正規表示式 regular expression (以下簡稱 regex):

@XVilka
XVilka / TrueColour.md
Last active July 9, 2024 23:28
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@yunga
yunga / Cliref.md
Last active July 1, 2024 16:19
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active July 20, 2024 23:50
Hyperlinks in Terminal Emulators
@romainl
romainl / grep.md
Last active July 1, 2024 13:53
Instant grep + quickfix

FOREWORDS

I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.

My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.


Instant grep + quickfix

@ojroques
ojroques / 52-osc
Created January 17, 2021 11:54
Enable support of OSC52 for urxvt
#! perl
=head1 NAME
52-osc - Implement OSC 52 ; Interact with X11 clipboard
=head1 SYNOPSIS
urxvt -pe 52-osc
@christianparpart
christianparpart / terminal-synchronized-output.md
Last active May 30, 2024 21:30
Terminal Spec: Synchronized Output

Synchronized Output

Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output, except that it's not using the rare DCS but rather the well known SM ? and RM ?. iTerm2 has now also adopted to use the new syntax instead of using DCS.

Semantics

When rendering the screen of the terminal, the Emulator usually iterates through each visible grid cell and renders its current state. With applications updating the screen a at higher frequency this can cause tearing.

This mode attempts to mitigate that.

@thesamesam
thesamesam / xz-backdoor.md
Last active July 24, 2024 14:23
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that