$ sudo mv supervisor /etc/init.d
$ sudo chkconfig --add supervisor
$ sudo chkconfig supervisor on
This file contains hidden or 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
| FROM debian:jessie | |
| MAINTAINER Edson Hilios <edson.hilios.com.br> | |
| RUN apt-get update -y | |
| RUN apt-get install -y wget | |
| # Install libwebsockets | |
| RUN apt-get install -y cmake libssl-dev | |
| RUN mkdir -p /build/libwebsockets | |
| WORKDIR /build/libwebsockets |
This file contains hidden or 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
| [Unit] | |
| Description=Nginx Docker Container | |
| After=docker.service | |
| Requires=docker.service | |
| [Service] | |
| TimeoutStartSec=0 | |
| ExecStartPre=-/usr/bin/docker kill %n | |
| ExecStartPre=-/usr/bin/docker rm %n | |
| ExecStartPre=/usr/bin/docker run --name %n -d -p 80:80 -p 443:443 -v /etc/nginx:/etc/nginx -v /var/nginx/html:/usr/share/nginx/html nginx |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import math | |
| import re | |
| from decimal import Decimal | |
| # SAD-69 World Datum | |
| A = 6378160 | |
| E2 = 0.00669454185 | |
This file contains hidden or 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
| $ sudoku | |
| Row[1] : --------- | |
| Row[2] : -----3-85 | |
| Row[3] : --1-2---- | |
| Row[4] : ---5-7--- | |
| Row[5] : --4---1-- | |
| Row[6] : -9------- | |
| Row[7] : 5------73 | |
| Row[8] : --2-1---- | |
| Row[9] : ----4---9 |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """1) Construa um algoritmo que, tendo como dados de entrada dois | |
| pontos quaisquer no plano, P(x1,y1) e P(x2,y2), escreva a distância | |
| entre eles. A fórmula que efetua tal cálculo: | |
| d = sqrt(Δx^2 + Δy^2) | |
| """ | |
| import lib | |
| import math | |
| def distancia(p1, p2): |
Allows to control the page title from the AngularJS route system, controllers or any other component through an injectable service.
ngPageTitle - Page title service (run tests)
To get started add the module to your app and configure the page title provider:
This file contains hidden or 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
| # Java | |
| export JAVA_HOME=`/usr/libexec/java_home -v '10'` | |
| export JAVA_OPTIONS="-Xms1024m -Xmx4G -Xss256m" |
This file contains hidden or 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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| buildmap: { | |
| files: ['<%= source.root %>'], | |
| dest: '<%= source.dest %>' | |
| } | |
| }); | |
| grunt.registerTask('default', ['buildmap'], function() { |