Source: https://cloud.google.com/service-mesh/docs/security/egress-gateway-gke-tutorial
- Define variables
WORKING_DIRECTORY=<WORKING_DIRECTORY>
# Get IE Proxy Settings | |
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | |
# Set IE Proxy Settings | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 1 | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer -value [IPorDomain:Port] | |
# Remove IE Proxy Setings | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 0 | |
Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer |
Source: https://cloud.google.com/service-mesh/docs/security/egress-gateway-gke-tutorial
WORKING_DIRECTORY=<WORKING_DIRECTORY>
<?php | |
require_once "method.php"; | |
$mhs = new Mahasiswa(); | |
$request_method=$_SERVER["REQUEST_METHOD"]; | |
switch ($request_method) { | |
case 'GET': | |
if(!empty($_GET["id"])) | |
{ | |
$id=intval($_GET["id"]); | |
$mhs->get_mhs($id); |
<?php | |
require_once "koneksi.php"; | |
class Mahasiswa | |
{ | |
public function get_mhss() | |
{ | |
global $mysqli; | |
$query="SELECT * FROM tbl_mahasiswa"; | |
$data=array(); |
import boto3 | |
def GetInstanceRunning(): | |
client = boto3.client('ec2') | |
ec2_regions = [region['RegionName'] for region in client.describe_regions()['Regions']] | |
for region in ec2_regions: | |
ec2 = boto3.resource('ec2') | |
instances = ec2.instances.filter(Filters=[{'Name': 'instance-state-name', 'Values': ['running']}]) | |
return [instance.id for instance in instances] |
BACKUP_NAME = wp-backup | |
velero restore create --from-backup $BACKUP_NAME |
velero backup create wp-backup --include-namespace wordpress | |
velero backup get | |
velero backup describe wp-backup |