Skip to content

Instantly share code, notes, and snippets.

View ysl2's full-sized avatar
🐧
Working

Silas Yu ysl2

🐧
Working
View GitHub Profile
@zprhhs
zprhhs / .config_coc_extensions_package.json
Last active June 3, 2024 22:49
coc.nvim & neovim configure
{
"dependencies": {
"coc-clangd": ">=0.28.0",
"coc-diagnostic": ">=0.23.9",
"coc-git": ">=2.6.1",
"coc-highlight": ">=2.0.4",
"coc-json": ">=1.8.0",
"coc-pairs": ">=1.4.2",
"coc-pyright": ">=1.1.293",
"coc-snippets": ">=3.1.6",
@kabili207
kabili207 / Rclone systemd service.md
Last active June 24, 2024 11:31
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@schnell18
schnell18 / settings-manjaro.json
Created April 4, 2020 13:11
VS Code LaTeX Workshop manjaro settings /w okular
{
"latex-workshop.latex.autoBuild.run": "onFileChange",
"latex-workshop.message.error.show": true,
"latex-workshop.message.warning.show": true,
"latex-workshop.latex.tools": [{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-shell-escape",
@Hammer2900
Hammer2900 / square_window.py
Created July 24, 2019 05:09
i3 control window position
import i3ipc
i3 = i3ipc.Connection()
def center_window():
"""
Float and center window, i3wm.
:return:
"""
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active July 4, 2024 15:45
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
import sys
class Tee(object):
def __init__(file_name, mode):
self._file = open(file_name, mode)
def __enter__(self):
return self
def __exit__(self):
self.__close()
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@saitoha
saitoha / suckless-st-sixel.diff
Last active June 15, 2024 15:52
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <saitoha@me.com>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <saitoha@me.com>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644
@jgrar
jgrar / dwm-3465bed290ab-save_floats.diff
Created December 31, 2015 02:55
Add save float behaviour to all layout changes
diff --git a/dwm.c b/dwm.c
index 450e420..7978a1f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -89,6 +89,7 @@ struct Client {
char name[256];
float mina, maxa;
int x, y, w, h;
+ int sfx, sfy, sfw, sfh; /* stored float geometry, used on mode revert */
int oldx, oldy, oldw, oldh;
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active July 4, 2024 06:18
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line