1
Tutorials / PHP - Upgrade all packages
Last post by tino -Code: [Select]
dpkg -l | grep php8.0 | awk '{print $2}' | sed -e 's/8.0/8.1/' | xargs apt install
dpkg -l | grep php8.0 | awk '{print $2}' | sed -e 's/8.0/8.1/' | xargs apt install
esptool.py erase_flash
https://github.com/espressif/ESP8266_NONOS_SDK/archive/v3.0.1.tar.gz
esptool.py -p /dev/tty.usbserial-A603AYEQ --chip esp8266 write_flash --flash_size 2MB-c1 0x00000 boot_v1.2.bin 0x01000 at/1024+1024/user1.2048.new.5.bin 0x1fc000 esp_init_data_default_v05.bin 0xfe000 blank.bin 0x1fb000 blank.bin 0x1fe000 blank.bin
pip install esptool
https://github.com/espressif/ESP8266_NONOS_SDK/archive/v2.2.1.zip
esptool.py --port /dev/tty.usbserial-A603AYEQ --baud 115200 write_flash --flash_mode dio 0x00000 boot_v1.2.bin 0x01000 at/512+512/user1.1024.new.2.bin 0x7B000 blank.bin 0x3FC000 esp_init_data_default_v05.bin 0x7E000 blank.bin
find . -type f -name '*.php' -exec php -l {} \;
find /home/tino/YAPortal/ -type f -exec sed -i 's/@version 1.0.1/@version 1.0.2/g' {} \;
find . -type f -name '*.txt' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -iname '*.txt' -type f -exec sed -i '' 's/[[:space:]]\{1,\}$//' {} \+