This is the fg changelog.
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
import ast | |
import pathlib | |
import re | |
import subprocess | |
import sys | |
import astor | |
import pyupgrade | |
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
tasks: | |
get_my_shows: | |
rss: http://my.rss.feed | |
configure_series: | |
from: | |
trakt_list: | |
account: myaccount | |
list: My TV Shows | |
type: shows | |
deluge: yes # or transmission or download plugin, or whatever |
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
function winenv --description "Echos windows environment variables from WSL." | |
for arg in $argv | |
set result (cmd.exe /c echo "%"$arg"%" | string trim) | |
if echo $result | grep -i "^[a-z]:\\\\" > /dev/null | |
for r in (echo $result|string split ";") | |
echo (wslpath $r) | |
end | |
else | |
echo $result | |
end |
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
tasks: | |
episode_rss: | |
rss: some episodes | |
configure_series: | |
entry_list: following series | |
download:yes | |
archive: episodes | |
series to consider: | |
rss: some episodes | |
accept_all: yes |
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
tasks: | |
get_movies: | |
rss: whatever | |
imdb: | |
score: 7.0 | |
if: | |
- quality < '1080p': | |
list_add: | |
- movie_list: upgrades | |
upgrade_movies: |
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
tasks: | |
# This is where movies we want get added to lists | |
fill_list: | |
# Some input plugin here, or just --inject to this task | |
accept_all: yes | |
seen: local | |
list_add: | |
- movie_list: high qual | |
- movie_list: low qual | |
get_high_qual: |
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
import requests | |
from bs4 import BeautifulSoup | |
sess = requests.Session() | |
r = sess.get('https://www.imdb.com/ap/signin?openid.return_to=https%3A%2F%2Fwww.imdb.com%2Fap-signin-handler&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=imdb_mobile_us&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0') | |
soup = BeautifulSoup(r.content, 'html5lib') | |
inputs = soup.select('form#ap_signin_form input') | |
data = dict((i.get('name'), i.get('value')) for i in inputs if i.get('name')) | |
data['email'] = '[email protected]' | |
data['password'] = 'aoeu' |
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
"""Usage: trac2down <trac wiki dump path>""" | |
from __future__ import unicode_literals | |
import codecs | |
import os | |
import re | |
import sys | |
import path | |
def convert_wiki_link(link): |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder