Navigation Menu

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
Created April 22, 2024 15:02
AWS Network Firewall + Multi-Cluster Amazon EKS

Currently i’m still cooking the dishes.

@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