Skip to content

Instantly share code, notes, and snippets.

View misskecupbung's full-sized avatar
💤
Thinking ...

Ananda Dwi Ae misskecupbung

💤
Thinking ...
View GitHub Profile
@misskecupbung
misskecupbung / nfw_amazon_eks.md
Last active May 3, 2024 02:08
AWS Network Firewall + Multi-Cluster Amazon EKS

AWS Network Firewall + Multi Cluster Amazon EKS

VPC

  • Go to https://console.aws.amazon.com/ .
  • In a search bar > VPC
  • Go to Your VPC > Create VPC
  • Fill the appropriate values such as :
    • Name
    • IPv4 CIDR
  • Number of Availability Zones (AZs)
@misskecupbung
misskecupbung / IEProxy.ps1
Created December 11, 2023 16:23 — forked from kkbruce/IEProxy.ps1
Get-Set-Remove IE Proxy Settings by PowerShell
# 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
<?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();

Task 1. Download the monolith code and build your container

git clone https://github.com/googlecodelabs/monolith-to-microservices.git

cd ~/monolith-to-microservices
./setup.sh

cd ~/monolith-to-microservices/monolith
npm start
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