- $ git clone https://github.com/inverse/web-scrobbler.git
- $ git checkout multi-scrobble
- Open up Chrome/Chromium
- Click the 3 dots/hamburger (menu in the top right corner)
- Click More Tools
- Click Extensions
- Click Developer mode
- Click Load unpacked extension...
- Navigate to and select the folder for web-scrobbler that you just downloaded
- The extension will load/install
This file contains 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
#!/usr/bin/env python | |
""" | |
AAAAAA.py | |
This script, when placed in a folder with other episodes, will find the next | |
episode number and query thepiratebay for the infohash of the most popular | |
match. | |
This script is only used to find shows that are freely available. | |
I personally enjoy Pioneer One and a bunch more films provided freely over at |
This file contains 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
import re | |
txt = 'some smoe msoe soem http://www.google.com/meep/peem/peme soMe sMoe Msoe soeM https://www.google.com/meep/peem/pmep/ soem msoe smoe some' | |
def my_replace(match): | |
if not str(match.group()).startswith('http'): | |
return re.sub('(?i)m', '_', match.group()) | |
else: | |
return match.group() | |
This file contains 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
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
This file contains 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
'use strict'; | |
/** | |
* Background script entry point | |
* | |
* - sets up injecting mechanism for supported sites | |
* - creates controllers for each recognized tab | |
* - sets up all chrome.* listeners, which are forwarded controllers if needed | |
* - checks auth status on run (browser start or extension enabling) and prompts for login if needed | |
*/ |
This file contains 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
def formatnumber(n): | |
"""Format a number with beautiful commas.""" | |
parts = list(str(n)) | |
for i in range((len(parts) - 3), 0, -3): | |
parts.insert(i, ',') | |
return ''.join(parts) |
This file contains 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
#!/usr/bin/env python3 | |
## This works in Python 2 and Python 3 | |
import datetime as dt | |
for x in range(2020, 1000000, 4): | |
t = dt.datetime(x, 2, 29) | |
if t.weekday() == 0: | |
print("Found it! {0}".format(x)) |