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)
| 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) |
| // 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. | |
| // |
Batch file to map your Android phone as network drive in Windows.
| sudo apt-get remove \ | |
| aisleriot \ | |
| brltty \ | |
| duplicity \ | |
| empathy \ | |
| empathy-common \ | |
| example-content \ | |
| gnome-accessibility-themes \ | |
| gnome-contacts \ | |
| gnome-mahjongg \ |
| #!/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` |
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import csv | |
| import sys | |
| import time | |
| import socket | |
| import datetime |
| /* NOTICE: THIS WAS MADE BACK IN 2017, OF COURSE IT'S NOT GOING TO WORK WELL NOW THAT TWITTER'S FUCKED THINGS UP */ | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("twitter.com") { | |
| [data-component-context="suggest_recap"], | |
| [data-component-context="suggest_who_to_follow"], | |
| [data-component-context="suggest_activity"], | |
| [data-component-context="suggest_activity_tweet"], | |
| [data-component-context="suggest_recycled_tweet_inline"], | |
| [data-component-context="suggest_recycled_tweet"]{ |
| // from "https://superuser.com/a/62646" | |
| // Save this one line of text as file invisible.vbs: | |
| CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False | |
| // To run any program or batch file invisibly, use it like this: | |
| wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat" | |
| // To also be able to pass-on/relay a list of arguments use only two double quotes | |
| CreateObject("Wscript.Shell").Run "" & WScript.Arguments(0) & "", 0, False |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}