Problem
$ devspace dev
[...]
DevSpace still couldn't find any Pods that match the selector. DevSpace will continue waiting, but this operation might timeout
apiVersion: cert-manager.io/v1 | |
kind: ClusterIssuer | |
metadata: | |
name: letsencrypt-nginx | |
spec: | |
# ACME issuer configuration | |
# `email` - the email address to be associated with the ACME account (make sure it's a valid one) | |
# `server` - the URL used to access the ACME server’s directory endpoint | |
# `privateKeySecretRef` - Kubernetes Secret to store the automatically generated ACME account private key | |
acme: |
#!/bin/bash | |
# | |
# Recorre todos los archivos .pdf del directorio actual y genera el .txt correspondiente | |
# | |
for file in ./*.pdf | |
do | |
echo "Converting $file to $file.txt" | |
pdftotext -layout "$file" "$file.txt" | |
done |
## WARNING!!! | |
## DONT WORK YET | |
image: susa4ostec/bitbucket-pipelines-php7.1-mysql | |
options: | |
docker: true | |
pipelines: | |
default: |
FROM busybox | |
ADD app/index.html /www/index.html | |
EXPOSE 8005 | |
CMD httpd -p 8005 -h /www; tail -f /dev/null |
function ClassWrapper() { | |
return function(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// the new constructor behaviour | |
var f: any = function (...args) { | |
console.log('ClassWrapper: before class constructor', original.name); | |
let instance = original.apply(this, args) | |
console.log('ClassWrapper: after class constructor', original.name); |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,DELETE,PUT'; | |
add_header 'Access-Control-Allow-Headers' 'authorization,content-type,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control'; | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Max-Age' 1728000; | |
add_header 'Access-Control-Allow-Credentials' true; | |
add_header 'Content-Security-Policy' 'default-src "self"'; | |
Send your users to https://www.mercadopago.com/mla/checkout/pay?pref_id=$pref_id
<IfModule mod_headers.c> | |
RewriteCond %{REQUEST_METHOD} OPTIONS [NC] | |
# Only paths starting with /api/ | |
RewriteCond %{REQUEST_URI} ^/api/ [NC] | |
RewriteRule ^(.*)$ $1 [L,R=204,ENV=CORS:true] | |
Header always set X-Content-Type-Options "nosniff" | |
Header always set X-XSS-Protection "1; mode=block" | |
Header always set Access-Control-Max-Age 1728000 env=CORS |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class CorsMiddleware | |
{ | |
/** | |
* Handle an incoming request. |