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.4' | |
services: | |
mongodb: | |
image: mongo:latest | |
container_name: sysgaming_mongo | |
restart: on-failure | |
environment: | |
MONGO_INITDB_DATABASE: sysgaming |
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.7" | |
networks: | |
kong-net: | |
name: kong-net | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.1.1.0/24 |
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 | |
# add cron: */3 * * * * /root/nginxfix.sh >> /var/log/nginxfix.log 2>&1 | |
# REF: https://www.hrupin.com/2017/07/how-to-automatically-restart-nginx | |
PATH=/usr/sbin:/usr/bin:/sbin:/bin | |
if [[ ! "$(/etc/init.d/nginx status)" =~ "active (running)" ]] | |
then | |
echo $(date -u) "NGINX server has been stopped. It has now been restarted." | |
service nginx start |
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
## 1. Create Application | |
``` | |
ng g application --prefix=moo --routing=false --skip-tests elements | |
``` | |
## 2. Add elements & polyfill | |
In order to have elements functionality available we need the Angular library and a polyfill — with the new CLI it’s just a matter of one(!) simple command: |
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
angular | |
.module('241App.site.directives', []) | |
.directive('pmtMap', mapDirective) | |
.directive('pmtIconSvg', iconSvg2Directive); | |
function vodSvgDirective() { | |
return { | |
restrict: 'E', | |
replace: 'true', |
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
# Cross domain webfont access | |
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2|svg)$ { | |
add_header "Access-Control-Allow-Origin" "*"; | |
# Also, set cache rules for webfonts. | |
# | |
# See http://wiki.nginx.org/HttpCoreModule#location | |
# And https://github.com/h5bp/server-configs/issues/85 | |
# And https://github.com/h5bp/server-configs/issues/86 |
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
var sidebar = document.getElementsByTagName('body'); | |
var scope = angular.element(sidebar).scope(); | |
var rootScope = scope.$root; | |
scope.$apply(function(){ | |
rootScope.$broadcast('loadMap'); | |
}); |
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
nslookup -type=MX domain.com.br |