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 | |
function getAWSSecretValue($secretName) | |
{ | |
$client = new SecretsManagerClient([ | |
'profile' => 'default', | |
'region' => 'ap-southeast-1', | |
'version' => '2017-10-17', | |
]); | |
try { | |
$result = $client->getSecretValue([ |
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
container_id="c9d1369a7478" # change container_id | |
start="docker exec -u root -t -i "$container_id | |
pass=$1 | |
command=$start" "$pass | |
RED='\033[0;31m' | |
Green='\033[0;32m' | |
NC='\033[0m' # No Color | |
#Color=$RED | |
Color=$Green | |
printf "${Color} $ ${command}${NC}\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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Input extends CI_Input { | |
/** | |
* Variables | |
* | |
*/ | |
protected $delete; |