If you use the XMLRPC client in ruby over a self certified SSL you have this warning :
warning: peer certificate won’t be verified in this SSL session
You can get override that warning cleanly (i have seen some people who just comment the message in the standard library) like that :
require 'xmlrpc/client'
require 'net/https'
require 'openssl'
require [...]
Filed under: Programming, Ruby on March 21st, 2008 | No Comments »
While talking with my fellow colleague Darren Birkett about what seems a design limitation
of yum to not be able to force listing the excludes from yum. I had a
shoot to make a yum plugin to force listing the excludes.
Here is how it works :
root@centos5:~> grep exclude /etc/yum.conf
exclude=rpm*
root@centos5:~> yum install rpm-devel
Loading “installonlyn” plugin
Loading “changelog” plugin
Loading “chmouel” [...]
Filed under: Programming, Python, RedHat on March 20th, 2008 | 4 Comments »
Finally after three years (almost i arrived on 29 September 2004 here) i am following all my french friends (except Aurelien whos staying here) and i am moving back to France. It is a heartbreak since this is one (if not the one) of the best country i ever lived. I made a lot [...]
Filed under: Programming on September 19th, 2007 | 2 Comments »
If you want to generate properly encrypted password to feed to chpasswd, the most easier and proper way is to do that from command line :
echo "encryptedpassword"|openssl passwd -1 -stdin
If you want to generate in pure python you can do it like that :
def md5crypt(password, salt, magic='$1$'):
[...]
Filed under: Programming, Python, Scripts on August 17th, 2007 | 3 Comments »
Pretty good video to look if you like to know more about git and its creation :
http://www.youtube.com/watch?v=4XpnKHJAok8
Filed under: Programming on May 29th, 2007 | No Comments »
Here is some function to launch a gajim window from Emacs :
(defvar gajim-remote "/usr/bin/gajim-remote")
(defvar gajim-user-list ())
(defun my-gajim-get-list()
(save-excursion
(with-temp-buffer
(call-process gajim-remote nil t nil "list_contacts")
(goto-char (point-min))
(while (re-search-forward "^jid[ ]*:[ ]*\\(.*\\)$" (point-max) t )
[...]
Filed under: Emacs, Programming on July 31st, 2006 | No Comments »
When i have a password comparaison function using crypt(3) i really should remember that the comparaison stop at the 7 bytes, because that stuff is weird for me :
In [1]: import crypt
In [2]: seed=’foo!bar’
In [3]: crypt.crypt(’abcdefghaa123456681′, seed)
Out[3]: ‘foEoVhbk7ad7A’
In [4]: crypt.crypt(’abcdefghpax;lalx;al’, seed)
Out[4]: ‘foEoVhbk7ad7A’
In [5]:
any stuff after the 6 char will always get ignored by the hash [...]
Filed under: Programming on July 30th, 2006 | 2 Comments »
At work we are using Asterisk and Jabber and i am using Gajim as my client. I did a quick patch to have a notification on my desktop when someone call me and i get my big headphones (not that i like the phone very much but well), here is the patch for people who [...]
Filed under: Misc, Programming, Python on May 25th, 2006 | No Comments »