Skip to content

Instantly share code, notes, and snippets.

View alinetskyi's full-sized avatar
🏠
Working from home

Artem Linetskiy alinetskyi

🏠
Working from home
View GitHub Profile
@alinetskyi
alinetskyi / docker-compose.yaml
Created September 30, 2020 12:12
Ethereum node deployment file
version: '3.6'
services:
geth:
image: ethereum/client-go:stable
restart: always
command: |
--rpc
--rpcaddr=0.0.0.0
--rpcport=8545
#!/bin/sh
# To use add to `.git/hooks/`
# Should be named `pre-push`
# Make executable with `chmod +x`
flutter analyze
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo success
#!/usr/bin/env bash
flutter packages pub run build_runner build --delete-conflicting-outputs
flutter format .
flutter analyze
@alinetskyi
alinetskyi / sampledata.js
Created April 27, 2020 16:54
Sample data
// This file is used to seed database with data exported below,
// using init-data.js script (`yarn seed`).
// Object type keys like 'assetTypes' map to objects to create.
// Corresponding object keys are only used by init-data script to enable references
// where ids are expected, so that you can use 'assetTypes::someName'
// instead of an id you don’t know yet (that will look like 'typ_xx…').
// const ms = require('ms')
@alinetskyi
alinetskyi / setup.sh
Last active March 24, 2023 09:39
Setup Debian machine for docker-compose
#!/bin/bash -x
COMPOSE_VERSION="1.23.2"
COMPOSE_URL="https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)"
# Opendax bootstrap script
install_core() {
sudo bash <<EOS
apt-get update
apt-get remove -y --purge unscd
@alinetskyi
alinetskyi / install_gcloud.sh
Created September 12, 2019 12:58
Scripts for VM's and Servers
# Update YUM with Cloud SDK repo information:
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM
[google-cloud-sdk]
name=Google Cloud SDK
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
@alinetskyi
alinetskyi / install_gcloud.sh
Created September 12, 2019 12:58
Scripts for VM's and Servers
# Update YUM with Cloud SDK repo information:
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM
[google-cloud-sdk]
name=Google Cloud SDK
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
@alinetskyi
alinetskyi / docker-compose.yml
Last active February 8, 2021 08:22
Drone docker-compose file with db
version: "3.6"
services:
drone:
image: drone/drone:1.2.1
volumes:
- drone_data:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "443:443"
@alinetskyi
alinetskyi / redeploy_role.yaml
Last active September 17, 2019 14:40
Redeployment Kubernetes resources
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: front-redeploy
namespace: uat-app
rules:
- apiGroups:
- ""
- extensions
resources:

Node JS Applogic for Rubykube stack

Start the app

To start up the application simply run

npm install
npm run start

Configuration