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
// ==UserScript== | |
// @name ViewTube | |
// @version 2013.08.16 | |
// @description Watch videos from video sharing websites without Flash Player. | |
// @author sebaro | |
// @namespace https://userscripts.org/users/sebaro | |
// @downloadURL https://userscripts.org/scripts/source/87011.user.js | |
// @updateURL https://userscripts.org/scripts/source/87011.meta.js | |
// @icon http://s3.amazonaws.com/uso_ss/icon/87011/large.png | |
// @include http://youtube.com* |
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
tasks: | |
move-tv: # {{{2 | |
priority: 2 | |
seen: local | |
disable_builtins: [retry_failed] | |
no_entries_ok: yes | |
find: | |
path: |
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
#compdef flexget | |
(( $+functions[_flexget_command] )) || _flexget_command() | |
{ | |
local -a _flexget_cmds | |
_flexget_cmds=( | |
'execute:execute tasks now' | |
'daemon:run continuously, executing tasks according to schedules defined in config' | |
'check:validate configuration file and print errors' | |
'movie-queue:view and manage the movie 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
search-series: # {{{2 | |
series: | |
- bojack horseman: | |
quality: 1080p | |
identified_by: ep | |
discover: | |
what: | |
- emit_series: | |
from_start: yes | |
from: |
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 | |
# configuration | |
path=/tmp/aide | |
server='irc.freenode.net' | |
channel='#chakra-devel' | |
# file to append messages to | |
out="$path/$server/$channel/in" |
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
diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py | |
index 69f22f0..4dbcb5c 100644 | |
--- a/qutebrowser/config/configtypes.py | |
+++ b/qutebrowser/config/configtypes.py | |
@@ -837,6 +837,7 @@ class Directory(BaseType): | |
return | |
else: | |
raise configexc.ValidationError(value, "may not be empty!") | |
+ value = os.path.expandvars(value) | |
value = os.path.expanduser(value) |
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
(.venv) [12:00 ramsi@shada <master*>]% python3 -m unittest ~src/qutebrowser | |
..s...........................x.....................s.........................................................................................................................................................F......EE..................................x..............................................................................................................................................................................................................................................................................................s.s.ss.......................F.F.F.sss.......................................................................................................... | |
====================================================================== | |
ERROR: test_validate_expanduser (qutebrowser.test.config.test_configtypes.DirectoryTests) | |
Test if validate expands the user correctly. | |
--- |
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 test_validate_expanduser(self, os_path): | |
"""Test if validate expands the user correctly.""" | |
# os_path.expandvars.side_effect = lambda x: x.replace('$BAR', | |
# '/home/foo/bar') | |
os_path.expandvars = os.path.expandvars | |
os_path.expanduser.side_effect = lambda x: x.replace('~', '/home/foo') | |
os_path.isdir.side_effect = lambda path: path == '/home/foo/foobar' | |
os_path.isabs.return_value = True | |
with helpers.environ_set_temp('FOO', 'foo'): | |
self.t.validate('~/foobar') |
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
% ag xulrunner-gtk2 | |
xu/xulrunner-gtk2-bin/xulrunner-gtk2-bin/PKGBUILD | |
2:pkgname=xulrunner-gtk2-bin | |
xu/xulrunner-gtk2/xulrunner-gtk2/PKGBUILD | |
4:pkgname=xulrunner-gtk2 | |
li/lightspark/lightspark/PKGBUILD | |
12:makedepends=('cmake' 'nasm' 'llvm' 'glproto' 'boost' 'fontconfig' 'xulrunner-gtk2') |
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
[Mapping analog-surround-31] | |
device-strings = surround31:%f | |
channel-map = front-left,front-right,front-center,lfe | |
paths-output = analog-output analog-output-lineout analog-output-speaker | |
priority = 8 | |
direction = output | |
OlderNewer