pydelion.com

date --date="5 min ago" +%d/%b/%Y:%H:%M

  • en
    • English
    • Français
    • Español
  • Home
  • about
  • contact

Monthly Archives: June 2016

17 Jun

How to test CORS using curl

curl -H "Origin: https://www.pydelion.com" \
https://static.pydelion.com/style/all.css -I  -v
dandelion Posted in linux curl CORS Leave a comment
09 Jun

Linux: add swap file – onliner

fallocate -l 512M /mnt/swap ; \
dd if=/dev/zero of=/mnt/swap bs=512 count=1048576 \
 ; mkswap /mnt/swap ; swapon /mnt/swap ; swapon -s ; free -m
dandelion Posted in linux Leave a comment
03 Jun

ansible: ‘Sending passwords in plain text without SSL/TLS is extremely insecure’

ansible MySQL replication fails to change master with the following error: ‘Sending passwords in plain text without SSL/TLS is extremely insecure.’

To fix the problem open /usr/lib64/python2.6/site-packages/MySQLdb/cursors.py and change:

defer_warnings = False

to

defer_warnings = True

This is ugly but it works.

dandelion Posted in linux ansible Leave a comment

Post navigation

Archives

  • May 2022
  • March 2020
  • January 2020
  • December 2019
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • January 2018
  • November 2017
  • August 2017
  • February 2017
  • January 2017
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • March 2015
  • November 2014
  • October 2014
  • August 2014
  • June 2014
  • May 2014
  • September 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013

Meta

  • Log in
Fruitful theme by fruitfulcode Powered by: WordPress
↑