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
angular.module('myapp', ['ionic']) | |
.run(function() { | |
ionic.Platform.ready(function() { | |
StatusBar.styleDefault(); | |
}); | |
}) |
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 'savon' | |
require 'nokogiri' | |
client = Savon.client do | |
wsdl "https://mail.example.com/service/wsdl/ZimbraUserService.wsdl" | |
namespaces("xmlns:urn" => "urn:zimbra", "xmlns:urn1" => "urn:zimbraAccount") | |
env_namespace :soapenv | |
namespace_identifier "urn1" | |
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
#!/usr/bin/env ruby | |
# From: https://support.google.com/a/answer/60764?hl=en | |
require 'resolv' | |
require 'pp' | |
DNS_SERVER = '8.8.8.8' | |
SPF_RECORD = "_spf.google.com" |
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
#!/bin/bash | |
#Version 3 | |
echo "Installed glibc version(s)" | |
rv=0 | |
for glibc_nvr in $( rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' glibc ); do | |
glibc_ver=$( echo "$glibc_nvr" | awk -F- '{ print $2 }' ) | |
glibc_maj=$( echo "$glibc_ver" | awk -F. '{ print $1 }') | |
glibc_min=$( echo "$glibc_ver" | awk -F. '{ print $2 }') |
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
- name: "Ajusta sysctl net.ipv4.tcp_fin_timeout" | |
sysctl: name=net.ipv4.tcp_fin_timeout value=15 state=present | |
- name: "Ajusta sysctl net.ipv4.tcp_tw_reuse" | |
sysctl: name=net.ipv4.tcp_tw_reuse value=1 state=present | |
- name: "Ajusta sysctl net.ipv4.tcp_tw_recycle" | |
sysctl: name=net.ipv4.tcp_tw_reuse value=1 state=present | |
- name: "Ajusta IMAP segun Doc oficial" |
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/env ruby | |
require 'active_record' | |
require 'csv' | |
require 'mysql2' | |
# Script to migrate contacts from http://www.afterlogic.com/webmail-client to Zimbra CS | |
# using only de database information | |
# the result for every account will be a CSV file under "OUT_DIRECTORY" like: | |
# result/user@domain.com.csv |
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", |
OlderNewer