Skip to content

Instantly share code, notes, and snippets.

View shuxiao9058's full-sized avatar
🎯
Focusing

Aaron Ji shuxiao9058

🎯
Focusing
View GitHub Profile
@MutoMagic
MutoMagic / TProxy.md
Last active June 18, 2023 09:13
clash+tproxy(firewalld)+docker

事前准备

  • 局域网 172.16.0.0/16
  • 服务器(ens192) 172.16.0.200
  • docker0 172.17.0.0/16
  • dockerX 172.18.0.0/16

发行版本 CentOS Linux release 7.9.2009 (Core),内核版本 Linux localhost.localdomain 3.10.0-1160.66.1.el7.x86_64。

dockerX 是 docker network 的预留地址,可用 com.docker.network.bridge.name 配置接口名称。

@thomaspoignant
thomaspoignant / Makefile
Last active July 26, 2024 23:07
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@deanishe
deanishe / alfred_alacritty_plugin.applescript
Created September 5, 2020 14:38
Alfred plugin to run terminal commands in Alacritty
on alacritty_win()
set _running to (application "Alacritty" is running)
tell application "Alacritty" to activate
tell application "System Events"
repeat while (name of first application process whose frontmost is true) is not "alacritty"
delay 0.05
end repeat
set _alacritty to first application process whose frontmost is true
-- If Alacritty was running, create a new window to run command
@bcdavasconcelos
bcdavasconcelos / San Ho Dark.css
Last active October 15, 2021 13:38
CSS style sheet for rendering Markdown in different apps (such as DEVONthink 3, nvUltra, MMD Composer) #CSS #Markdown
/* San Ho Dark - https://www.dropbox.com/s/pbd8ka36rflz71c/Captura%20de%20tela%202020-01-06%2020.59.31.png?dl=0 */
body {
font-family: "EB Garamond";
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100% margin: 0;
padding: 50px 2rem 2rem;
max-width: 800px;
}
#!/bin/bash
PROXY_BYPASS_USER="proxy"
PROXY_BYPASS_CGROUP="0x16200000"
PROXY_FWMARK="0x162"
PROXY_ROUTE_TABLE="0x162"
PROXY_DNS_SERVER="127.0.0.1:1053"
PROXY_FORCE_NETADDR="198.18.0.0/16"
PROXY_TUN_DEVICE_NAME="clash0"
@kism
kism / custom.css
Last active December 28, 2021 10:10
Custom CSS, hide the Vivaldi titlebar when fullscreen, Windows Version
/* Hide the Vivaldi titlebar when maximised, Windows Version */
/* Intended for use with tab position being on the left or right */
/* @import "custom.css"; */
/* resources\vivaldi\style\common.css */
/* Remove header */
:-webkit-any(.native, .maximized)#browser #header {
min-height: 0 !important;
}
name: "MobileNet-YOLO"
layer {
name: "data"
type: "AnnotatedData"
top: "data"
top: "label"
include {
phase: TRAIN
}
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@redguardtoo
redguardtoo / .emacs
Last active May 9, 2024 14:09
minimum emacs setup for Emacs plugin testing
;; A minimum .emacs to test Emacs plugins
(show-paren-mode 1)
(eval-when-compile (require 'cl))
;; test elisps download from internet here
(setq test-elisp-dir "~/test-elisp/")
(unless (file-exists-p (expand-file-name test-elisp-dir))
(make-directory (expand-file-name test-elisp-dir)))
(setq load-path
@tombigel
tombigel / README.md
Last active July 1, 2024 02:50 — forked from a2ikm/limit.maxfiles.plist
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run: