Skip to content

Instantly share code, notes, and snippets.

@piyapsri
piyapsri / sonarqube-docker-compose.yml
Created July 21, 2021 07:28 — forked from Warchant/sonarqube-docker-compose.yml
docker-compose file to setup production-ready sonarqube
version: "3"
services:
sonarqube:
image: sonarqube
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:

An h1 header

Paragraphs are separated by a blank line.

2nd paragraph. Italic, bold, and monospace. Itemized lists look like:

  • this one
  • that one
@piyapsri
piyapsri / gen_cert.sh
Created June 5, 2021 08:54 — forked from adamrunner/gen_cert.sh
bash script to generate a self signed certificate for development use
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
@piyapsri
piyapsri / project001-docker-compose.yml
Created June 22, 2020 11:59 — forked from myoshimi/project001-docker-compose.yml
Gitlab-CE + Redmine + nginx(rev proxy)
version: '2'
services:
##### Reverse Proxy #####
rev:
image: nginx:1.15.8
restart: always
ports:
@piyapsri
piyapsri / docker-compose.yml
Created June 20, 2020 09:56 — forked from boiyama/docker-compose.yml
docker-compose.yml configuring GitLab with Container Registry, Pages, CI, and Mattermost
version: '2'
services:
gitlab:
container_name: gitlab
image: gitlab/gitlab-ce:latest
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
## GitLab configuration settings
##! Check out the latest version of this file to know about the different
@piyapsri
piyapsri / wordpress.nginx
Created January 19, 2020 09:12 — forked from LeCoupa/wordpress.nginx
WordPress - Nginx Configuration File (with SSL) --> https://github.com/LeCoupa/awesome-cheatsheets
##
# @server studio
# @host hackisition.com
# @desc nginx host rules
# @author Julien Le Coupanec <julien@gentlenode.com>
##
# HTTP Server
server {
listen 80;
@piyapsri
piyapsri / Kubernetes cluster setup based on amd64 && NVIDIA JETSON TX2.md
Created November 15, 2019 17:37 — forked from buptliuwei/Kubernetes cluster setup based on amd64 && NVIDIA JETSON TX2.md
Our project aims to build a Multi-platform kubernetes cluster, we use the VM on x86 as master node and two nvidia tx2 development kits as node. So we can schedule both CPU and GPU resources.

Kubernetes cluster setup based on amd64 && NVIDIA JETSON TX2

Thanks to @luxas create the Kubernetes on ARM project. But my project has some different, i have a VM on x86 as master node and two nvidia tx2 development kits as work node. So my kubernetes cluster are multi-platform. I use kubeadm as a deployment method.Some basic information of my platform is as follows.

Versions

kubeadm version (use kubeadm version):1.10.0

Environment:

  • Kubernetes version (use kubectl version):1.10.0
  • Cloud provider or hardware configuration:an amd64 master and 1 arm nodes (nvidia tagra TX2)
@piyapsri
piyapsri / mariadb.yml
Created October 31, 2019 18:33 — forked from akosveres/mariadb.yml
Mariadb + phpmyadmin docker-compose
version: "2"
services:
db:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=radio
volumes:
- ./database:/var/lib/mysql
phpmyadmin: