Skip to content

Instantly share code, notes, and snippets.

View bussyjd's full-sized avatar
💭
🛠️ Buidl

JeanDaniel Bussy bussyjd

💭
🛠️ Buidl
View GitHub Profile
@bussyjd
bussyjd / radospybinddemo.py
Last active October 11, 2015 15:57
A simple demonstration of LIBRADOS binding to RADOS cluster
### Import of the Python Rados library classes
### https://github.com/ceph/ceph/blob/master/src/pybind/rados.py
from rados import Rados,ObjectIterator
### Initialize Rados class
cluster = Rados()
### /etc/ceph/ceph.conf file is read
cluster.conf_read_file()
print "Configuration file successfully loaded [OK]"
### Connection to the RADOS cluster
@bussyjd
bussyjd / .tmux.conf
Created September 18, 2012 03:01
My ~/.tmux.conf file
set -g prefix C-a
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# bindings
bind \ split-window -h
bind - split-window -v
bind-key k select-pane -U
@bussyjd
bussyjd / chef_server_install.sh
Created March 7, 2012 02:04 — forked from corporealfunk/chef_server_install.sh
install chef server on ubuntu
!#/bin/sh
echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list
sudo mkdir -p /etc/apt/trusted.gpg.d
gpg --keyserver keys.gnupg.net --recv-keys 83EF826A
gpg --export packages@opscode.com | sudo tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null
sudo apt-get update
sudo apt-get install opscode-keyring # permanent upgradeable keyring
sudo apt-get upgrade
sudo apt-get install chef chef-server
@bussyjd
bussyjd / For benchmark purposes
Created January 10, 2012 08:13
PHP random image generator
<?php
error_reporting(E_ALL);
$limit=10;
$width = 120;
$height = 20;
for($x=0;$x<$limit;$x++) {
$im = @imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);