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
git config --system core.longpaths true |
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
# encoding: utf-8 | |
module VendorSvc | |
class Alidayu | |
def initialize(options) | |
@app_key = AppConfig.alidayu_settings['app_key'] | |
@app_secret = AppConfig.alidayu_settings['app_secret'] | |
@svc_gateway = AppConfig.alidayu_settings['svc_gateway_https'] | |
@sms_template = options[:sms_template] | |
@sms_sign = options[:sms_sign] | |
@app_product_name = options[:app_product_name] || AppConfig.alidayu_settings['app_product_name'] |
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
select ddn.properties->>'$.server.name' as os_hostname, | |
ddni.external_name, | |
ddni.host_instance_name, | |
ddni.name, | |
ddni.runtime_properties->>'$.ip' as main_ip | |
from deployment_details_node ddn, | |
deployment_details_node_instance ddni, | |
deployment dp | |
where dp.tenant_id = 'bocomm' | |
and dp.deleted =false |
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 | |
if (( $# < 1 )); then | |
echo "Run as root: ./OEM.sh <customer_name>" | |
exit 2 | |
fi | |
JS_DIR=/opt/cloudchef/tomcat/webapps/ROOT/WEB-INF/classes/static/javascripts/ | |
OEM=$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
DROP FUNCTION IF EXISTS `join_all_projects`; | |
DELIMITER $$ | |
CREATE DEFINER = `cloudchef`@`%` FUNCTION `join_all_projects`(`tenant_id` varchar(64),`business_group_name` varchar(225),`user_name` varchar(225)) | |
RETURNS int(4) | |
BEGIN | |
DECLARE projectCount int; | |
DECLARE done INT DEFAULT FALSE; | |
DECLARE user_id varchar(64); | |
DECLARE proj_id varchar(64); |
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
# this is due to break change in Mysql 5.7.x, and latest Rails4.2.x already have this patched. | |
# remove this file when upgrade to Rails 4.2.x | |
class ActiveRecord::ConnectionAdapters::Mysql2Adapter | |
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY" | |
end |