Skip to content

Instantly share code, notes, and snippets.

View DmitryRendov's full-sized avatar

Dmitry Rendov DmitryRendov

  • EPAM
  • Gdańsk
  • 08:31 (UTC +02:00)
View GitHub Profile
@DmitryRendov
DmitryRendov / OpenWithSublimeText3.bat
Created March 23, 2016 07:52 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@DmitryRendov
DmitryRendov / my-domain-le-ssl.conf
Created April 5, 2018 06:08
DynMap Apache2 + ReverseProxy + LetsEncrypt configuration
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName map.mysite.by
ServerAlias www.map.mysite.by
UseCanonicalName On
TimeOut 30
# Identical to combined format, except that we swap remote-host (%h) with X-Forwared-For
@DmitryRendov
DmitryRendov / starbound.sh
Last active August 12, 2018 07:57
Starbound Linux server (screen)
#!/bin/bash -e
### BEGIN INIT INFO
# Provides: starbound
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@DmitryRendov
DmitryRendov / terraria.sh
Created August 12, 2018 18:05
Terraria Linux x86_64 server (screen)
#!/bin/bash -e
### BEGIN INIT INFO
# Provides: Terraria
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@DmitryRendov
DmitryRendov / GPClaimManager.py
Last active November 10, 2020 10:32
Export GriefPrevention claims for MCA Selector or WE commands
#!/usr/bin/env python3
"""
$ python3 GPClaimManager.py --help
usage: GPClaimManager.py [-h] [-f FOLDER] [-a ACTION] [-c CLAIMTYPE] [-w WORLD]
Export GriefPrevention claims for MCA Selector or WE commands
optional arguments:
-h, --help show this help message and exit
-f FOLDER, --folder FOLDER
Folder name with GriefPrevention yml files (default: ClaimData)