Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dobriak on github.
  • I am dobriak (https://keybase.io/dobriak) on keybase.
  • I have a public key ASBhAwkp28uYcmv4Qh_MVHf0mc-s4Y7K0as3OBF5xlnbhAo

To claim this, I am signing this object:

@dobriak
dobriak / PostProc.cmd
Created December 9, 2013 03:36
Post processing script for SABnzbd on Windows. Moves processed files onto a NAS share.
@echo off
rem Post processing script for SABnzbd
set NASNAME=192.168.1.2
rem ping the nas just in case, exit if not online
ping %NASNAME% | find "TTL" > nul
IF ERRORLEVEL 1 GOTO ENDERROR
SET NASPATH=\\%NASNAME%\usb_storage\new
SET LOGFILE="%~d0%~p0\postprocessing.log"
@dobriak
dobriak / README.md
Created November 11, 2013 17:25 — forked from Filirom1/README.md

Install routing plugin

yum install rubygem-openshift-origin-routing-activemq.noarch

Create routing-plugin configuration file

cp /etc/openshift/plugins.d/openshift-origin-routing-activemq.conf.example /etc/openshift/plugins.d/openshift-origin-routing-activemq.conf

Add routinginfo user into activemq.xml configuration file. See files below.

@dobriak
dobriak / lvroot_extend.sh
Last active December 23, 2015 20:29
Extending root LV ext4 partition
FREEDISK=/dev/vdb
VGROOT=VolGroup
LVROOT=lv_root
mkfs.ext4 ${FREEDISK}
pvcreate ${FREEDISK}
vgextend /dev/${VGROOT} ${FREEDISK}
lvextend -l +100%FREE /dev/${VGROOT}/${LVROOT}
resize2fs /dev/${VGROOT}/${LVROOT}
@dobriak
dobriak / .vimrc
Last active December 23, 2015 07:29
My vimrc file. Autoindentation and tabbing, editting new files in tabs with f7/f8 back and forth (:tab e <file> to open in a tab)
:set autoindent
:set shiftwidth=2
:set tabstop=2
:set expandtab
:map <F7> :tabp<CR>
:map <F8> :tabn<CR>
:set pastetoggle=<F2>
@dobriak
dobriak / AutoShutdown.bat
Created November 10, 2012 23:02
Automatically shut down Windows after a user specified interval.
@echo off
REM ---
REM AutoShutdown.bat
REM Shuts down Windows after a user specified interval
REM by Julian Neytchev https://github.com/dobriak
REM ---
REM How many minutes before shutdown? (Default:60)
SET MINUTES=60
SET /P MINUTES=Snooze minutes (60): %=%
REM Convert to seconds