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
| # Get current date in YYYY-MM-DD format | |
| $currentDate = Get-Date -Format "yyyy-MM-dd" | |
| # Get the current folder name | |
| $currentFolderName = Split-Path -Path (Get-Location).Path -Leaf | |
| # Define output file path one folder above the current location with date prefix | |
| $parentFolder = Split-Path -Path (Get-Location).Path -Parent | |
| $outputFile = Join-Path -Path $parentFolder -ChildPath "$currentDate-$currentFolderName`_merged.txt" |
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 pandas as pd | |
| import os | |
| from datetime import datetime, timedelta | |
| import openpyxl | |
| from openpyxl.styles import PatternFill, Font, Alignment, Border, Side | |
| from openpyxl.utils import get_column_letter | |
| from openpyxl.chart import BarChart, Reference, LineChart | |
| from openpyxl.worksheet.datavalidation import DataValidation | |
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 | |
| set -e | |
| echo "=== Step 1: Preserve critical configs ===" | |
| # Backup SSH and network configs | |
| cp -r /etc/ssh /root/ssh_backup | |
| cp -r /etc/netplan /root/netplan_backup 2>/dev/null || true | |
| cp /etc/network/interfaces /root/interfaces_backup 2>/dev/null || true | |
| echo "=== Step 2: Stop and disable non-essential services ===" |
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
| """ | |
| Advanced Crowd Estimator — robust OSM land-use analysis | |
| """ | |
| import json, time, webbrowser, requests | |
| from threading import Timer | |
| from flask import Flask, request, jsonify, render_template_string | |
| from pyproj import Geod, Transformer | |
| from shapely.geometry import Polygon, LineString | |
| from shapely.ops import unary_union, transform as shp_transform |
OlderNewer