This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
NewerOlder