Skip to content

Instantly share code, notes, and snippets.

View pengshp's full-sized avatar

Neal pengshp

View GitHub Profile
@pengshp
pengshp / arch-pet-snippet.toml
Last active November 6, 2024 11:00
description
[[Snippets]]
Description = "Arch removes pkg with fzf."
Filename = "/home/hypr/.config/pet/snippet.toml"
Output = ""
Tag = ["archlinux", "fzf"]
command = "pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns"
[[Snippets]]
Description = "Arch Linux installs pkg with fzf."
@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 October 4, 2024 09:20
~/.config/tmux/tmux.conf tmux3.3a+ config
# _ __
# | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _|
# | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_
# | |_| | | | | | |_| |> < | (_| (_) | | | | _|
#(_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_|
# tmux version tmux 3.5
# 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