Avant de se lancer, rien de tel que revoir le partitionnement, car après, c'est un peu plus dur.
$ passwd
Ouvrir une nouvelle fenêtre SSH et tester le nouveau mot de passe.
#!/bin/sh | |
# Demo how your can merge opscode chef-repo & cookbooks | |
# and perm. keep up to date with opscode cookbooks (the last "git" cmd) | |
% git clone git://github.com/opscode/chef-repo.git | |
Initialized empty Git repository in /home/tim/src/chef-repo/.git/ | |
remote: Counting objects: 107, done. | |
remote: Compressing objects: 100% (99/99), done. | |
remote: Total 107 (delta 45), reused 0 (delta 0) | |
Receiving objects: 100% (107/107), 16.14 KiB, done. | |
Resolving deltas: 100% (45/45), done. |
void prout(char* s) | |
{ | |
*(s+1) = 'X'; | |
} | |
void main() { | |
char *s1 = (char *) malloc(25); | |
sprintf(s1, "Hello, World"); | |
char s2[] = "Hello, World"; |
Sandwiches: | |
* Jay's Cheesesteaks (many seitan flavors) | |
* Ike's Place (tons of amazing veggie sandwiches) | |
* Toaster Oven (Potbelly's clone) | |
Mexican: | |
* Papalote (their house salsa is the best IN THE WORLD) | |
* El Buen Sabor (my favorite super veggie burrito) | |
* Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think) |
require 'rubygems' | |
require 'redis' | |
require 'json' | |
require 'eventmachine' | |
class RedisLoop | |
class << self | |
attr_accessor :queues | |
def start(opts={}, &blk) | |
EM.run { |
# ec2 ami-1515f67c | |
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev | |
sudo gem sources -a http://gems.opscode.com | |
sudo gem sources -a http://gemcutter.org # for nanite | |
sudo gem install cucumber merb-core nanite jeweler uuidtools json libxml-ruby --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git |
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
# see http://ole-martin.net/hbase-tutorial-for-beginners/ | |
require 'java' | |
require 'hbase-0.20.2.jar' | |
require 'lib/zookeeper-3.2.1.jar' | |
require 'lib/commons-logging-1.0.4.jar' | |
require 'lib/commons-logging-api-1.0.4.jar' | |
require 'lib/hadoop-0.20.1-hdfs127-core.jar' | |
require 'lib/log4j-1.2.15.jar' |