Skip to content

Instantly share code, notes, and snippets.

@KorvinSilver
KorvinSilver / ffmpegchapters-explicit.sh
Created January 19, 2018 13:31 — forked from dcondrey/ffmpegchapters-explicit.sh
Use ffmpeg to split file by chapters. Python version and bash version
#!/bin/bash
# Author: http://crunchbang.org/forums/viewtopic.php?id=38748#p414992
# m4bronto
# Chapter #0:0: start 0.000000, end 1290.013333
# first _ _ start _ end
while [ $# -gt 0 ]; do
ffmpeg -i "$1" 2> tmp.txt
@KorvinSilver
KorvinSilver / my_config.vim
Last active January 16, 2022 08:32
My vim config to amix/vimrc
" Set shell
set shell=/bin/zsh
" Enable Pathogen built-in plugin
execute pathogen#infect('bundle/{}', '~/.vim_runtime/my_plugins/{}')
" Enable AutoSave plugin
" https://github.com/vim-scripts/vim-auto-save.git
" let g:auto_save = 1
" let g:auto_save_no_updatetime = 1 " do not change the 'updatetime' option
@KorvinSilver
KorvinSilver / .bashrc
Last active March 5, 2018 00:07
Bashrc with custom colorized prompt (blokkzh)
export SAL_USE_VCLPLUGIN=gen
# Set color options
restore="\[\033[00m\]"
yellow="\[\033[33m\]"
cyan="\[\033[36m\]"
blueBold="\[\033[01;34m\]"
white="\[\033[37m\]"
redBold="\[\033[01;31m\]"