t('g.edit')
Enlaces solo si no es la pagina actual:
| [ | |
| { | |
| "origin": ["*"], | |
| "responseHeader": ["Content-Type", "Content-Md5"], | |
| "method": ["PUT", "GET", "HEAD", "DELETE"], | |
| "maxAgeSeconds": 3600 | |
| } | |
| ] |
| var request = require('request'); | |
| const express = require('express'); | |
| // .. | |
| app.get('/pdf', (req, res) => { | |
| // ... | |
| request(urldescarga).on("response", remoteRes => { | |
| // You can add/remove/modify headers here | |
| remoteRes.headers["content-disposition"] = "attachment; filename=archivodescargado.pdf"; | |
| }).pipe(res); |
| ffmpeg -i numero1-renacidos.mp4 -vf "transpose=1" numero1-renacidos-roteted.mp4 |
| SELECT `contact_id`, `user_id`, `date_backup`, `first_name`, `last_name` | |
| FROM tbl_contacts WHERE `date_backup` IN ( | |
| SELECT MAX(`date_backup`) | |
| FROM tbl_contacts WHERE `user_id`= 1 GROUP BY `contact_id` | |
| ) | |
| ORDER BY `contact_id` DESC |
| const log = new Proxy({}, { | |
| get: (_, colour) => function() { | |
| console.log(`%c ${[].slice.call(arguments).join(' ')}`, `color: ${colour}`) | |
| } | |
| }) | |
| // example | |
| log.tomato('I am tomato') | |
| log.chocolate('I am chocolate') | |
| log.cornflowerblue('I am cornflowerblue') |
| #https://stackoverflow.com/questions/43575126/how-to-remote-debug-console-log |
| # https://github.com/BKWLD/croppa | |
| # Media: images, icons, video, audio, HTC | |
| location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { | |
| error_page 404 = /index.php?$query_string; | |
| expires 1M; | |
| access_log off; | |
| add_header Cache-Control "public"; | |
| } |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| server_name dominio.example.com; | |
| #ojo.. tiene que estar en public.. si es laravel | |
| root /var/www/html/public; | |
| error_log /var/log/nginx/error.log warn; |