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
networksetup -setsecurewebproxystate ethernet on | |
networksetup -setwebproxystate ethernet on |
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
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/ |
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
class OrganizationalUnitsController < ApplicationController | |
def show | |
@organizational_unit = OrganizationalUnit.find(params[:id]) | |
end | |
end | |
require 'treequel/model' | |
require 'treequel/model/objectclass' |
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
#!/usr/bin/ruby | |
require 'treequel' | |
require 'treequel/model' | |
require 'treequel/model/objectclass' | |
#Treequel.log.level=Logger::DEBUG | |
Treequel::Model.directory = Treequel.directory( | |
:host => "10.211.55.5", |
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 |
OlderNewer