Skip to content

Instantly share code, notes, and snippets.

@markododa
markododa / 4.py
Last active December 5, 2020 02:05
from collections import Counter
import re
with open("4.input") as f:
passports = f.read().split("\n\n")
def check(pass_dict):
valid = True
#!/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
import json
import os
import sys
import threading
import time
import tempfile
import confuse
import psutil
from pathlib import Path
from queue import Queue
-- 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"')
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
@markododa
markododa / kanali.txt
Last active December 15, 2015 14:19
simple file parser
24 Вести
Македонски
479.25
C22
Alsat M
Регионален
751.25
C56
Amazon TV
Македонски