Settings Page

import React, { useState, useRef, useEffect } from 'react';
import {
    View,
    Text,
    TouchableOpacity,
    Image,
    ScrollView,
    Animated,
    Modal,
} from 'react-native';
import { MaterialIcons, Feather, Ionicons } from '@expo/vector-icons';
import * as ImagePicker from 'expo-image-picker';
import "../global.css";
import TopNav from '../components/topNav.jsx';
import BottomNav from '../components/bottomNav.jsx';
import PersonalInfoModal from '../components/PersonalI

Fetch "DELETE"

export async function DeleteUpdate(id) {
    try {

        const token = await AsyncStorage.getItem("access");
        if (!token) {
            throw new Error("Authentication failed!");
        }

        const response = await fetch(`${API_URL}/api/updates/deleteupdate/${id}`, {
            method: "DELETE",
            headers: {
                "Authorization": `Bearer ${token}`,
            }
        });

        if (response.ok) {
            return { success: true };
  

GSM

#define TINY_GSM_MODEM_SIM800
#include <TinyGsmClient.h>
#include <HardwareSerial.h>
#include <Arduino.h>

// Define pins for SIM800
// ESP32 RX (connects to SIM800 TX) -> GPIO 17
// ESP32 TX (connects to SIM800 RX) -> GPIO 16
#define SIM800_RX_PIN 17
#define SIM800_TX_PIN 16

// APN data
const char APN[] = "internet.vivacom.bg"; // CHANGED TO VIVACOM APN because SIM is Vivacom
const char APN_USER[] = "VIVACOM"; 
const char APN_PASS[] = "VIVACOM";

// SpringBoot server data
const char POST_HOST[

Fetch "PATCH"

export async function EditUpdate(id) { // Patch updates
    try {

        const token = await AsyncStorage.getItem("access");
        if (!token) {
            throw new Error("Authentication failed!");
        }

        const response = await fetch(`${API_URL}/api/updates/updateupdate/${id}`, {
            method: "PATCH",
            headers: {
                "Authorization": `Bearer ${token}`,
                "Content-Type": "application/json"
            }
        });

   

Fetch "GET" with id

export async function GetUpdate(id) { // GET one fetch
    try {
        const response = await fetch(`${API_URL}/api/updates/getupdate/${id}`, {
            method: "GET",
        });

        if (response.ok) {
            const data = await response.json();
            return data;
        } else {
            throw new Error("Failed to get update");
        }

    } catch (error) {
        console.error('Error fetching update:', error);
        throw error;
    }
}

Fetch "Get"

export async function GetUpdates() { // GET many fetch
    try {

        const response = await fetch(`${API_URL}/api/updates/getall`, {
            method: "GET",
        });

        if (response.ok) {
            const data = await response.json();
            return data;
        } else {
            throw new Error("Failed to get updates");
        }

    } catch (error) {
        console.error('Error fetching updates:', error);
        throw error;
    }
}

Fetch "Post"

export async function AddUpdate(title, article, image) {
    try {
        const token = await AsyncStorage.getItem("access");
        if (!token) {
            throw new Error("Authentication failed!");
        }

        const formData = new FormData();
        formData.append('title', title);
        formData.append('article', article);

        const response = await fetch(`${API_URL}/api/updates/createupdate`, {
            method: "POST",
            headers: {
              

Fetch "Post" with image

export async function AddUpdate(title, article, image) {
    try {
        const token = await AsyncStorage.getItem("access");
        if (!token) {
            throw new Error("Authentication failed!");
        }

        if (!image) {
            throw new Error("Image is required!");
        }

        const formData = new FormData();
        formData.append('title', title);
        formData.append('article', article);
        
        formData.append('image', {
            ur

mastra v4

# Build Mastra.ai Digital Agency with Multi-Agent System (Long-Horizon, Production-Oriented)

# Execution Mode: Long-Horizon Builder (GPT-5.4)

You are building this as a multi-week production system, not a quick prototype.

## Operating Rules
1. Plan before coding:
   - Produce a phased implementation plan with milestones, dependencies, and risks.
   - Keep a living task board in markdown (`docs/plan.md`) and update progress continuously.

2. Work in vertical slices:
   - For each slice, implem

Secure Boot PowerShell Module

function Add-SecureBootUEFISignatureList {
    <#
.SYNOPSIS
    Gets details about the UEFI Secure Boot-related variables.

.DESCRIPTION
    Gets details about the UEFI Secure Boot-related variables (db, dbx, kek, pk).

.PARAMETER Variable
    The UEFI variable to retrieve (defaults to db)

.EXAMPLE
    Get-UEFISecureBootCerts

.EXAMPLE
    Get-UEFISecureBootCerts -db

.EXAMPLE
    Get-UEFISecureBootCerts -dbx

.LINK
    https://oofhours.com/2021/01/19/uefi-secure-boot-who-c

I2C scanner

#include <Arduino.h> 
#include <Wire.h>

void setup()
{
  Serial.begin(115200);
  Wire.begin(8, 9); // SDA=8, SCL=9

  Serial.println("I2C Scanner...");

  for (byte address = 1; address < 127; address++)
  {
    Wire.beginTransmission(address);
    byte error = Wire.endTransmission();

    if (error == 0)
      Serial.printf("Device found at: 0x%02X\n", address);
  }

  Serial.println("Scan complete.");
}

void loop() {}

nvidia.nim

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

3643. Flip Square Submatrix Vertically

You are given an m x n integer matrix grid, and three integers x, y, and k. The integers x and y represent the row and column indices of the top-left corner of a square submatrix and the integer k represents the size (side length) of the square submatrix. Your task is to flip the submatrix by reversing the order of its rows vertically. Return the updated matrix.
/**
 * @param {number[][]} grid
 * @param {number} x
 * @param {number} y
 * @param {number} k
 * @return {number[][]}
 */
var reverseSubmatrix = function(grid, x, y, k) {
    // We are flipping a kxk square whose top-left corner is (x, y)
    // A vertical flip means reversing the order of its rows.

    // 'top' starts at the first row of the square
    let top = x;

    // 'bottom' starts at the last row of the square
    let bottom = x + k - 1;

    // Continue swapping rows until the pointe

3643. Flip Square Submatrix Vertically

You are given an m x n integer matrix grid, and three integers x, y, and k. The integers x and y represent the row and column indices of the top-left corner of a square submatrix and the integer k represents the size (side length) of the square submatrix. Your task is to flip the submatrix by reversing the order of its rows vertically. Return the updated matrix.
/**
 * @param {number[][]} grid
 * @param {number} x
 * @param {number} y
 * @param {number} k
 * @return {number[][]}
 */
var reverseSubmatrix = function(grid, x, y, k) {
    // We are flipping a kxk square whose top-left corner is (x, y)
    // A vertical flip means reversing the order of its rows.

    // 'top' starts at the first row of the square
    let top = x;

    // 'bottom' starts at the last row of the square
    let bottom = x + k - 1;

    // Continue swapping rows until the pointe

Neo4j — Command Reference

# Neo4j AuraDB — Command Reference

## Connection Details

| Property       | Value                                  |
|----------------|----------------------------------------|
| **Database**   | dev                                    |
| **Username**   | neo4j                                  |
| **Password**   | jepVtKm1rOwlmNeDEQMqo4eani96Ig21vFab8oMw8Jo |
| **URI**        | `neo4j+s://0435400a.databases.neo4j.io` |

### Connecting to the Server

```cypher
:server connect
```

---

## 1. Ba

Puppet Module - Reboot

# Puppet Module: `reboot`

## Overview

Triggers a system reboot on nodes that have been running for more than 30 days. The reboot command is OS-aware and resolves to the appropriate shutdown utility for the managed node's kernel.

---

## Source

```puppet
class reboot {
  if $facts[kernel] == "windows" {
    $cmd = "shutdown /r"
  } elsif $facts[kernel] == "Darwin" {
    $cmd = "shutdown -r now"
  } else {
    $cmd = "reboot"
  }
  if $facts[uptime_days] > 30 {
    exec { 'reboot':
      comma