This file contains 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
# Creamos PV en nueva LUN - El nombre "logs" es un alias de Multipath | |
pvcreate /dev/mapper/logs | |
# Extendemos el VG logs | |
vgextend logs /dev/mapper/logs | |
# Movemos los datos entre los PVs | |
pvmove /dev/dm-4 /dev/mapper/logs -v | |
# Eliminamos el antiguo PV |
This file contains 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
NSNumber *operandObject = [NSNumber numberWithDouble:operand]; | |
[self.operandStack addObject:operandObject]; | |
NSLog(@"%@", operandObject); |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
test "${1}" do | |
${2} | |
end | |
]]></content> | |
<tabTrigger>test</tabTrigger> | |
<scope>source.ruby</scope> | |
</snippet> |
This file contains 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
def formated_error_message(message) | |
messages = message.split(/\n/) | |
content_tag :ul do | |
messages.reduce('') {|c,msg| c << content_tag(:li, msg)}.html_safe | |
end | |
end |
This file contains 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
require "nokogiri" | |
xmldoc = Nokogiri::XML(File.read(ARGV[0]), nil, nil, Nokogiri::XML::ParseOptions::NOBLANKS | Nokogiri::XML::ParseOptions::NOCDATA | Nokogiri::XML::ParseOptions::STRICT) | |
print xmldoc.at(ARGV[1]).canonicalize |
This file contains 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
doveadm auth -a /var/spool/postfix/private/dovecot_auth pbruna 123456 |
This file contains 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
{ | |
"_id" : ObjectId("50244ef457af96ee60c9206f"), | |
"src_emails" : [ | |
{ | |
"address" : "publmantagua01@xxx.cl", | |
"count" : 144 | |
}, | |
{ | |
"address" : "pzamorano@xxx.cl", | |
"count" : 4 |
This file contains 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
pbruna@pbrunamac ~ $ pry | |
[1] pry(main)> | |
[1] pry(main)> require 'oauth' => true | |
[2] pry(main)> @consumer=OAuth::Consumer.new( "esta_es_la_key","este_es_el_secret", { site: 'https://mail.zboxtest.com', request_token_path: '/service/extension/sampleoauth/req_token', authorize_path: '/service/extension/sampleoauth/authorization', access_token_path: '/service/extension/sampleoauth/access_token'}) | |
=> #<OAuth::Consumer:0x007fc592b1e5e0 | |
@key="esta_es_la_key", | |
@options= | |
{:signature_method=>"HMAC-SHA1", |
This file contains 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
# Importante es la opción "-d -1" | |
# -d: nivel de debug | |
# -1: nivel de log más alto -> http://www.openldap.org/doc/admin24/runningslapd.html | |
/opt/zimbra/libexec/zmslapd -l LOCAL0 -4 -u zimbra -h ldap://zimbra.server.com:389 ldapi:/// -F /opt/zimbra/data/ldap/config -d -1 |
This file contains 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
@(#) $OpenLDAP: slapd 2.4.23 (Mar 4 2011 17:11:29) $ | |
root@zre-debian5-64.eng.vmware.com:/home/build/p4/HELIX-701/ThirdParty/openldap/openldap-2.4.23.5z/servers/slapd | |
ldap_pvt_gethostbyname_a: host=mail, r=0 | |
daemon_init: ldap://zimbra.server.com:389 | |
daemon_init: listen on ldap://zimbra.server.com:389 | |
daemon_init: 1 listeners to open... | |
ldap_url_parse_ext(ldap://zimbra.server.com:389) | |
daemon: listener initialized ldap://zimbra.server.com:389 | |
daemon_init: 1 listeners opened | |
ldap_create |