Skip to content

Instantly share code, notes, and snippets.

@CinexUA
CinexUA / structure.txt
Created November 7, 2022 13:07 — forked from kwilczynski/structure.txt
Terraform structure (example)
.
├── common
│   └── s3-buckets
│   ├── main.tf
│   ├── outputs.tf
│   ├── provider.tf
│   ├── terraform.tfvars
│   ├── terraform.tfvars.sample
│   └── variables.tf
├── environments
@CinexUA
CinexUA / hosts
Created February 7, 2020 09:43 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost

Certbot и nginx, как обратный прокси в Docker (пример с 2 react проектами)

В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам

Цели

  • Запустить nginx в одном контейнере
  • Запустить другие проекты в других контейнерах
  • Научить nginx перенаправлять запросы с разных доменов на разные проекты
  • Получить ssl сертификаты для всех проектов
@CinexUA
CinexUA / AsyncTaskActivity.java
Created July 29, 2019 07:34 — forked from cesarferreira/AsyncTaskActivity.java
Advanced Android AsyncTask Callback example
package com.cesarferreira.asynctaskcallback;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
@CinexUA
CinexUA / bitcoin-cpuminer.sh
Created March 4, 2018 10:39 — forked from return1/bitcoin-cpuminer.sh
install a bitcoin cpuminer on ubuntu/debian
# install dependencies
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm
# clone cpuminer
git clone https://github.com/pooler/cpuminer.git
# compile
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"