Posted in 20 October, 2009 ¬ 19:47h.chmouel
Last week I have posted an article explaining how to connect to Rackspace Cloud Files via Rackspace ServiceNET but I actually got it wrong as pointed by my great colleague exlt so I had to take it down until figured out how to fix it.
I have add that feature properly to the PHP [...]
Read the rest of this entry »
Posted in 14 October, 2009 ¬ 01:47h.chmouel
If you are a Rackspace customer and you are are planning to use Rackspace Cloud Files via it’s internal network (ServiceNet) so you don’t get billed for the bandwidth going over Cloud Files this is how you can do.
The first thing is to make sure with your support team if your servers are connected to ServiceNet and if you [...]
Read the rest of this entry »
Posted in 24 September, 2009 ¬ 22:10h.chmouel
Since working a lot with Rackspace Cloud Files I have put some quick
scripts using the python-cloudfiles API to do some ls rm and cp of containers or objects..
It’s really a collection of quickly written stuff put in the same file
but at least if not useful for you it would give you an idea how the
python-cloudfiles [...]
Read the rest of this entry »
Posted in 2 September, 2009 ¬ 17:49h.chmouel
After seeing this script http://overhrd.com/?p=106 which allow to upload files with the file manager (finder) of MacosX to Rackspace Cloud Files, I have made a nautilus script that doe the same for us Gnome/Unix users.
Available here :
http://github.com/chmouel/nautilus-rackspace-cloud-file/tree/master
Read the rest of this entry »
Posted in 16 July, 2009 ¬ 00:47h.chmouel
That weird output from sqlite3 command line is annoying you as well ? Just set this up to get something better :
cat < <EOF>~/.sqliterc
.mode "column"
.headers on
.explain on
EOF
Read the rest of this entry »
Posted in 21 March, 2008 ¬ 10:56h.chmouel
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 [...]
Read the rest of this entry »
Posted in 20 March, 2008 ¬ 03:36h.chmouel
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” [...]
Read the rest of this entry »
Posted in 19 September, 2007 ¬ 08:34h.chmouel
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 [...]
Read the rest of this entry »
Posted in 17 August, 2007 ¬ 01:11h.chmouel
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 :
[code lang="bash"]
echo "encryptedpassword"|openssl passwd -1 -stdin
[/code]
If you want to generate in pure python you can do it like that :
[code lang="python"]
def md5crypt(password, salt, magic='$1$'):
[...]
Read the rest of this entry »
Posted in 29 May, 2007 ¬ 05:36h.chmouel
Pretty good video to look if you like to know more about git and its creation :
http://www.youtube.com/watch?v=4XpnKHJAok8
Read the rest of this entry »