Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond. I am also slow as a person.

Salvatore Capolupo salvatorecapolupo

💭
I may be slow to respond. I am also slow as a person.
Block or report user

Report or block salvatorecapolupo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Open source HTML Parsers
Python, Perl and PHP open source HTML parsers. Useful for HTML traversing, parsing and scraping.
View gist:5c23e37800ee2d529bf222c504f60eaa
Per segnalazioni e richieste di rimozione scrivere a s.capolupo@gmail.com
View Servizi di carro attrezzi in Italia
Lista in aggiornamento, segnala il tuo servizio alla mia email s.capolupo@gmail.com
@salvatorecapolupo
salvatorecapolupo / Software free per la fatturazione
Last active Nov 8, 2018
Un elenco di soluzioni web per la fatturazione, pratici e veloci.
View Software free per la fatturazione
Cosa trovate in rete di free o open source per quello che riguarda la fatturazione, fatturazione inversa, scorporo dell'IVA e calcolo delle fatture da lordo, netto ed imponibile.
View Consulenti SEO a Roma
Lista di consulenti SEO attivi su Roma e provincia, via Skype e/o email.
@salvatorecapolupo
salvatorecapolupo / GDPR Privacy Policy Template
Last active May 6, 2018
Base template for Privacy Policy for any website (source: https://it.wordpress.org/plugins/gdpr-framework/) - Please not this is NOT a legal advice: you may need to focus other things not reported here. Sharing is helpful for us, but mindless copy-paste is useless.
View GDPR Privacy Policy Template
<h2>Privacy Policy</h2>
is committed to safeguarding your privacy. Contact us at if you have any questions or problems regarding the use of your Personal Data and we will gladly assist you.
By using this site or/and our services, you consent to the Processing of your Personal Data as described in this Privacy Policy.
<h3>Table of Contents</h3>
<ol>
<li><a href="#gdpr-definitions">Definitions used in this Policy</a></li>
<li><a href="#gdpr-principles">Data protection principles we follow</a></li>
<li><a href="#gdpr-rights">What rights do you have regarding your Personal Data</a></li>
<li><a href="#gdpr-information">What Personal Data we gather about you</a></li>
View WordPress Popular Posts - Parameters
@salvatorecapolupo
salvatorecapolupo / noduplicates.sql
Last active Apr 22, 2019
WordPress find post duplicates via MySQL query - Used to remove duplicated posts from WordPress - i.e https://www.lipercubo.it, https://capolooper.it
View noduplicates.sql
SELECT a.ID, a.post_title, a.post_type, a.post_status
FROM wp_posts AS a
INNER JOIN (
SELECT post_title, MIN( id ) AS min_id
FROM wp_posts
WHERE post_type = 'post'
AND post_status = 'publish'
GROUP BY post_title
HAVING COUNT( * ) > 1
) AS b ON b.post_title = a.post_title
View Comprimere file di immagini JPEG con sips (Mac)
# funziona in modo ricorsivo per tutti i file nella directory corrente
# va bene per le immagini di un sito per risparmiare banda e spazio
#prima passata: ricampiona a 960px massimo di altezza, formatta a compressione 80
find . -type f -name '*.jpg' -exec sips -s formatOptions 80 --resampleHeight 960 {} \;
#seconda passata: solo per i file grossi
find . -type f -size +1M -name '*.jpg' -exec sips -s formatOptions 35 --resampleHeight 960 {} \;
#terza ed ultima passata: togliere di mezzo gli EXIF
@salvatorecapolupo
salvatorecapolupo / wordpress_dontneeds.php
Created Jul 16, 2017
All you don't really need in WP. Please disable carefully!
View wordpress_dontneeds.php
<?PHP
//note: you should use these hook in functions.php file and / or (mu)plugin
//disable WordPress emoji
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
//disable Gravatars support
function __default_local_avatar()
You can’t perform that action at this time.