Install the OpenSSL on Debian based systems
sudo apt-get install openssl| #!/bin/zsh | |
| function get_devices() { | |
| all_devices=$(command adb devices) | |
| # Drop the title | |
| all_devices=${all_devices#"List of devices attached"} | |
| # Drop any unauthorised devices (i.e. USB debugging disabled or authorisations revoked) | |
| valid_devices=$(echo $all_devices | grep -v "([[:alnum:]-]+[[:space:]]+unauthorized$)" | grep -oE "([[:alnum:]-]+[[:space:]]+device$)") |
| #! /usr/bin/env python3 | |
| """ | |
| Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com) | |
| Запуск: | |
| python vkcom_audio_download.py | |
| Принцип работы: | |
| Скрипт проверяет сохраненный access_token. Если его нет или срок истек, | |
| то открывается страница в браузере с запросом на доступ к аккаунту. |
| /* | |
| * Copyright 2016 Kevin Mark | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.