Difficoltà | Domanda | Livello di Dettaglio Tecnico | Risposta |
---|---|---|---|
Facile (1-5) | Cosa intendi per "Architettura di Soluzione"? | Basso | L'architettura di soluzione è un approccio per progettare, descrivere e gestire una soluzione tecnica completa. |
Puoi descrivere un recente progetto su cui hai lavorato e il tuo ruolo in esso? | Basso |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PyMod specializes in processing Python scripts, suggesting modularization, and providing complete refactoring suggestions without placeholders. When given a Python script, it will analyze the code, identify potential areas for modularization, and offer a detailed workflow and full code for implementation, always ensuring that existing functionalities are maintained. It can also help troubleshoot errors based on user feedback, suggesting fixes and improvements to ensure smooth refactoring. Responses should emphasize precision, accuracy, ease of debugging, and modularity. | |
When modularizing a script, PyMod will: | |
1. Create a new directory named similarly to the script being modularized, using a logical naming convention to avoid conflicts. | |
2. Ensure that the original script remains usable to maintain compatibility with other scripts that may call it. | |
3. Always manage the existing script in its position (which must be the root repo folder unless specified otherwise) and link it to its new folder and modularized s |
- Top 7 outages: https://readitquik.com/articles/cloud-3/top-7-aws-outages-that-wreaked-havoc/
- Main early outages: https://docs.google.com/spreadsheets/d/1Gcq_h760CgINKjuwj7WuRmLXHIdvsUdzNQCg0g4QvVs/edit?gid=0#gid=0
- Latest main outage: https://www.datacenterknowledge.com/outages/amazon-s-cloud-computing-service-experiences-regional-outage
- Example: https://aws.amazon.com/blogs/architecture/creating-a-multi-region-application-with-aws-services-part-1-compute-and-security/
- RDS read replica and promoting to Production for multi region DR: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RDS_Fea_Regions_DB-eng.Feature.CrossRegionReadReplicas.html
- Diagram: https://d2908q01vomqb2.cloudfront.net/fc074d501302eb2b93e2554793fcaf50b3bf7291/2022/03/31/Figure-4.-Building-an-application-with-AWS-multi-Region-services-using-services-covered-in-Part-1.png
- Multi-Region DR: https://d2908q01vomqb2.cloudfront.net/fc074d501302eb2b93e2554793fcaf50b3bf7291/2021/04/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>AI chatbot encrypter/decrypter</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | |
<style> | |
body { | |
background-color: #f7f7f7; |
Hi, on every your messages in the first row put such informations then your message content must be shown after a newline, as this example (replace values with real obtained values)
"⚙️ 1 | 🆔 Funny Name | 💻 developer | 🎚️ 50% | 🐞 0 | 🛡️ yes | 🚀 no | 🔠 1323"
header fields explanation:
- Iteration Number (⚙️): To track the number of messages exchanged.
- Label ID (🆔): A random funny name.
- Mode (💻): To indicate the mode in which I'm operating (developer, as you mentioned).
- Skill Level (🎚️): To indicate the craziness of the coding skills being simulated.
- Create a new folder in your WordPress
wp-content/plugins
directory and name itimage-optimizer
. - Inside this folder, create a PHP file named
image-optimizer.php
and paste the following code:
<?php
/**
* Plugin Name: Image Optimizer
* Description: Optimizes images in a given directory without loss of quality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import requests | |
from datetime import datetime | |
import os | |
# SQLite setup | |
DB_PATH = "blacklisted.db" | |
def setup_db(): | |
conn = sqlite3.connect(DB_PATH) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sampling of security headers | |
http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" | |
http-response set-header X-Frame-Options "SAMEORIGIN" | |
http-response set-header X-XSS-Protection "1; mode=block" | |
http-response set-header Referrer-Policy "no-referrer-when-downgrade" | |
http-response set-header X-Content-Type-Options "nosniff" | |
http-response set-header Referrer-Policy "strict-origin-when-cross-origin" | |
http-response set-header Permissions-Policy "geolocation=(), microphone=()" | |
http-response set-header Content-Security-Policy-Report-Only "" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
VBR="1500k" | |
FPS="30" | |
QUAL="veryfast" | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" | |
KEY="" | |
VIDEO_SOURCE="/home/ubuntu/video3.mp4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// use: http(s)://PHP_HOST/covid19_stats.php?date=03-03-2020 | |
// data source: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_reports | |
error_reporting(E_ERROR); | |
$url = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/".$_GET["date"].".csv"; | |
$data = file_get_contents($url); | |
file_put_contents("last.csv", $data); | |
$csv = array_map('str_getcsv', file('last.csv')); | |
foreach($csv as $row) { |