dashboards presentation 26.03.2025

Dashboards: https://mbld-1.signalfx.com/#/dashboards
Garbage Collector Metrics: https://mbld-1.signalfx.com/#/dashboard/Gg1GA19CkDY?groupId=Gg1GA19CkAE&configId=GNpG3ASAAAs&startTime=-15m&endTime=Now

Monitoring Concept old page: https://mbld-confluence.dot.i.mercedes-benz.com/pages/viewpage.action?pageId=169150924
Monitoring Concept new page: https://mbld-confluence.dot.i.mercedes-benz.com/pages/viewpage.action?pageId=165415435

MCP開発まとめ(Docker)

# 作成手順

3394. Check if Grid can be Cut into Sections

You are given an integer n representing the dimensions of an n x n grid, with the origin at the bottom-left corner of the grid. You are also given a 2D array of coordinates rectangles, where rectangles[i] is in the form [startx, starty, endx, endy], representing a rectangle on the grid. Each rectangle is defined as follows: (startx, starty): The bottom-left corner of the rectangle. (endx, endy): The top-right corner of the rectangle. Note that the rectangles do not overlap. Your task is to determine if it is possible to make either two horizontal or two vertical cuts on the grid such that: Each of the three resulting sections formed by the cuts contains at least one rectangle. Every rectangle belongs to exactly one section. Return true if such cuts can be made; otherwise, return false.
/**
 * Function to check if two horizontal or two vertical cuts can divide the grid
 * into three sections, with each section containing at least one rectangle.
 * @param {number} n - The dimensions of the n x n grid (not directly used here).
 * @param {number[][]} rectangles - Array of rectangles where each rectangle is defined as [startx, starty, endx, endy].
 * @return {boolean} - Returns true if valid cuts can be made; otherwise, false.
 */
var checkValidCuts = function(n, rectangles) {
    

SHORTCODES: 'check-*-against-today' based on CPT entry ACF dates

/* TEMPLATE for creating a shortcode to query related data as a view
 * [check-auditionformsubmissiondate-against-today]
 * [check-auditionstartdate-against-today]
 * [check-auditionenddate-against-today]
 * [check-ticketsonsaledate-against-today]
 * [check-performancestartdate-against-today]
 * [check-performanceenddate-against-today]
 * 
 * [check-seasonpassstartdate-against-today]
 * [check-seasonpassenddate-against-today]
 * [check-minipassstartdate-against-today]
 * [check-minipa

iCal feed URL and list by custom dates/slots with theme files

/* TEMPLATE for creating a shortcode to query related data as a view
 * [output-show-date-time-list]
 */

function shortcode__output_show_date_time_list($atts) {
	global $post;
	$html = '';
	
	$rows = get_field('performance_dates_times');
	if( $rows ) {
		$i=1;
		$html .= '<ul class="performance_dates_times_list">';
		foreach( $rows as $row ) {
			$html .= '<li>';
			$html .= $row['date'];
			$html .= ' at ';
			$html .= $row['time'];
			$var = do_shortcode( "[output-ical-feed-u

UABB Adv Post Mod > querying on ACF enddate field

/*
 * Advanced Query Parameters filtering for UABB Posts module
 */ 
function pastShows_uabb_blog_posts_query_args( $args, $settings ) {
	if ( $settings->id == 'past-shows-page' ) {
		$args['meta_key']       = 'performance_start_date';
		$args['order']			= 'DESC';
		$args['orderby']		= 'meta_value';
		$args['meta_query']     = 
			array( 
			'key'     => 'performance_end_date',
			'compare' => '<',
			'value' => date('Y-m-d').' 00:00:00',
			'type'  => 'DATE' 
		);
		$args['posts_

ImageMagick

comprime le immagini in webp mantenendo le immagini originali all'80%:

for file in *.{jpg,png}; do 
    magick "$file" -quality 80 "${file%.*}.webp"; 
done

All Namespaces

kubectl get pods --all-namespaces --field-selector=status.phase=Succeeded
  - Gets all pods in "Completed" state.
  
kubectl delete pod --all-namespaces --field-selector=status.phase=Succeeded
  - Deletes all pods in "Completed" state.
  
kubectl get pods --all-namespaces --field-selector=status.phase!=Running
  - Gets pods NOT in "Running" state.

Workspace

aws workspaces describe-workspaces

Snapshot restore

Absolutely! Here's a **clean, step-by-step reproducible documentation** based on everything you’ve done — including config files, Docker commands, and curl operations — to set up:

---

# 📘 Elasticsearch Snapshot & Restore: Single Node ➝ HA Cluster (3 Nodes)

> 🧑‍💻 Author: `odysol-test`  
> 💾 Setup Path: `/home/odysol-test/new-es-cluster`  
> 🔒 Password: `elastic / 0dy$$321`

---

## 📂 Folder Structure

```bash
/home/odysol-test/new-es-cluster/
├── data/                  # Single-node ES data
├─

Markdown syntax

https://www.markdownguide.org/basic-syntax/

MBFSDF-30964-Investigate/Define: Access-security for MBB Monitoring Services

Example: bird-bffe<br>
See README.md

docker_ssl_certbot

_

Certbot Docker install SSL



docker exec -it certbot certbot certonly --webroot \
  -w /var/www/certbot \
  -d jcadima.dev -d www.jcadima.dev -d laracms.jcadima.dev -d www.laracms.jcadima.dev \
  --noninteractive --agree-tos --email your-email@example.com

  

After running that command, check if the certificate files exist
docker run --rm -v certs-data:/etc/letsencrypt alpine ls -l /etc/letsencrypt/live/jcadima.dev


docker restart main-nginx


curl -I http://jcadima.dev/.well-known/acme-challenge/test.txt

Submit Score

Submit Score
 public void SubmitScore()
    {
        Debug.Log("Submit Score...");
        if (userName == "")
        {
            Debug.Log("No User Name Found");
        }
        else
        {
            if ((int)elapsedTime > 0)
            {
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(API_URL);
                request.Method = "POST";

                Leaderboard leaderboard = new Leaderboard
                {
                    Id = Guid.Empty,