Provare:
postsuper -d ALL
oppure
mailq
Provare:
postsuper -d ALL
oppure
mailq
dd if=/dev/zero of=file.txt count=1024 bs=1024
dd if=/dev/zero of=5G count=5 bs=1G
da redis-cli:
SELECT 0
KEYS '*' # tutte le chiavi
dump 'chiavetrovata' # per veder il contenuto
Per modificare il timeout interattivamente senza restart:
set global wait_timeout=1000;
set global interactive_timeout=1000;
Con i parametri -r -s è possibile utilizzare mysql da CLI ed avere l’output senza formattazione:
mysql -r -s -h host -uusername -p'pass'
Può essere utile ad esempio per effettuare delle kill massive costruite con una query:
select concat('kill ',id,';') from information_schema.processlist where time > 400;
Mi capita raramente di intervenire su sistemi redis. Ogni volta non ricordo i comandi principali… li scrivo qui, sperando di ricordarmi di averli scritti qui…
Tipicamente è richiesto di svuotare un DB.
Qui ci sono tutti i comandi https://redis.io/commands.
Ovviamente da una macchina linux serve installare un client:
sudo apt-get install redis-tools
sudo yum whatprovides redis-cli
sudo yum install redis
A quel punto ci si può connettere:
redis-cli -h 10.0.0.45
Con “INFO keyspace” si vedono i DB utilizzati e il loro ID, “SELECT” si utilizza il db selezionato e “FLUSHDB” svuota solo quello, es:
10.0.0.45:6379> SELECT 6
OK
10.0.0.45:6379[6]> FLUSHDB
OK
10.0.0.45:6379[6]> INFO keyspace
# Keyspace
db0:keys=15,expires=3,avg_ttl=52776051
Spaccate tutto!
No niente, è che mi sono rotto di cercare questo comando nelle history delle macchine quindi lo scrivo qui:
curl -L -I -H "X-forwarded-proto: https" -H "Host: www.ilvostrosito.it" localhost/pagina
Se va testato https ad esempio per il certificato www.sitocertificato.it sull’host www.destinazione.it, non funziona l’header Host, va usato curl in questo modo:
curl -I -L --connect-to www.sitocertificato.it:443:www.destinazione.it:443 https://www.sitocertificato.it
Attenzione a un nuovo grande comico di Zelig OFF: Giancarlo Kalabrugovic.
L’anno scorso mi erano piaciuti molto i Mammut, poi portati anche a Zelig Circus, speriamo sia lo stesso per Kalabrugovic! Guardate i filmati, ne vale la pena! Pino dei palazzi….
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |