uci set network.lan.ipaddr=x.x.x.x
uci commit
ifup lan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo apt install libnotify-bin libnotify-dev python-gobject | |
# python pomodoro.py "do homework" | |
import sys | |
from time import sleep | |
from gi.repository import Notify | |
Notify.init("App Name") | |
Notify.Notification.new(sys.argv[-1]).show() | |
Notify.Notification.new("Pomodoro Start!").show() | |
for i in range(25): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import sys | |
import inspect | |
from twisted.internet.task import LoopingCall | |
from twisted.internet import reactor | |
from twisted.internet.threads import deferToThread | |
from twisted.logger import textFileLogObserver | |
from twisted.python import log | |
log.addObserver(textFileLogObserver(sys.stdout)) |