PowerShell – Ordenar arquivos

gci . -r | sort Length -desc | select fullname -f 10

Get-ChildItem -Path c:\ -Recurse | Sort-Object Length -Descending | Select-Object length,name,directory -First 100 | Format-Table -AutoSize

Referencias:

  • How do I find the 10 largest files in a directory structure
    • https://stackoverflow.com/questions/798040/how-do-i-find-the-10-largest-files-in-a-directory-structure
  • Sort Files by Size PowerShell
    • https://gist.github.com/tomarbuthnot/1c148a3ad09641f6313d

Utilitários unidos – inotifywait and grep

#!/bin/bash
#
#    Copyright (C) 2017 Leonardo Serra 
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see .
#

echo $((2**24)) > /proc/sys/fs/inotify/max_user_watches

inotifywait -m -r -e modify --format '%w%f' /var/www| while read FILE
do
  case $FILE in
    *.php*)
#      echo 'Scanning file '$FILE' ...'
      if /bin/grep -q 'create_function' $FILE
      then
        date=`date '+%Y/%m/%d %H:%M:%S'`
        echo $date' Found create_function at file: '$FILE
      fi
  esac
done

Docker and Debian

Referencias:

  • Get Docker CE for Debian
    • https://docs.docker.com/install/linux/docker-ce/debian/
  • Docker and Debian
    • https://wiki.debian.org/Docker
  • Automating the creation of docker images
    • https://debian-administration.org/article/698/Automating_the_creation_of_docker_images

DIY/Hack substituindo memoria de um dispositivo Sonoff/ESP8266

  • Modulo Sonoff Básico
    • https://www.itead.cc/sonoff-wifi-wireless-switch.html
  • Modulo Sonoff Temperatura/Humidade
    • https://www.itead.cc/smart-home/sonoff-th.html
  • HowTo uso de six sonoff e modificações em memoria
    • http://www.superhouse.tv/21-six-sonoff-secrets/
  • HowTo/Doc sobre modificações em memoria sonoff/ESP8266
    • 32Mb ESP01 and Sonoff
    • http://tech.scargill.net/32mb-esp01/
  • Software de implementação  Sonoff-Tasmota [Melhor?]
    • Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE
      • https://github.com/arendst/Sonoff-Tasmota
  • Software de implementação Sonoff-MQTT-OTA-Arduino
    • Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE – Now EOL
      • https://github.com/arendst/Sonoff-MQTT-OTA-Arduino