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
| found solution in https://superuser.com/questions/1658659/how-to-set-up-google-2fa-with-third-party-otp-app#comment2541369_1658664 | |
| rust-u2f fail with some errors, found and use concise/v2f.py; | |
| clone https://github.com/concise/v2f.py.git and follow instruction to start; | |
| go to accounts.google.com, select "enable 2-step verification", select "show more options -> Security key"; | |
| answer "yes" in v2f console when browser query auth by usb-token and return to google window in 3 sec.; | |
| if all done, you see query to name your key; then page with enabled 2fa with your "Security key (Default)"; | |
| download and save "Backup Codes"; | |
| if needed, enable TOTP. | |
| you can remove v2f key from google. |
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
| curl -s https://erai-raws.info/anime-list/koisuru-asteroid/ | \ | |
| xmllint --html --xpath "//div[contains(@class,'release-links')]/table[.//td[@class='dl-label']/i[contains(text(),'1080p')]]//span[contains(@class, 'dl-link')]/a[contains(@href, '.torrent')]/@href" 2>/dev/null - | \ | |
| cut -d= -f2 | sed -e 's/"//g' | \ | |
| while read url; \ | |
| do transmission-remote "127.0.0.1:port" --auth "username:passw" -a "${url}" --download-dir "/media/NBox/Torrents/Anime/[Erai-raws] Koisuru Asteroid [1080p][Multiple Subtitle]"; \ | |
| done |
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
| # http://eleparts.co.kr/data/design/product_file/SENSOR/gas/MH-Z19_CO2%20Manual%20V2.pdf | |
| # http://qiita.com/UedaTakeyuki/items/c5226960a7328155635f | |
| import serial | |
| import time | |
| def mh_z19(): | |
| ser = serial.Serial('/dev/ttyAMA0', | |
| baudrate=9600, | |
| bytesize=serial.EIGHTBITS, | |
| parity=serial.PARITY_NONE, |