Skip to content

Instantly share code, notes, and snippets.

View dalraf's full-sized avatar

Daniel Fonseca Alves dalraf

View GitHub Profile
@dalraf
dalraf / Escolha.py
Last active March 4, 2018 13:36
Qpython teste
import sl4a
import time
droid = sl4a.Android()
def speak(text):
droid.ttsSpeak(text)
while droid.ttsIsSpeaking()[1] == True:
time.sleep(1)
def listen():
@dalraf
dalraf / Backup Freenas
Last active January 20, 2017 19:41
Backup Freenas
rsync -rvt --delete -e "ssh -p 5252" --log-file=/var/log/backupdiario.log 192.168.1.1:/home /mnt/dados && echo 0 > /var/log/backupstatus || echo 1 > /var/log/backupstatus