Skip to content

Instantly share code, notes, and snippets.

View rodsher's full-sized avatar

Max rodsher

  • Saint-Petersburg, Russia
View GitHub Profile
@rodsher
rodsher / .golangci.yaml
Created September 27, 2020 08:14
GolangCI lint configuration
linters:
enable-all: true
disable:
- testpackage
- gochecknoglobals
fast: false
@rodsher
rodsher / redux-actions.ts
Created March 21, 2020 08:19 — forked from milankorsos/redux-actions.ts
Correct TypeScript typing example for Redux Thunk actions
import {Action, ActionCreator, Dispatch} from 'redux';
import {ThunkAction} from 'redux-thunk';
// Redux action
const reduxAction: ActionCreator<Action> = (text: string) => {
return {
type: SET_TEXT,
text
};
};
@rodsher
rodsher / run.sh
Last active October 28, 2018 18:46
Command for Youtrack launch via docker
docker run -it --name youtrack-server-instance \
-v /opt/youtrack/data:/opt/youtrack/data \
-v /opt/youtrack/conf:/opt/youtrack/conf \
-v /opt/youtrack/logs:/opt/youtrack/logs \
-v /opt/youtrack/backups:/opt/youtrack/backups \
-p 29000:8080 \
jetbrains/youtrack:<version>
@rodsher
rodsher / docker-compose.yml
Created October 7, 2018 07:23
Basic configuration for Consul using Docker compose
version: '3.5'
services:
consul:
image: consul
command: consul agent -dev -client 0.0.0.0
ports:
- "8300:8302"
- "8301:8302/udp"
- "8500:8500"