Skip to content

Instantly share code, notes, and snippets.

@zprhhs
zprhhs / .config_coc_extensions_package.json
Last active June 3, 2024 22:49
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",
@dreamlu
dreamlu / win-ss
Last active July 10, 2024 13:31
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
@patrickgill
patrickgill / m3u8download.sh
Last active March 28, 2024 17:50
download m3u8 ts segments, then decode, join, and remux them! (HTTP Live Streaming TS files)
# download
aria2c -x 5 -i file.m3u8
# decode (example)
openssl aes-128-cbc -d -K 15D0F46608409DA364E3F5D92BDE9F61 -iv 00000000000000000000000000000000 -nosalt -in G00000000.ts -out G00000000.d.ts
# join all ts files
cat *.ts > out.ts
# convert ts output file
@zarzen
zarzen / spacemacs-cpp.md
Last active January 23, 2024 13:06
C++ development environment setup in Spacemacs
# Gist is at https://gist.github.com/nerdalert/9dcb14265a3aea336f40
#
# Macvlan/Ipvlan Manual Driver Tests
# -Bash script form at: https://github.com/nerdalert/dotfiles/blob/master/ipvlan-macvlan-it.sh
############################################################################################
# Macvlan IPv4 802.1q VLAN Tagged Bridge Mode Tests
#
### Network w/o explicit mode to default to -o macvlan_mode=bridge VLAN ID:33
docker network create -d macvlan \
--subnet=192.168.33.0/24 \
@bsdcpp
bsdcpp / cvi.sh
Last active August 27, 2021 06:55
simple script to create ctags & cscope files for reading code with vim.
#############################
#usage: 1. cvi.sh . -------> seaching files in current directory Recursively
# 2. cvi.sh sys -------> searching files in /usr/include
#
#I hope you can provide some suggestions, thank you.
#############################
#!/bin/bash
#####
#find . -regex ".*\.\(c\|h\|hpp\|cc\|cpp\)" -print
#####