Skip to content

Instantly share code, notes, and snippets.

@allen0125
allen0125 / ffmpeg_foo_to_wav.sh
Created December 23, 2021 08:56
Audio to wav
filelist=$(find . -name '*.mp3' -o -name '*.mp4' -o -name '*.m4a')
OLDIFS="$IFS"
IFS=$"\n"
for filename in *.mp3 *.mp4 *.m4a
do
if [$filename == '.DS_Store' || $filename == ffmpeg_foo_to_wav.sh]
then
continue
fi
@allen0125
allen0125 / base_config.yaml
Created May 28, 2021 02:10
SurfShark Shadowsocks IP 列表文件转 Clash配置文件脚本
#---------------------------------------------------#
## 配置文件需要放置在 $HOME/.config/clash/config.yml
##
## 如果您不知道如何操作,请参阅 SS-Rule-Snippet 的 Wiki:
## https://github.com/Hackl0us/SS-Rule-Snippet/wiki/clash(X)
#---------------------------------------------------#
# HTTP 代理端口
port: 7890
@allen0125
allen0125 / gitlab-compose.yml
Created November 14, 2018 11:11
gitlab-compose file
version: '3'
services:
gitlab:
image: gitlab/gitlab-ce
restart: always
container_name: gitlab
hostname: "gitlab.allen0125.com"
ports:
- 11443:443
- 11080:80
@allen0125
allen0125 / .emacs
Last active November 7, 2018 03:57
Allen's emacs config file, use el-get manage emacs's package
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/"))
(package-refresh-contents)
(package-initialize)
(package-install 'el-get)
(require 'el-get))