Skip to main content

Posts

Showing posts from October, 2023

Windows update manually - Microsoft Apps not working

Error Code 0x8D050003 with Microsoft Store Step 1 Reset the Windows Update components manually. Stop BITS, cryptographic, MSI Installer and Windows Update Services. To do this, enter the following commands at the command prompt. 1. Press Windows + R, type Notepad and click OK; 2. Copy and paste the commands below into this new notebook: SC config trustedinstaller start=auto net stop bits net stop wuauserv net stop msiserver net stop cryptsvc net stop appidsvc Ren %Systemroot%\SoftwareDistribution SoftwareDistribution.old Ren %Systemroot%\System32\catroot2 catroot2.old regsvr32.exe /s atl.dll regsvr32.exe /s urlmon.dll regsvr32.exe /s mshtml.dll netsh winsock reset netsh winsock reset proxy dism /Online /Cleanup-image /ScanHealth dism /Online /Cleanup-image /CheckHealth dism /Online /Cleanup-image /RestoreHealth dism /Online /Cleanup-image /StartComponentCleanup Sfc /ScanNow net start bits net start wuauserv net start msiserver net start cryptsvc net start appidsvc 3. Click the File tab...

Boto3 - Lambdas-handler py files

 import boto3 s3_client = boto3.client('s3') def handler(event, context):     response = s3_client.list_buckets()     list = []     for bucket in response['Buckets']:             list.append(bucket['Name'])             print(f' {bucket["Name"]}')     return list # def handler(event, context): #     s3_client = boto3.client('s3') #     response = s3_client.list_buckets() #     return response['Buckets']

AWS CDK Command line

 To test if you already have an active session, run the following AWS CLI command ``aws sts get-caller-identity`` Build a new CDK app using typescript programming language ``cdk init app --language=typescript`` Create the necessary resources for our cdk app (mainly an S3 bucket for our environment) ``cdk bootstrap`` Print the CloudFormation template of the stack ``cdk synthesize`` List all stacks ``cdk list`` Deploy your stack ``cdk deploy`` Compares the specified stack and its dependencies with the deployed stacks   ``cdk diff`` Destroy your stack (Delete) ``cdk destroy`` Checks your cdk project for potential errors ``cdk doctor``

AWS CLI and command line commands on Windows, Mac, Linux

  How do you open the command line interface on your system? Each major operating system has a slightly different way of access the command line interface (CLI). Windows Here is how you open the CLI in Windows on Windows 8 or beyond: Press the Windows key and “S” Type “cmd” into the search field Right-click “Command Prompt” and select “Run as Administrator” You can now enter a command prompt Mac Here is how you open the CLI on Mac: Locate the Finder application, which is usually on your toolbar Move through /Applications/Utilities Select “Terminal” You can now enter a command prompt Linux Linux has a simple way of accessing the CLI: use the shortcut CTRL+ALT+T. Alternatively, you can use ALT+F2 and then enter “gnome-terminal.” What are some common command line interface commands? A command line interface (CLI) has many different commands for different types of tasks. The commands vary slightly between operating systems. We give several different command examples next. File system c...