Skip to content

Instantly share code, notes, and snippets.

View junedkhatri31's full-sized avatar

Juned Khatri junedkhatri31

  • Mumbai
View GitHub Profile
@junedkhatri31
junedkhatri31 / recreate-service.py
Last active January 25, 2022 10:09
This is a script helps to add propagateTags property to AWS ECS service by re-creating it.
'''
This is a script helps to add propagateTags property to AWS ECS service by re-creating it.
Before you run the script,
Make sure you understand script
Change tags, cluster and service
It is recommented to set desired tasks to 0 to service
Requirements:
@junedkhatri31
junedkhatri31 / windows11.md
Created November 19, 2021 17:16
Fix This PC can’t run Windows 11

Fix: This PC can’t run Windows 11

If you get this message trying to install Windows 11, you can bypass it with the following steps:

  1. Press Shift+F10 to open Command Prompt and type in regedit.exe to launch Registry Editor.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\Setup
  3. Right click on the Setup key on the left size and choose New -> Key.
  4. Create a key named LabConfig
  5. Select the LabConfig key.
  6. Create two new values: Choose New -> DWORD (32-bit) and create BypassTPMCheck and BypassSecureBootCheck. Set both values to 1.
@junedkhatri31
junedkhatri31 / qemu.sh
Created October 30, 2020 17:02
Boot VM using qemu
### create_storage.sh
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "You must enter exactly 1 command line arguments"
fi
qemu-img create -f qcow2 storages/$1.img 10G
### start_vm.sh
#!/bin/bash
if [ "$#" -ne 1 ]; then
@junedkhatri31
junedkhatri31 / docker-compose.yml
Created October 17, 2020 18:06
Launch wordpress in AWS EC2 docker with RDS
version: "2"
services:
wp_web:
image: wordpress
restart: always
ports:
- "80:80"
environment:
WORDPRESS_DB_HOST: rds-host