Moved to this repo.
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
.\ffmpeg.exe : ffmpeg version N-86809-g012620a Copyright (c) 2000-2017 the FFmpeg developers | |
No linha:1 caractere:1 | |
+ .\ffmpeg.exe -i '.\[HorribleSubs] Aho Girl - 02 [720p].mkv' -ss 0:02: ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (ffmpeg version ...mpeg developers:String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
built with gcc 7.1.0 (GCC) | |
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 | |
--enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls |
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 requests | |
from bs4 import BeautifulSoup | |
def parse_language(response): | |
return BeautifulSoup(response.text).find("html")['lang'] | |
def open_page_accept_language(): | |
headers = {"accept-language": "pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4"} | |
response = requests.get("https://sukebei.pantsu.cat", headers=headers) | |
return parse_language(response) |
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
package main; | |
import ( | |
"github.com/anacrolix/torrent" | |
"github.com/anacrolix/torrent/metainfo" | |
"github.com/ewhal/nyaa/config" | |
"github.com/ewhal/nyaa/db" | |
"github.com/ewhal/nyaa/model" | |
serviceBase "github.com/ewhal/nyaa/service" | |
torrentService "github.com/ewhal/nyaa/service/torrent" |
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
local utils = require 'mp.utils' | |
local msg = require 'mp.msg' | |
-- OPTIONS | |
local keep_file_after_streaming = false | |
local peerflix = { | |
path = "peerflix", | |
searched = false | |
} |
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
-- If the laptop is on battery, the VO set in the config will be choosen, | |
-- else the one defined with „hqvo“ is used. | |
local hqvo = "opengl-hq:interpolation" | |
local utils = require 'mp.utils' | |
if mp.get_property_bool("option-info/vo/set-from-commandline") == true then | |
return | |
end | |
t = {} | |
t.args = {"/bin/cat", "/sys/class/power_supply/AC/online"} | |
res = utils.subprocess(t) |