Skip to content

Instantly share code, notes, and snippets.

View tcztzy's full-sized avatar
🏠
Working from home

Tang Ziya tcztzy

🏠
Working from home
  • Nanjing Agricultural University
  • China
View GitHub Profile
@tcztzy
tcztzy / # plink2 - 2023-05-11_22-40-33.txt
Created May 11, 2023 14:46
plink2 (brewsci/bio/plink2) on macOS 13.3 - Homebrew build logs
Homebrew build logs for brewsci/bio/plink2 on macOS 13.3
Build date: 2023-05-11 22:40:33
@tcztzy
tcztzy / meson.build
Last active February 21, 2022 03:41
Meson build convert source code file encoding (Meson 转换源码编码 gb2312/gbk/cp1252/etc. to utf-8)
fs = import('fs')
executable('some_exe',
configure_file(
input: 'template.file', # file name should match
output: 'output.file', # whatever you want
configuration: {
'content': fs.read('input.file', encoding: 'cp1252'), # change the encoding you want, key `content` should match the template
}
),
)
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
[Unit]
Description=Update PAC file from gfwlist
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/gfwlist2pac -i GFWLIST -f /etc/gfwlist2.pac -p "SOCKS5 127.0.0.1:1080;"
[Install]
@tcztzy
tcztzy / python.logging.schema.json
Created November 16, 2017 05:30
Python logging dictionary configuration JSON schema
{
"title": "Python logging config dictionary schema",
"type": "object",
"definitions": {
"level": {
"title": "level",
"type": "string",
"enum": [
"NOTSET",
"DEBUG",