Skip to content

Instantly share code, notes, and snippets.

View roman-devops33's full-sized avatar
🔦

Roman roman-devops33

🔦
View GitHub Profile
@roman-devops33
roman-devops33 / bot.rb
Created January 21, 2024 19:45 — forked from dideler/bot.rb
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#

При первом запуске

  1. Добавить пользователя в группу docker, чтобы запускать команды без su:
sudo usermod -aG docker ${USER}
  1. Перезайти в систему чтобы сбросить переменные сессии
  2. Создать таблицу в базе данных:

2.1. Создать переменные окружения для подключения

@roman-devops33
roman-devops33 / cloud-init.yaml
Created December 2, 2023 18:12 — forked from syntaqx/cloud-init.yaml
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
# Option 1 - Full installation using cURL
package_update: true
package_upgrade: true
groups:
- docker
system_info:
stages:
- pre-build
- build
.docker-login: &docker-login
- >
export CI_REGISTRY_IMAGE=$(echo $CI_REGISTRY_IMAGE |
sed -r "s/(.*):8090(.*)/\1\2/")
- >
export CI_REGISTRY=$(echo $CI_REGISTRY |
@roman-devops33
roman-devops33 / file.md
Last active November 15, 2023 09:19
testcurl

Hello World

@roman-devops33
roman-devops33 / cloveri.opushka.deploy.md
Last active December 19, 2023 05:43
Инструкция по развертыванию сервиса опушка
@roman-devops33
roman-devops33 / package-lock-conflicts.md
Created September 20, 2023 13:10 — forked from szemate/package-lock-conflicts.md
How to resolve package-lock.json conflicts

How to resolve package-lock.json conflicts

It is not possible to resolve conflicts of package-lock.json in GitHub's merge tool and you need to do a manual merge.

  1. Update the master branch with the latest changes:
    git checkout master
    git pull
    
  2. Merge your feature branch into master:
@roman-devops33
roman-devops33 / oci-linux-instance-cloud-init.tf
Created April 23, 2023 19:55 — forked from scross01/oci-linux-instance-cloud-init.tf
Oracle Cloud Infrastructure instance with Terraform cloud-init user_data
data "template_file" "cloud-config" {
template = <<YAML
#cloud-config
runcmd:
- echo 'This instance was provisioned by Terraform.' >> /etc/motd
YAML
}
resource "oci_core_instance" "example" {
count = 1