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 boto3 | |
import csv | |
from io import StringIO | |
def get_running_emr_clusters(region): | |
""" | |
Fetches the IDs of EMR clusters that are currently running in the specified region. | |
Parameters: | |
- region (str): AWS region where the EMR clusters are located. |
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
-- Assuming your existing table is named 'old_table' | |
-- and you want to rename it to 'new_table' | |
ALTER TABLE old_table RENAME TO new_table; |
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
UNLOAD ('SELECT * FROM your_redshift_table') | |
TO 's3://your-bucket/path/to/export/' | |
IAM_ROLE 'arn:aws:iam::your-account-id:role/your-redshift-role' | |
FORMAT AS PARQUET; |
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>Topicos Site is Online</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f0f0f0; |
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
resource "azurerm_resource_group" "example" { | |
name = "example-resources" | |
location = "West Europe" | |
} | |
resource "azurerm_template_deployment" "example" { | |
name = "acctesttemplate-01" | |
resource_group_name = azurerm_resource_group.example.name | |
template_body = <<DEPLOY |
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
grep -r . -d skip -l * |
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
# Página de Inicio Alternativa | |
DirectoryIndex resources/views/inicio/inicio.php index.php index.html |
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
# Parcial #1 Seguridad Informática | |
Documento de trabajo: https://utpac-my.sharepoint.com/:w:/g/personal/gabriel_diaz4_utp_ac_pa/ER66HkSPe39Ji9bUathyXYYBSW-ayDjhpjfvWMi_6OEhAw | |
Integrantes | |
- Fernando Cutire | |
- Gabriel Díaz | |
- Jonathan Gamero |
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
<form action="language_switcher.php" method="post"> | |
<select name="lang"> | |
<option value="en"<?php if( $_COOKIE["language"] == "en" ) { echo " selected"; } ?>>English</option> | |
<option value="ru"<?php if( $_COOKIE["language"] == "ru" ) { echo " selected"; } ?>>Russian</option> | |
</select> | |
<input type="submit" value="Select Language"> | |
</form> | |
<p>Language: <?php if( isset( $_COOKIE["language"] ) ) { echo $_COOKIE["language"]; } else { echo "<em>not set</em>"; } ?></p> |
NewerOlder