Send your users to https://www.mercadopago.com/mla/checkout/pay?pref_id=$pref_id
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
{ | |
"generator-fountain-angular1": { | |
"version": "0.6.0", | |
"props": { | |
"framework": "angular1", | |
"modules": "webpack", | |
"js": "typescript", | |
"css": "scss", | |
"resolved": "/usr/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular1/generators/app/index.js", | |
"namespace": "fountain-angular1", |
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 | |
sudo -u mypleksuser /opt/plesk/php/7.0/bin/php /usr/lib64/plesk-9.0/composer.phar install |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class CorsMiddleware | |
{ | |
/** | |
* Handle an incoming request. |
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
<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 |
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
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"'; | |
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
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); |
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
FROM busybox | |
ADD app/index.html /www/index.html | |
EXPOSE 8005 | |
CMD httpd -p 8005 -h /www; tail -f /dev/null |
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
## WARNING!!! | |
## DONT WORK YET | |
image: susa4ostec/bitbucket-pipelines-php7.1-mysql | |
options: | |
docker: true | |
pipelines: | |
default: |
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 | |
# | |
# 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 |
OlderNewer