Используйте менеджер профилей, чтобы создать новый профиль Firefox.
LINUX:
В терминале (консоли) Linux исполните команду от обычного пользователя:
firefox -P
require 'webrick' | |
require 'fileutils' | |
if ARGV.length != 0 | |
root = ARGV.first.gsub('\\', '/') | |
else | |
root = '.' | |
end | |
BACKUP_DIR = 'bak' |
while sleep 2;do | |
rm /tmp/state.xml | |
wget -q -O /tmp/state.xml http://192.168.0.101/state.xml | |
test -e /tmp/state.xml || continue | |
INPUTS=`cat /tmp/state.xml|grep -e "^<in>[0-1]*</in>"|sed 's/[><]/\n/g'|grep -v in|sort|tail -n 1` | |
RELAYS=`cat /tmp/state.xml|grep -e "^<rele>[0-1]*</rele>"|sed 's/[><]/\n/g'|grep -v rele|sort|tail -n 1` | |
POWER_NVIDIA=`echo $INPUTS|cut -c 1` | |
POWER_NUC=`echo $INPUTS|cut -c 2` | |
POWER_BTN=`echo $INPUTS|cut -c 6` | |
POWER_IMX6=`echo $RELAYS|cut -c 1` |