Skip to content

Instantly share code, notes, and snippets.

View mrPsycho's full-sized avatar

Yaroslav Nakonechnikov mrPsycho

  • @e-legion
View GitHub Profile
@greenbrian
greenbrian / vault_demo.sh
Created June 23, 2019 20:06
Quick Vault demo usage
#!/bin/bash
## The following command starts Vault in development mode
## specifiying a root token value of 'root'
##
# VAULT_UI=true vault server -dev -dev-root-token-id="root"
## Login with root token
## Good for demo mode, should only be used on production cluster
## during initial configuration
@Yegorov
Yegorov / ya.py
Created January 13, 2018 16:08
Download file from Yandex.Disk through share link
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://toster.ru/q/72866
# How to
# wget http://gist.github.com/...
# chmod +x ya.py
# ./ya.py download_url path/to/directory
import os, sys, json
@mosquito
mosquito / README.md
Last active November 14, 2024 08:39
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@Haran
Haran / Syntax
Created January 13, 2017 09:56
YAML and Config Midnight Commander highlight
file ..\*\\.(properties|config|conf|cnf|cfg) Java\sFile
include properties.syntax
file ..\*\\.(ya?ml|YML)$ YAML\sFile
include yaml.syntax
@kain-jy
kain-jy / gist:4138784
Created November 24, 2012 07:28
[phpenv][php-build] php-fpm's init file
#! /bin/sh
#
# run as current user
# > mkdir ~/.phpenv/init
# > vim 5.3.19
#
# before, you should edit php-fpm.conf
# and comment out [www] user and group.
PHP_BASE=$HOME/.phpenv/versions/{version}