Skip to content

Instantly share code, notes, and snippets.

View pengshp's full-sized avatar

Neal pengshp

View GitHub Profile
@pengshp
pengshp / gist:b60ec9d0374e8f78b7e6fe643dba6675
Last active November 27, 2023 22:00 — forked from Waltibaba/gist:28741f08b12696bc291cbdcb3a2c748f
pipewire configs: default device & echo cancel
~/.config/pipewire/pipewire.conf.d/10-bt-headphones-default.conf
===========
context.properties = [
default.configured.audio.sink = { "name": "bluez_output.AC_12_2F_24_80_86.1" }
]
===========使用pipewire的模块消除麦克风的回音
~/.config/pipewire/pipewire.conf.d/20-echo-cancel.conf
===========
context.modules = [
{ name = libpipewire-module-echo-cancel
@pengshp
pengshp / tmux.conf
Last active April 23, 2023 18:54
~/.config/tmux/tmux.conf tmux3.3a+ config
# _ __
# | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _|
# | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_
# | |_| | | | | | |_| |> < | (_| (_) | | | | _|
#(_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_|
# tmux version tmux 3.3a
# https://github.com/tmux/tmux
## 配置参考:http://louiszhai.github.io/2017/09/30/tmux/
@pengshp
pengshp / vimrc
Last active May 24, 2022 03:52
~/.vim/vimrc config
" ~/.vim/vimrc
" _
"__ _(_)_ __ ___ _ __ ___
"\ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" \_/ |_|_| |_| |_|_| \___|
"
" Arch linux
" $ sudo pacman -S vim fzf
@pengshp
pengshp / init.vim
Created May 10, 2022 04:42 — forked from seven1m/init.vim
my vim/neovim config in < 100 LOC
syntax on " enable syntax highlighting
set background=dark " we like it dark!
try | colorscheme gruvbox | catch | endtry " use this awesome theme if possible
highlight Pmenu ctermbg=black guibg=black | " fix popup color so it's easier to read
filetype plugin on " load plugins based on file type
filetype indent on " load indent settings based on file type
set shiftwidth=2 " number of spaces to use for indenting
set softtabstop=2 " number of spaces to use when inserting a tab
set tabstop=2 " show tabs as 2 spaces
set expandtab " convert tabs into spaces
@pengshp
pengshp / girl-face-rec.py
Created May 1, 2017 19:03
Dlib库人脸识别
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import os
import dlib
import glob
import numpy
from skimage import io
import time