Skip to content

Instantly share code, notes, and snippets.

View Bes0n's full-sized avatar
😎
time to get schwifty

Ilgar Bes0n

😎
time to get schwifty
View GitHub Profile
@Bes0n
Bes0n / EX200.md
Last active May 9, 2022 04:55
Preparation for RHCSA based on RHEL 8

EX 200

Lesson 2 - Understanding and Using Essential Tools on RHEL 8

Accessing Linux Systems
  • ssh-keygen - generate ssh key
  • ssh-copy-id web_user@monolith - copy ssh key on remote host
  • ssh web_user@monolith cat /etc/redhat-release - get release info via ssh
  • scp web_user@monolith:/home/web_user/*.gz . - copy any tar files from remote machine on your working directory
  • sftp db_user@monolith - access remote host via secure FTP protocol
  • mget *.gz - grab all files via sftp with .gz extension
@Bes0n
Bes0n / docker-compose.yml
Created October 14, 2019 13:10
docker-compose-v2.yml
#docker-compose file with server-agent deployment.
version: "2"
services:
teamcity-server:
image: jetbrains/teamcity-server:latest
container_name: teamcity-server
volumes:
- ./data/teamcity_server/datadir:/data/teamcity_server/datadir
- ./data/teamcity_server/logs:/opt/teamcity/logs
ports:
@Bes0n
Bes0n / ubuntu-gui-setup.md
Last active June 23, 2024 20:05
GUI setup on Ubuntu Server based on AWS, with free tier.
  • Step 1. Get Ubuntu Server with Free Tier eligible option.
  • Step 2. Set up everything and access your server
  • Step 3. Run following commands to setup xRDP
sudo apt update &&  sudo apt upgrade

sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

sudo systemctl restart sshd
@Bes0n
Bes0n / docker-compose.yml
Last active March 18, 2019 15:16
configuration files.
version: '3.3'
services:
server:
container_name: teamcity_server
image: 'jetbrains/teamcity-server:latest'
networks:
- LAN1
volumes:
- 'VLM1:/data/teamcity_server/datadir'
- 'VLM1:/opt/teamcity/logs'
@Bes0n
Bes0n / Vagrant Box Init.md
Last active March 27, 2019 22:45
Create Vagrant Box for Hyper-V provider