aws iam list-account-aliases
aws iam list-users
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
_ "os" | |
"regexp" | |
"fyne.io/fyne/v2" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"regexp" | |
) |
# frozen_string_literal: true | |
require 'shoryuken' | |
require 'aws-sdk-sqs' | |
# `bundle exec rails runner "P20230511GenRemoveQueue::Patch.execute"` | |
class P20230511GenRemoveQueue::Patch | |
class << self |
# frozen_string_literal: true | |
# `bundle exec rails runner "P20230510GenItemCustom::Patch.execute"` | |
class P20230510GenItemCustom::Patch | |
class << self | |
def execute | |
# gen CustomerCustomItem for Customer | |
Rails.logger.info("======== Start P20220518SetCustomReportConditionsUserIdsIfAllSelect #{Time.current} ==========") | |
Audits::AuditSession.set_skip_audit(1) |
1. List all route | |
http://localhost:3000/rails/info/routes | |
explain the route | |
https://guides.rubyonrails.org/routing.html#path-and-url-helpers |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"sync/atomic" | |
"time" |
/* | |
* Copyright 2020 Google Inc. All Rights Reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
protected CustomTabsSession getSession(CustomTabsClient client) { | |
return client.newSession((CustomTabsCallback) null, 96375); | |
} | |
public void onCustomTabsServiceConnected(ComponentName componentName, CustomTabsClient client) { | |
CustomTabsSession mSession = MainActivity.this.getSession(client); | |
if (mSession == null) { | |
Toast.makeText(MainActivity.this, | |
"Couldn't get session from provider.", Toast.LENGTH_LONG).show(); |
Reference documents https://aws.amazon.com/premiumsupport/knowledge-center/read-access-objects-s3-bucket/