Ref. Github: iaian/sublimeText2_contextMenu.reg
- Replace the Sublime Text Directory’s path.
Ref. Github: iaian/sublimeText2_contextMenu.reg
get String Value
get 'Table_Name', 'RowKey', {COLUMNS=>'Column_Family:Qualify:toString'}
get Integer Value
get 'Table_Name', 'RowKey', {COLUMNS=>'Column_Family:Qualify:toInt'}
scan and get String Value
scan 'Table_Name', {COLUMNS=>'Column_Family:Qualify:toString'}
scan and get Integer Value
scan 'Table_Name', {COLUMNS=>'Column_Family:Qualify:toInt'}
echo 'list.each {|t| truncate t}; quit;' | hbase shell
or Drop Table
echo 'list.each {|t| disable t; drop t}; quit;' | hbase shell
Scan Table
list.each {|t| print t; scan t, {LIMIT=>1};}
check the find result
find . -name “*.bak” -type f
delete it
find . -name “*.bak” -type f -delete
Ref. ask Ubuntu: How can I recursively delete all files of a specific extension in the current directory?
Ref. stackoverflow: How to save the LDAP SSL Certificate from OpenSSL
echo -n | openssl s_client -connect ldapServer:636 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > ldapserver.pem
du -B M --max-depth=1 | sort -g
Ref.: [ubuntu] 利用du搭配sort來查看磁碟使用空間]1
while [ 1 ]; do if [ $(mysql -uroot -ppassword -e"show slave status G;" | grep "Duplicate entry" | wc -l) -eq 1 ] ; then mysql -uroot -ppassword -e"stop slave; set global sql_slave_skip_counter=1; start slave;"; fi; sleep 1; mysql -uroot -ppassword -e"show slave statusG"; done
Ref. MySQL Replication Error 1062: ‘Duplicate entry for PRIMARY key’
Using Json
$('#using_json').jstree({ 'core' :
{
'data' : [
'Simple root node',
{
'text' : 'Root node 2',
'state' : {
'opened' : true,
'selected' : true
},
'children' : [
{ 'text' : 'Child 1' },
'Child 2'
]
}
]
} });
Using the alternative JSON format
$('#using_json').jstree({ 'core' : {
'data' : [
{ "id" : "ajson1", "parent" : "#", "text" : "Simple root node" },
{ "id" : "ajson2", "parent" : "#", "text" : "Root node 2" },
{ "id" : "ajson3", "parent" : "ajson2", "text" : "Child 1" },
{ "id" : "ajson4", "parent" : "ajson2", "text" : "Child 2" },
]
} });
<input type="button" value="Expand All" onclick="$(‘#jsTreeID').jstree('open_all');">
<input type="button" value="Collapse All" onclick="$('#jsTreeID').jstree('close_all');">
enable proxy_module, proxy_http_module, rewrite_module
set < Directory path > in apache config
RewriteEngine on
AllowOverride All
edit .htaccess in your folder
< IfModule mod_rewrite.c >
RewriteEngine On
RewriteBase /
RewriteRule ^(.+)$ http://localhost:8080/jwebadm/$1 [P,L]
< /IfModule >
restart apache