Skip to content

Instantly share code, notes, and snippets.

View kvlknctk's full-sized avatar
🏠
Now working from Codenra

K. Volkan ÇATAK kvlknctk

🏠
Now working from Codenra
View GitHub Profile
@kvlknctk
kvlknctk / install-ssl.sh
Created July 21, 2022 16:51
Install SSL
#!/bin/bash
set -e
DEB_CONF_RESULT=`debconf-show jitsi-meet-web-config | grep jvb-hostname`
DOMAIN="${DEB_CONF_RESULT##*:}"
# remove whitespace
DOMAIN="$(echo -e "${DOMAIN}" | tr -d '[:space:]')"
echo "-------------------------------------------------------------------------"
@kvlknctk
kvlknctk / nginxManuel.sh
Created March 20, 2022 11:02
nginxManuel.sh
#!/bin/sh
if [ -z "$1" ]; then
echo "Enter domain:"
read server_name
else
server_name=$1
fi
echo $server_name
@kvlknctk
kvlknctk / multicluster.yml
Created September 7, 2021 21:01
elastic search cluster
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03
@kvlknctk
kvlknctk / mongo-docker.bash
Created July 26, 2021 16:17 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@kvlknctk
kvlknctk / .htaccess
Created December 29, 2019 17:57 — forked from alexsasharegan/.htaccess
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]