That is to say, if a module named test_module is installed in the central server’s /etc/puppet/modules directory,
the following puppet: URI…
puppet:///modules/test_module/testfile.txt
All puppet file server URIs are structured as follows:
puppet://{server hostname (optional)}/{mount point}/{remainder of path}
The Puppet File Server — Documentation — Puppet Labs
http://docs.puppetlabs.com/guides/file_serving.html
where is google chrome extensions store
~/Library/Application Support/Google/Chrome/Default/Extensions/
you can find the app id maping to dir
function list(tabs) {
var contents = '';
for (var i = 0; i < tabs.length; i++) {
contents += tabs[i].title + '\n';
contents += tabs[i].url + '\n';
}
document.getElementById('url-list').innerHTML = contents;
}
有時候想要看現在的 records 筆數與index size除了進去系統看實體index size外,
可直接使用 elastic search api。
$curl -XGET localhost:9200/_stat?pretty=true
{
"ok" : true,
"_shards" : {
"total" : 80,
"successful" : 78,
"failed" : 0
},
"_all" : {
"primaries" : {
"docs" : {
"count" : 51268,
"deleted" : 0
},
"store" : {
"size" : "47mb",
"size_in_bytes" : 49305337,
"throttle_time" : "0s",
"throttle_time_in_millis" : 0
},
"indexing" : {
"index_total" : 54374,
"index_time" : "1.7m",
"index_time_in_millis" : 104300,
"index_current" : 0,
"delete_total" : 0,
"delete_time" : "0s",
"delete_time_in_millis" : 0,
"delete_current" : 0
},
"get" : {
"total" : 0,
"time" : "0s",
"time_in_millis" : 0,
"exists_total" : 0,
"exists_time" : "0s",
"exists_time_in_millis" : 0,
"missing_total" : 0,
"missing_time" : "0s",
"missing_time_in_millis" : 0,
"current" : 0
},
"search" : {
"query_total" : 6463,
"query_time" : "17.5s",
"query_time_in_millis" : 17516,
"query_current" : 0,
"fetch_total" : 914,
"fetch_time" : "1.1s",
"fetch_time_in_millis" : 1113,
"fetch_current" : 0
}
},
"total" : {
"docs" : {
"count" : 104217,
"deleted" : 0
},
"store" : {
"size" : "572.4mb",
"size_in_bytes" : 600236519,
"throttle_time" : "0s",
"throttle_time_in_millis" : 0
},
"indexing" : {
"index_total" : 58856,
"index_time" : "3.6m",
"index_time_in_millis" : 220396,
"index_current" : 0,
"delete_total" : 0,
"delete_time" : "0s",
"delete_time_in_millis" : 0,
"delete_current" : 0
},
"get" : {
"total" : 0,
"time" : "0s",
"time_in_millis" : 0,
"exists_total" : 0,
"exists_time" : "0s",
"exists_time_in_millis" : 0,
"missing_total" : 0,
"missing_time" : "0s",
"missing_time_in_millis" : 0,
"current" : 0
},
"search" : {
"query_total" : 10459,
"query_time" : "27.5s",
"query_time_in_millis" : 27564,
"query_current" : 0,
"fetch_total" : 1324,
"fetch_time" : "1.6s",
"fetch_time_in_millis" : 1611,
"fetch_current" : 0
}
},
#curl -L https://get.rvm.io | bash -s stable --ruby
Installation of RVM in /usr/local/rvm/ is almost complete:
* First you need to add all users that will be using rvm to 'rvm' group,
and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
* To start using RVM you need to run `source /etc/profile.d/rvm.sh`
in all your open shell windows, in rare cases you need to reopen all shell windows.
#gpasswd -a root rvm
[root@hct5 redis-2.6.4]# make
cd src && make all
make[1]: Entering directory `/root/logenv/redis-2.6.4/src'
CC adlist.o
在包含自 adlist.c:34 的檔案中:
zmalloc.h:50:31: 錯誤:jemalloc/jemalloc.h:沒有此一檔案或目錄
zmalloc.h:55:2: 錯誤:#error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/logenv/redis-2.6.4/src'
make: *** [all] Error 2
solution:
# make distclean
usermod -d /path/to/new/homedir/ username
剛好參加了
【Legacy x Cheers 星期三不加班】留言送「紀曉君下班流浪記」音樂會門票
「紀曉君下班流浪記」音樂會
時間:2012年11月21日(三)
開放入場:開放入場 19:30/ 演出開始 20:30
地點:Legacy Taipei 傳 音樂展演空間(台北市八德路一段一號‧華山1914創意文化園區 中五館)
說真的,我聽到一半起了好幾次雞皮疙瘩。
好像會透過你一樣,辦隨著燈光,好像沉浸在另外一個空間。
ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /var/opt/cdh3/cluster/dfs/dn: namenode namespaceID = 1134851682; datanode namespaceID = 1188299446
rm -rf /var/opt/cdh3/cluster/dfs/dn/*
Re: jobtracker not starting up
http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201102.mbox/%3C30936184.post@talk.nabble.com%3E
cent os
centos
/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
yum install ruby-devel
[peicheng@searcher1 logcentral]$ git push -u origin master
(gnome-ssh-askpass:15555): Gtk-WARNING **: cannot open display:
sol:
$ unset SSH_ASKPASS
make[1]: Entering directory `/redis/redis-2.4.7/src'
which: no tclsh8.5 in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
You need 'tclsh8.5' in order to run the Redis test
可能有使用一些 import
到新的環境中,
最好是使用pip or easy_install ,virtualenv直接安裝那些import
可以把需要安裝的package 寫在 requirements.txt
pip install -r requirements.txt
當你使用 mac terminal的時候,
exit termnial的時候可能會有,留在那個視窗,
Process completed
可以調整
Prefrence / settings / when the shell exits
選擇
close if the shell exited cleanly
[root@xenserver-hy03 ~]# vgdisplay
--- Volume group ---
VG Name VG_XenStorage-6049dfd0-702f-fe3b-f1f3-1ae286f1d34d
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 61
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 2
Max PV 0
Cur PV 4
Act PV 4
VG Size 1.63 TB
PE Size 4.00 MB
Total PE 427187
Alloc PE / Size 161085 / 629.24 GB
Free PE / Size 266102 / 1.02 TB
VG UUID zoWm9s-l2gG-bIEZ-V4Tn-7pt7-z7UP-bgHns2
lvcreate -L 20GB -n myiso VG_XenStorage-zzzzz #myiso为卷名
mkfs.ext3 /dev/VG_XenStorage-zzzzz/myiso
mkdir /myiso
and wget your iso http
xe sr-create name-label=ISOs type=iso \
device-config:location=/myiso/ ISOs \
device-config:legacy_mode=true content-type=iso
vi /etc/rc.local
add
mount /dev/VG_XenStorage-zzzzz/myiso /myiso
run
/etc/rc.local
and other
xe-mount-iso-sr /myiso
xe-toolstack-restart
今天早上看到一張辦公室的圖,
想起來現在位置其實滿棒的。

忙碌完畢後,我最喜歡對著外面發呆了。