Skip to content

Instantly share code, notes, and snippets.

@cyber01
cyber01 / config.json
Created May 25, 2021 09:27 — forked from bykvaadm/README.md
Postgres patron backup on Minio with prometheus monitoring
{
"version": "10",
"aliases": {
"minio": {
"url": "{{ minio_url }}",
"accessKey": "{{ postgres_ha_minio_access_key }}",
"secretKey": "{{ postgres_ha_minio_secret_key }}",
"api": "s3v4",
"path": "auto"
}
@cyber01
cyber01 / update-gitlab.sh
Created August 8, 2020 17:37 — forked from u1-liquid/update-gitlab.sh
Update GitLab on Docker
#!/bin/sh
sudo docker stop gitlab
sudo docker rm gitlab
sudo docker pull gitlab/gitlab-ce:latest
sudo docker run --detach \
--hostname gitlab.some.where \
--publish 80:80 \
--publish 443:443 \
@cyber01
cyber01 / icu-install.sh
Last active October 1, 2018 15:22 — forked from aminin/icu-install.sh
Install ICU from source and build php-intl with the specific version of ICU
#!/usr/bin/env bash
PHP_BIN='php70' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which php
PHPIZE_BIN_PATH='/opt/remi/php70/root/bin/phpize' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which phpize
COMPILER_PACKAGE_INSTALL_COMMAND='yum install gcc-c++ php71-php-devel' # CentOS 7 PHP из Remi, для Debian/Ubuntu это apt-get install g++
PHPCONFIG_BIN_PATH='/opt/remi/php70/root/bin/php-config' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which php-config
if [[ -x $(which $PHP_BIN) ]]; then
PHP_ICU_VERSION=$($PHP_BIN -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";')
echo "PHP ICU version: $PHP_ICU_VERSION"
server {
server_name www.site.com site.com;
#root /usr/share/nginx/html;
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://127.0.0.1:8100;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
@cyber01
cyber01 / example.vhost
Created September 28, 2017 08:44 — forked from tvlooy/example.vhost
PHP 7 FPM on Apache 2.2 with PHP 5 mod_php running
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301]
DocumentRoot /var/www/example/current/web
<Directory />
@cyber01
cyber01 / .bashrc
Created December 2, 2015 17:38 — forked from drakmail/.bashrc
Nice PS1 for bash
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
bash_prompt() {
local NONE="\[\033[0m\]" # unsets color to term's fg color