Batch file to map your Android phone as network drive in Windows.
- An Android phone
- WebDAV Server or WebDAV Server Ultimate
- WiFi router (PC and phone on the same network)
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import csv | |
| import sys | |
| import time | |
| import socket | |
| import datetime |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
| sudo apt-get remove \ | |
| aisleriot \ | |
| brltty \ | |
| duplicity \ | |
| empathy \ | |
| empathy-common \ | |
| example-content \ | |
| gnome-accessibility-themes \ | |
| gnome-contacts \ | |
| gnome-mahjongg \ |
Batch file to map your Android phone as network drive in Windows.
| // Hacky last.fm Now Playing | |
| // by Zack Fernandes (zackfern.me) April 2013 | |
| // | |
| // Instructions: | |
| // - Install jQuery, if you don't have it already. | |
| // - Create a last.fm API key and set the api_key variable. | |
| // - Set the username variable to your last.fm username. | |
| // - Add something with the ID of now_playing in your site. | |
| // - Include this script and enjoy. | |
| // |
| from datetime import datetime, time | |
| def dateDiffInSeconds(date1, date2): | |
| timedelta = date2 - date1 | |
| return timedelta.days * 24 * 3600 + timedelta.seconds | |
| def daysHoursMinutesSecondsFromSeconds(seconds): | |
| minutes, seconds = divmod(seconds, 60) | |
| hours, minutes = divmod(minutes, 60) | |
| days, hours = divmod(hours, 24) |