Note
- Session ID:
df243956-da99-4cea-979a-1696b2a7c00f - Started: 2026-10-07T12:35:00.925Z
- Duration: 7m 25s
- Exported: 2026-10-07T12:43:17.063Z
| #!/usr/bin/env bash | |
| cat <<'EOF' | |
| LIS (Library of Iterative Solvers) - common compile & run examples | |
| 1) Build LIS test programs (example): | |
| module load lis | |
| mpicc -DUSE_MPI -I${mkLisInc} -L${mkLisLib} -llis test1.c -o test1 | |
| mpicc -DUSE_MPI -I${mkLisInc} -L${mkLisLib} -llis etest1.c -o eigen1 | |
| 2) Run LIS-based linear solver (examples): |
| # Container related init | |
| source /u/sw/etc/bash.bashrc | |
| module load gcc-glibc | |
| module load lis | |
| # Customizations | |
| lis_compiled_path="/home/emiliodallatorre/Documents/PoliMi/NLA/compiled_lis" | |
| mpirun_prefix="mpirun -n 4" | |
| # Aliases section |
| #!/bin/bash | |
| # Configuration | |
| WEBSITE_PATH="/var/www/jeitaly.org" | |
| BACKUP_DIR="$HOME/backup" | |
| TIMESTAMP=$(date +"%Y%m%d_%H%M%S") | |
| BACKUP_FOLDER="$BACKUP_DIR/$TIMESTAMP" | |
| DB_DUMP_FILE="jeitaly_db_$TIMESTAMP.sql" | |
| WEBSITE_ARCHIVE="jeitaly_website_$TIMESTAMP.tar.gz" |
| version: "4.0" | |
| services: | |
| # MySQL Database | |
| database: | |
| image: mysql:latest | |
| volumes: | |
| - database_data:/var/lib/mysql | |
| restart: always | |
| environment: |
| CREATE DATABASE wordpress; | |
| CREATE USER wordpress@localhost IDENTIFIED BY '<your-password>'; | |
| GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON wordpress.* TO wordpress@localhost; | |
| FLUSH PRIVILEGES; | |
| quit |
| # Create VM istance and log into it | |
| multipass launch --name jetop-wordpress | |
| multipass shell jetop-wordpress | |
| # Update packages | |
| sudo apt update && sudo apt upgrade -y | |
| # Install nginx and net-tools | |
| sudo apt install nginx net-tools |
| import 'package:cloud_firestore/cloud_firestore.dart'; | |
| import 'package:geoflutterfire2/geoflutterfire2.dart'; | |
| class LocationHelper { | |
| static Map<String, dynamic> geoFirePointToJson(final GeoFirePoint? geoFirePoint) { | |
| return geoFirePoint?.data; | |
| } | |
| static GeoFirePoint? geoFirePointFromJson(final Map<String, dynamic>? json) { | |
| if (json == null) { |
| from os import walk | |
| from os.path import exists | |
| directories: list = walk(".") | |
| key_properties_files: dict = {} | |
| for directory in directories: | |
| # Check if it is a flutter project | |
| if "pubspec.yaml" in directory[2]: | |
| # Check if key.properties exists |
| #!/bin/bash | |
| rm -rf wp-includes | |
| rm -rf wp-admin | |
| wp core download --skip-content --force --allow-root | |
| wp plugin install $(wp plugin list --field=name --allow-root) --force --allow-root | |
| wp theme install $(wp theme list --field=name --allow-root) --force --allow-root | |
| find wp-content/uploads -name "*.php" -delete |