Skip to content

Instantly share code, notes, and snippets.

View bearcatsandor's full-sized avatar

Bearcat M. Şándor bearcatsandor

View GitHub Profile
@bearcatsandor
bearcatsandor / gist:11165078
Created April 22, 2014 04:09
nginx configuration
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes 4;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
@bearcatsandor
bearcatsandor / beets-9999.ebuild
Created January 30, 2015 07:17
beets-9999.ebuild
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/beets/beets-1.3.3-r1.ebuild,v 1.1 2014/05/13 16:48:35 sochotnicky Exp $
EAPI="5"
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite"
inherit distutils-r1 eutils git-2
@bearcatsandor
bearcatsandor / homebearcatbinwvbatch
Created June 10, 2015 21:54
/home/bearcat/bin/wvbatch
#! /bin/sh -
#
# WVBATCH - wavpack batch encode script
#
## CONSTANTS ##
readonly TRUE=0
export TRUE
readonly FALSE=1
@bearcatsandor
bearcatsandor / gist:65a0333ffbd03ed1e5b40987c9052ac2
Last active September 9, 2016 10:19
single disc btrfs system into 4 disk raid10
file system on sda is already mounted at /
boot is a fat32 on sdf for uefi mounted at /boot
new discs are /dev/sdc, /dev/sdd, /dev/sde
proposed commmands:
btrfs device add /dev/sdc /
btrfs device add /dev/sdd /
btrfs device add /dev/sde /
btrfs balance start -dconvert=raid10 -mconvert=raid10 /
I was getting bad tree block start .. csum failed .. no csum. found for inode .. " messages.
Following instructions online i've tried a scrub which aborts before 200mb, a mount -o recovery rw, and a btrfs check --repair.
Files are now "missing" to some programs and not to others.
My command line sees some files that my gtk file browser can't, and my media player (mpd like) plays some files that my command line and gtk file browser don't see.
I'm about to try a btrfs restore to see what it can do for me. Any pointers or help here? I don't want to fsck things up further.
@bearcatsandor
bearcatsandor / homebearcat.configbeetsconfig.nopass.yaml
Created December 3, 2016 00:02
/home/bearcat/.config/beets/config.nopass.yaml
directory: /home/hometheater/audio
library: ~/.config/beets/musiclibrary.blb
threaded: yes
art_filename: cover
original_date: yes
per_disc_numbering: yes
format_item: $albumartist - $original_year - $album - $title - $length
@bearcatsandor
bearcatsandor / homebearcat.zshrc
Created January 4, 2017 06:20
/home/bearcat/.zshrc
# Path to your oh-my-zsh installation.
export ZSH=/home/bearcat/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="moonwind"
# Uncomment the following line to use case-sensitive completion.
@bearcatsandor
bearcatsandor / config
Created January 12, 2017 01:41
config
# config file based on https://gogs.sr.ht/SirCmpwn/dotfiles/src/master/bin/custom_statusbar
# setup base colors Base16-tomorow-night colors taken from https://github.com/khamer/base16-i3/blob/master/themes/base16-tomorrow-night.config
#
set $base00 #1d1f21
set $base01 #282a2e
set $base02 #373b41
set $base03 #969896
set $base04 #b4b7b4
set $base05 #c5c8c6
@bearcatsandor
bearcatsandor / apprentice.md
Created August 14, 2017 19:12 — forked from romainl/apprentice.md
Apprentice — The Making Of

WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP

Looking for the perfect colorscheme is no doubt part of everyone's experience with text editors and IDEs. For the luckiest among us, that perfect colorscheme will be the one enabled by default or the one that everyone on the internet seems to use. For the less lucky, the quest can be long and eventually lead them to actually build their own "perfect" colorscheme.

As a budding vimmer, it did not take long for me to start looking around for a nice colorscheme. I started my journey with that huge colorscheme test page that crashed so many browsers for so many years. Then, noticing that it did not have every colorscheme, I turned to the scripts section of vim.org and spent too much time looking at too many screenshots and installing too many colorschemes…

vim.org is where I eventually found a bea

@bearcatsandor
bearcatsandor / init.vim
Last active August 15, 2017 04:57
current init.vim
set nocompatible
" set encoding options as per http://vim.wikia.com/wiki/Working_with_Unicode
if has('multi_byte')
if &termencoding == ''
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,latin1