Tested on Yosemite. Should work on El Cap. Message me if it doesn't.
- You are tired of using vagrant
- You want to run guard
- You want use Sublime plugins (like RSpec or Guard plugins)
- You want your code to run faster in development
version: '3.1' | |
networks: | |
drupal8: | |
external: false | |
services: | |
traefik: | |
container_name: ${DOMAIN}-traefik | |
image: traefik |
const fs = require("fs"); | |
const WebCrypto = require("node-webcrypto-ossl"); | |
const xadesjs = require("xadesjs"); | |
const { XMLSerializer } = require("xmldom-alpha"); | |
const crypto = new WebCrypto(); | |
xadesjs.Application.setEngine("OpenSSL", crypto); | |
function preparePem(pem) { | |
return pem |
<?xml version="1.0" encoding="UTF-8"?> | |
<FacturaElectronica xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/facturaElectronica"> | |
<Clave>50609011800011717071900000000000000000034987656238</Clave> | |
<NumeroConsecutivo>00000000000000000032</NumeroConsecutivo> | |
<FechaEmision>2018-01-08T20:25:49.049Z</FechaEmision> | |
<Emisor> | |
<Nombre>Alvaro Andres Zuniga Hernandez</Nombre> | |
<Identificacion> | |
<Tipo>01</Tipo> | |
<Numero>117170719</Numero> |
<?xml version="1.0" encoding="UTF-8"?> | |
<FacturaElectronica xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://tribunet.hacienda.go.cr/docs/esquemas/2017/v4.2/facturaElectronica"> | |
<Clave>50609011800011717071900000000000000000034987656238</Clave> | |
<NumeroConsecutivo>00000000000000000032</NumeroConsecutivo> | |
<FechaEmision>2018-01-08T20:25:49.049Z</FechaEmision> | |
<Emisor> | |
<Nombre>Alvaro Andres Zuniga Hernandez</Nombre> | |
<Identificacion> | |
<Tipo>01</Tipo> | |
<Numero>117170719</Numero> |
# By default, Docker containers run as the root user. This is bad because: | |
# 1) You're more likely to modify up settings that you shouldn't be | |
# 2) If an attacker gets access to your container - well, that's bad if they're root. | |
# Here's how you can run change a Docker container to run as a non-root user | |
## CREATE APP USER ## | |
# Create the home directory for the new app user. | |
RUN mkdir -p /home/app |
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
# --no-check-cerftificate was necessary for me to have wget not puke about https | |
curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path | |
# Example... | |
TOKEN="INSERTACCESSTOKENHERE" | |
OWNER="BBC-News" | |
REPO="responsive-news" |
# docker-compose build && docker-compose up -d | |
version: "3.2" | |
volumes: | |
elasticsearch_data: | |
driver: local | |
kibana_data: | |
driver: local | |
services: |
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
Tested on Yosemite. Should work on El Cap. Message me if it doesn't.