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 python3 | |
import requests | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
token = "my_secret_token" | |
subscription_id = "25399" | |
data = {"server_name": "ICMarkets-Demo04", "account_number" : "44140905", "account_password" : "my_secret_password", "callback_url": "https://test-skydesks.free.beeceptor.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
public string TourPackageEnquiry(string Occasion, string DepartingFrom, string TravellingTo, string DepartingDate, string ReturningDate, int NoofAdults, int NoofChild, int NoofInfants, int NoOfNights, string CustomerCommunicationMode, string Name, string HomeOfNo, string MobileNo, string Preferedcallbacktime, string Email, string AdditionalComments, int FromWebsite, int FromMarketingMedium, string Dealrefference, string Howdidknow, string DealUrl, double FromPrice) | |
{ | |
//int EnquiryTypeId = 6; | |
string GeneratingRefferenceNo = string.Empty; | |
string RefferenceNoNew = string.Empty; | |
string FinalRef = ""; | |
string recv_email = Email; | |
string[] split_email = recv_email.Split('@'); | |
string email_domain_name = split_email[1].ToString(); |
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 python | |
"""Aliases for argparse positional arguments.""" | |
import argparse | |
class AliasedSubParsersAction(argparse._SubParsersAction): | |
class _AliasedPseudoAction(argparse.Action): | |
def __init__(self, name, aliases, help): |
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
# Create and provision Windows Servers Automatically | |
# http://blog.manageacloud.com/entry/azure-provision-windows-automatically | |
# You need azure xplat-cli installed and logged in before running this macfile | |
mac: 0.9.19 | |
description: Azure Example | |
name: azure_demo # Infrastructure name | |
version: 1.1 # Infrastructure version |
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
mac: 0.7.1 | |
description: Scaled and Load-Balanced Application | |
name: demo | |
version: '1.0' | |
roles: | |
app: | |
instance create: | |
# application configuration defined at https://manageacloud.com/configuration/demo_application | |
configuration: demo_application |
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
final String POLL_PERIOD_TWENTY_SECONDS = String.valueOf(SECONDS.toMillis(20)); | |
Properties overrides = new Properties(); | |
overrides.setProperty(ComputeServiceProperties.POLL_INITIAL_PERIOD, POLL_PERIOD_TWENTY_SECONDS); | |
overrides.setProperty(ComputeServiceProperties.POLL_MAX_PERIOD, POLL_PERIOD_TWENTY_SECONDS); | |
Iterable<Module> modules = ImmutableSet.<Module> of(new SshjSshClientModule(), new SLF4JLoggingModule()); | |
ComputeServiceContext context = ContextBuilder.newBuilder("google-compute-engine") | |
.credentials("valid user", "valid password") | |
.modules(modules) | |
.overrides(overrides) |