Quantcast
Channel: mauromascia.com » tips & tricks in pills
Browsing all 6 articles
Browse latest View live

Concurrent connections to your machine

:~$ netstat -ntu | grep ESTABLISHED | awk '{ if ( NR > 2 ) { print } }' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n :~$ This command will return the list of concurrent connections...

View Article



WordPress Tips: extend the Text Widget allowing shortcodes and custom classes

What follows is a small tip to create an extension of the base “text” widget of WordPress, to allow the execution of shortcodes and to allow to specify one or more classes (space separated) per-widget....

View Article

WooCommerce: Creazione manuale di ordini

Il problema Sono il gestore di e-commerce basato su WooCommerce e a volte ho bisogno di creare manualmente gli ordini per i miei clienti. Vorrei inoltre che il mio cliente ricevesse un’email con il...

View Article

GIT – merge selective files

To selectively merge files from one branch into another branch, run git merge --no-ff --no-commit branchX where: branchX is the branch you want to merge from into the current branch The --no-commit...

View Article

Remove referer part when tailing logs

tail -f /var/log/apache2/error.log | perl -pe 's/\[error\]\s+\[client.*?\]\s+//; s/, referer:.*//'

View Article


Create a POT file for themes and plugins

~$ cd /var/www/your-site-folder/wp-content/ ~$ svn export http://i18n.svn.wordpress.org/tools/trunk/ makepot ~$ cd plugins/your-plugin-folder/languages ~$ php...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images