Skip to content

Instantly share code, notes, and snippets.

View Horat1us's full-sized avatar
💭
Some Shit

Horat1us Horat1us

💭
Some Shit
View GitHub Profile
@Horat1us
Horat1us / strongswan.md
Created June 5, 2023 13:45
Configuring Site-to-Site IPSec VPN

Configuring Site-to-Site IPSec VPN on Ubuntu using Strongswan

Requirements

This instruction is tested on Ubuntu 22.04 LTS

Open ports

  • UDP 4500
  • UDP 500
  • Custom protocol 50
@Horat1us
Horat1us / readme.md
Created September 17, 2020 10:23
freebitcoin link
@Horat1us
Horat1us / README.md
Created September 4, 2020 11:37
Разворачивание PostgreSQL для локальной разработки

PostgreSQL 12 Docker

Требования

  • docker >= 18
  • docker-compose
  1. Создать папку Docker в домашней директории
mkdir ~/Docker && mkdir ~/Docker/postgres
@Horat1us
Horat1us / README.md
Created February 14, 2020 09:18
Useful & Trusted Dependencies List

Dependencies From My Projects

JavaScript & TypeScript

@Horat1us
Horat1us / codebuild-git-env.sh
Last active December 12, 2019 13:04
Load additional CodeBuild GIt info to environment
#!/bin/bash
export CI=true
export CODEBUILD=true
export CODEBUILD_ACCOUNT_ID=$(aws sts get-caller-identity --query 'Account' --output text 2>/dev/null)
export CODEBUILD_GIT_BRANCH="$(git symbolic-ref HEAD --short 2>/dev/null)"
if [ "$CODEBUILD_GIT_BRANCH" = "" ] ; then
CODEBUILD_GIT_BRANCH="$(git branch -a --contains HEAD | sed -n 2p | awk '{ printf $1 }')";
@Horat1us
Horat1us / generate-month-series.md
Last active January 10, 2019 16:22
PHP Generate month period using Carbon

Description

Generating series of months between two dates.

Requirements

Dependency: nesbot/carbon PHP: >=7.0

Source Code

@Horat1us
Horat1us / gist:1dc581d658e1665beedfe48bf2744c8c
Last active September 16, 2022 08:20
Настройка сервера для Продакшн

Настройка сервера

Первичная подготовака

sudo apt update && \
	sudo apt-get install -y apt-transport-https python unzip ca-certificates curl software-properties-common && \
	sudo apt upgrade -y

Установка Docker

@Horat1us
Horat1us / instruction.md
Last active November 26, 2017 21:12
Replace React.PropTypes usage to prop-types package

First you need to install prop-types package in your repository manually:

npm i --save prop-types

Then copy code to update.php in your projects root:

<?php

$Directory = new RecursiveDirectoryIterator(__DIR__);
$Iterator = new RecursiveIteratorIterator($Directory);