Skip to content

Instantly share code, notes, and snippets.

View gitkeniwo's full-sized avatar

gitkeniwo gitkeniwo

  • TU Eindhoven
  • Netherlands
View GitHub Profile
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
!
!
||criterion.com^
||ssbwiki.com^
||sourceforge.net^
||tunnel.cloudproxy.app^
||allmusic.com^
||rateyourmusic.com^
@gitkeniwo
gitkeniwo / audacity_convert.py
Created August 29, 2021 07:30
Convert normal split points into Audacity import compatible label txt file.
def get_sec(time_str):
# """Get Seconds from time."""
h, m, s = time_str.split(':')
a = int(h) * 3600 + int(m) * 60 + int(s)
return str(a) + '.000000'
f = open("./label_to_converted.txt", "r")
line = f.readline()
a = []
while line:
@gitkeniwo
gitkeniwo / my_clash_rules.yaml
Created April 2, 2022 10:44
自用Clash rules模版; Clash rule template for personal use
port: 1087 #http port
socks-port: 1086 #socks5 port
redir-port: 7892
allow-lan: false
mode: Rule
log-level: silent
external-controller: '0.0.0.0:9090'
secret: ''
ipv6: true
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[┌◉](color_orange)\
$os\
$username\
[](bg:color_yellow fg:color_orange)\
$directory\
[](fg:color_yellow bg:color_aqua)\
$git_branch\
[core]
excludesfile = /Users/keniwo/.gitignore_global
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
@gitkeniwo
gitkeniwo / neo4j-compose.yaml
Created April 25, 2025 13:02
neo4j-compose.yaml
# docker compose -f ./neo4j-compose.yaml up -d
services:
neo4j:
image: neo4j:2025.03.0-community-bullseye
volumes:
- /$HOME/neo4j/logs:/logs
- /$HOME/neo4j/config:/config
- /$HOME/neo4j/data:/data
- /$HOME/neo4j/plugin:/plugins
# Lines starting with # are comments
# Always extract audio
# -x
# Copy the mtime
# --mtime
# Use this proxy
# --proxy 127.0.0.1:3128
# activate default venv 设置uv venv环境
source ~/.venvs/uv/bin/activate.fish
set -gx VIRTUAL_ENV ~/.venvs/uv
# hide venv parentheses in the prompt
# set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
# set editor
set -gx EDITOR nvim