Skip to content

Instantly share code, notes, and snippets.

View KlimDos's full-sized avatar
🐢

Sasha Alimov KlimDos

🐢
View GitHub Profile
#!/bin/bash
#####################################################################
# the script is responsible to install MongoDB into the Ubuntu instance
# ROOT access required
#####################################################################
# create a folder for application
mkdir ~/app
# clone repository
git clone https://github.com/Artemmkin/reddit.git ~/app/
# browse to app folder
---
- hosts: all:target_hosts
roles:
#- { role: devmount, when: init == 'true' }
#- { role: os-basic, when: init == 'true' }
#- { role: users, when: init == 'true' }
#- { role: java, when: (init == 'true' and srv_name != 'admin-portal') }
#- { role: java, when: init == 'true' }
tasks:
- name: ping
@KlimDos
KlimDos / vs-code-workspace-my-home-projects.code-workspace
Last active February 2, 2019 19:29
vs-code-workspace-my-home-projects.code-workspace
{
"folders": [
{
"path": "my-git/polo-aws-infra-pub"
},
{
"path": "my-git/my_ansible_stuff"
}
],
"settings": {
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
version: '3.3'
services:
logspout:
image: gliderlabs/logspout:latest
command: 'udp://logstash:5000'
links:
- logstash
volumes:
- '/var/run/docker.sock:/tmp/docker.sock'
depends_on:
#!/bin/sh
cat <<EOF >/app/index.html
<html>
<head/>
<body>
<!-- IMAGE BEGINS HERE -->
<style type="text/css">
@import url("https://fonts.googleapis.com/css?family=Inconsolata|Roboto+Mono|Ubuntu+Mono|Cutive+Mono");
pre{
display: inline-block;
@KlimDos
KlimDos / README.md
Created June 10, 2021 10:50 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")