This file contains hidden or 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
<?php | |
$ret = null; | |
$uri = 'https://latest.aws.bmlt.app/main_server/client_interface/json/?switcher=GetServerInfo'; | |
$data = file_get_contents($uri); | |
if ($data) { | |
$ret = array(); |
This file contains hidden or 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
<?php | |
$timezones_array = DateTimeZone::listIdentifiers(); | |
foreach ($timezones_array as $tzItem) { | |
echo $tzItem . "\n"; | |
} |
This file contains hidden or 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
<?php | |
/* | |
bmlt2kml.php | |
This file converts a JSON BMLT GetSearchResults query to KML | |
To use run `php bmlt2kml.php` or place on your webserver and | |
specify a query param with a url encoded bmlt query url. | |
https://domain.com/bmlt2kml.php?query=https%3A%2F%2Flatest.aws.bmlt.app%2Fmain_server%2Fclient_interface%2Fjson%2F%3Fswitcher%3DGetSearchResults%26services%3D1010%26weekdays%3D2 | |
*/ | |
$cli_query = null; |
This file contains hidden or 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
<?php | |
/* | |
bmlt2csv.php | |
This file converts a JSON BMLT GetSearchResults query to a CSV | |
To use run `php bmlt2csv.php` or place on your webserver and | |
specify a query param with a url encoded bmlt query url. | |
https://domain.com/bmlt2csv.php?query=https%3A%2F%2Flatest.aws.bmlt.app%2Fmain_server%2Fclient_interface%2Fjson%2F%3Fswitcher%3DGetSearchResults%26services%3D1010%26weekdays%3D2 | |
*/ | |
$cli_query = null; |
This file contains hidden or 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
<?php | |
$bmlt_server = "https://latest.aws.bmlt.app/main_server"; | |
$search_query = "&services=1010&weekdays=2"; | |
$query_url = urldecode($bmlt_server . "/client_interface/json/?switcher=GetSearchResults" . $search_query); | |
$result = ''; | |
if (str_contains($query_url, "/client_interface/json/?switcher=GetSearchResults")) { | |
$meetings = file_get_contents($query_url); | |
$meetings = json_decode($meetings, true); |
This file contains hidden or 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
data "http" "users" { | |
for_each = toset(var.github_users) | |
url = "https://api.github.com/users/${each.value}/keys" | |
request_headers = { | |
Accept = "application/json" | |
} | |
} | |
variable "github_users" { |
This file contains hidden or 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
tags = [ | |
{'Key': 'Environment', 'Value': 'staging'}, | |
{'Key': 'Name', 'Value': 'STAGING TOOLS'} | |
] | |
tag_dict = {tag['Key']: tag['Value'] for tag in tags} | |
# { | |
# "Environment": "staging", | |
# "Name": "STAGING TOOLS" |
This file contains hidden or 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
<?php | |
$root_server = "https://my.root-server.org/main_server"; | |
$meetings = json_decode(file_get_contents("$root_server/client_interface/json/?switcher=GetSearchResults"), true); | |
$console_color = true; | |
$tempvirtual = 0; | |
$virtual = 0; | |
$inperson = 0; |
This file contains hidden or 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
<?php | |
$root_server = "https://my.root-server.org/main_server"; | |
$bmlt_login_id = ""; | |
$bmlt_login_password = ""; | |
$login = get("$root_server/local_server/server_admin/json.php?c_comdef_admin_login=$bmlt_login_id&c_comdef_admin_password=$bmlt_login_password&admin_action=login"); | |
$meetings = json_decode(get("$root_server/client_interface/json/?switcher=GetSearchResults&data_field_key=contact_email_1,contact_email_2,email_contact"), true); | |
$service_bodies = json_decode(get("$root_server/client_interface/json/?switcher=GetServiceBodies"), true); |
This file contains hidden or 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
2020-11-24T03:45:37.195Z [DEBUG] plugin.terraform-provider-aws_v3.17.0_x5: 2020/11/24 03:45:37 [DEBUG] [aws-sdk-go] DEBUG: Validate Response lambda/GetFunctionCodeSigningConfig failed, attempt 0/25, error AccessDeniedException: | |
2020-11-24T03:45:37.195Z [DEBUG] plugin.terraform-provider-aws_v3.17.0_x5: status code: 403, request id: 219fsd-ff81-4ba4-a7dc-58zasb9289 | |
2020/11/24 03:45:37 [ERROR] eval: *terraform.EvalRefresh, err: error getting Lambda Function (test-lambda) code signing config AccessDeniedException: | |
status code: 403, request id: 2sfg74-ff81-4ba4-a7dc-58dgf5b9289 | |
2020/11/24 03:45:37 [ERROR] eval: *terraform.EvalSequence, err: error getting Lambda Function (test-lambda) code signing config AccessDeniedException: | |
status code: 403, request id: 21sgf4-ff81-4ba4-a7dcgdf0805b9289 | |
2020/11/24 03:45:37 [DEBUG] [aws-sdk-go] {} |