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
from collections import Counter | |
import re | |
with open("4.input") as f: | |
passports = f.read().split("\n\n") | |
def check(pass_dict): | |
valid = True |
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 | |
TOKEN="" | |
ARG="$1" | |
#get id of list files for torrent | |
#list-torrents | |
if [ "$ARG" == 'list' ]; then | |
curl -s 'https://app.real-debrid.com/rest/1.0/torrents' -H "Authorization: Bearer $TOKEN"|jq -r '.[]|.id,.filename,.status'|paste - - -|sed 's/downloaded//g' | |
exit 0 |
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 json | |
import os | |
import sys | |
import threading | |
import time | |
import tempfile | |
import confuse | |
import psutil | |
from pathlib import Path | |
from queue import Queue |
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
-- requires subdl: https://github.com/akexakex/subdl | |
-- default keybinding: b | |
-- add the following to your input.conf to change the default keybinding: | |
-- keyname script_binding subdl_load_subs | |
local utils = require 'mp.utils' | |
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path | |
function subdl_load() | |
local video_name=mp.get_property("filename"):gsub(".[^.]+$", "") | |
sub_loaded=string.match(mp.get_property("track-list"), '"type":"sub"') |
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
docker: Summary for local | |
docker: ------------- | |
docker: Succeeded: 18 (changed=17) | |
docker: Failed: 1 | |
docker: ------------- | |
docker: Total states run: 19 | |
docker: Total run time: 24.564 s | |
2019/03/13 14:43:11 [INFO] 11206 bytes written for 'stdout' | |
2019/03/13 14:43:11 [INFO] 30964 bytes written for 'stderr' | |
2019/03/13 14:43:11 packer: 2019/03/13 14:43:11 [INFO] RPC endpoint: Communicator ended with: 1 |
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
24 Вести | |
Македонски | |
479.25 | |
C22 | |
Alsat M | |
Регионален | |
751.25 | |
C56 | |
Amazon TV | |
Македонски |