Skip to content

Instantly share code, notes, and snippets.

@brainard52
brainard52 / play
Last active March 15, 2026 03:15
A utility to play and keep track of playback of a folder or a single video with mpv
#!/bin/bash
socket="/tmp/mpv-socket-$(whoami)"
running="true"
current_file=""
current_time_pos=0.0
function ctrl_c() {
if [[ ! -e "$socket" ]]; then
err "\nctrl+c: $socket does not exist. mpv not running. Exiting."
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'altercation/vim-colors-solarized'
Plug 'jiangmiao/auto-pairs'
Plug 'luochen1990/rainbow'
Plug 'calviken/vim-gdscript3'
let g:rainbow_active = 1
call plug#end()
upstream php-handler {
server unix:/var/run/php/php7.2-fpm.sock;
}
server {
listen 80;
listen [::]:80;
server_name nc.mydomain.com;
# enforce https
return 301 https://$server_name$request_uri;