Skip to content

Instantly share code, notes, and snippets.

View ysl2's full-sized avatar
🐧
Working

Silas Yu ysl2

🐧
Working
View GitHub Profile
@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:
"""
@cshjin
cshjin / defaultSettings.yaml
Created February 14, 2020 00:17
My latexindent defaultSettings
# defaultSettings.yaml for latexindent.pl, version 3.7.1, 2019-09-07
# a script that aims to
# beautify .tex, .sty, .cls files
#
# (or latexindent.exe if you're on Windows)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@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",
@kabili207
kabili207 / Rclone systemd service.md
Last active July 4, 2025 15:09
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
@zprhhs
zprhhs / .config_coc_extensions_package.json
Last active July 22, 2024 02:57
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",