This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! [ -x "$(command -v docker-compose)" ]; then | |
echo 'Error: docker-compose is not installed.' >&2 | |
exit 1 | |
fi | |
domains=(api.pengudb.com alpha.pengudb.com) | |
rsa_key_size=4096 | |
data_path="./certbot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/registry.usemevo.com/html; | |
index index.html index.htm index.nginx-debian.html; | |
server_name registry.usemevo.com; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This script will make it easier your private docker registry | |
# build process on Ubuntu 18.04. | |
# It may require press enter during works. | |
# | |
# I recommend to run this script on initial server setup | |
# that contain Ubuntu 18.04. | |
# | |
# Created by Furkan Basaran <github.com/@frknbasaran> | |
# at 26.07.2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_AUTH: htpasswd | |
REGISTRY_AUTH_HTPASSWD_REALM: Registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# change the value of [enterprise-plugin-addr] | |
# change the value of [ssl-compatible-nginx-config-file-path] | |
if [ -z "$1" ] | |
then | |
echo "Github username isn't provided. It should provide as first parameter." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/countly-web-sdk/plugins/adapter.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/countly-web-sdk/plugins/adapter.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Track pageview | |
*/ | |
// GA | |
ga('send', 'pageview', location.pathname); | |
// Mapped Countly Action | |
Countly.q.push(['track_pageview',location.pathname]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Countly.q.push(['add_event', { | |
"key":"ecommerce:addItem", | |
"count":5, | |
"sum":'11.99', | |
"segmentation":{ | |
"id":"1234", | |
"name":"Fluffy Pink Bunnies", | |
"sku":"DD23444", | |
"category":"Party Toys" | |
} |
NewerOlder