Skip to content

Instantly share code, notes, and snippets.

@Baha2Odeh
Baha2Odeh / mkteslaemmcimg.sh
Created January 16, 2023 12:56 — forked from appleguru/mkteslaemmcimg.sh
Tesla Model S/X MCU1 eMMC image creator
#!/bin/bash
#
# Create a 8GB eMMC image for Tesla Model S/X MCU1
#
# Example usage: ./mkteslaemmcimg.sh ./vinXXXXX.img ./develop-2019.20.2.1-16-5659e07dfd.img
#
set -e
FIRMWARE=$2
IMAGE=$1
@Baha2Odeh
Baha2Odeh / mkteslaemmcimg.sh
Created January 9, 2023 11:34 — forked from wido/mkteslaemmcimg.sh
Tesla Model S/X MCU1 eMMC image creator
#!/bin/bash
#
# Create a 8GB eMMC image for Tesla Model S/X MCU1
#
# Example usage: ./mkteslaemmcimg.sh ./vinXXXXX.img ./develop-2019.20.2.1-16-5659e07dfd.img
#
set -e
FIRMWARE=$2
IMAGE=$1
@Baha2Odeh
Baha2Odeh / CronController.php
Created July 26, 2022 18:28
YII2 CronController
<?php
// console/controllers/CronController.php
namespace console\controllers;
use Yii;
use yii\console\Controller;
use yii\console\Exception;
use yii\helpers\FileHelper;