Fix more stuff

This commit is contained in:
Observer of Time 2019-10-21 10:51:06 +03:00
parent e758191295
commit 83e64cfe7e
Signed by: chronobserver
GPG Key ID: 8A2DEA1DBAEBCA9E
11 changed files with 56 additions and 50 deletions

View File

@ -146,4 +146,15 @@ utf8decode() { # Decodes =?UTF-8?B?...?= string
printf '%s\n' "$(base64 -d <<< "${BASH_REMATCH[1]}")"
}
pwned() { # Checks if a password has been compromised
__usage $# 1 '<password>' && return 1
declare pass results tmp
pass="$(printf '%s' "$1" | sha1sum | cut -d ' ' -f1)"
readarray -t results < <(curl -Ss \
https://api.pwnedpasswords.com/range/"${pass:0:5}")
for tmp in "${results[@]}"; do
[ "${tmp%:*}" != "${pass^^}" ] || printf '%s\n' "$tmp"
done
}
# vim:set ft=sh fdm=syntax fdl=0:

View File

@ -1,5 +1,5 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="antialias">

View File

@ -88,7 +88,7 @@
else \
printf \"%s%s%s\\n\" \"export GITLAB_TOKEN\" \
\"or save it in \\$HOME/.local/tokens/gitlab\" \
\"to use this command\" >2; \
\"to use this command\" >&2; \
fi; \
fi; \
curl -H \"Content-Type: application/json\" \
@ -102,16 +102,16 @@
else \
printf \"%s%s%s\\n\" \"export GITHUB_TOKEN\" \
\"or save it in \\$HOME/.local/tokens/github\" \
\"to use this command\" >2; \
\"to use this command\" >&2; \
fi; \
fi; \
user=\"$(git config --get user.name)\"; \
root=\"$(basename \"$(git rev-parse --show-toplevel)\")\"; \
user=\"${2:-$(git config --get user.name)}\"; \
old=\"${3:-$(basename \"$(git rev-parse --show-toplevel)\")}\"; \
curl -H \"Content-Type: application/json\" \
-H \"Authorization: Token $GITHUB_TOKEN\" \
-sSX PATCH \"https://api.github.com/repos/$user/${2:-$root}\" \
-sSX PATCH \"https://api.github.com/repos/$user/$old\" \
-d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; \
git remote set-url \"${3:-origin}\" \"https://github.com/$user/$1\";}; f"
git remote set-url \"${4:-origin}\" \"https://github.com/$user/$1\";}; f"
[url "git@github.com:"]
insteadOf = https://github.com/

View File

@ -18,9 +18,10 @@ MBTN_LEFT_DBL cycle fullscreen
# cycle-values {{{
R cycle-values video-aspect "16:9" "4:3" "-1"
L cycle-values loop-file "inf" "no"
H cycle-values hwdec "no" "vaapi"
l cycle-values loop-file "inf" "no"
L cycle-values loop-playlist "inf" "no"
V cycle-values video-aspect "16:9" "4:3" "-1"
H cycle-values hwdec "no" "auto-copy"
# }}}
@ -45,18 +46,20 @@ Shift+left seek -2 exact
Shift+up seek +10 exact
Shift+down seek -10 exact
0 seek 0 absolute
# }}}
# add {{{
# audio-delay {{{
g add audio-delay +0.1
G add audio-delay -0.1
G add audio-delay +0.1
g add audio-delay -0.1
# }}}
# brightness {{{
n add brightness +1
N add brightness -1
E add brightness +1
e add brightness -1
# }}}
# chapter {{{
@ -65,8 +68,8 @@ PGDWN add chapter -1
# }}}
# sub-pos {{{
k add sub-pos -1
K add sub-pos +1
R add sub-pos +1
r add sub-pos -1
# }}}
# sub-scale {{{
@ -75,8 +78,8 @@ k add sub-scale -0.1
# }}}
# sub-delay {{{
j add sub-delay -0.1
J add sub-delay +0.1
j add sub-delay -0.1
# }}}
# volume {{{
@ -155,12 +158,12 @@ Y script-message osc-visibility auto
# other {{{
q stop
p show-progress
b playlist-prev
n playlist-next
f playlist-shuffle
p show-progress
l ab-loop
q stop
Ctrl+l ab-loop
Ctrl+q quit
Ctrl+c quit 4
Shift+RIGHT frame-step

View File

@ -49,7 +49,7 @@ idle=yes
save-position-on-quit=yes
# Video format/quality that is directly passed to youtube-dl.
ytdl-format=bestvideo[height<=?1080]+bestaudio/best
ytdl-format=best[height<=?1080]
# Options that are directly passed to youtube-dl.
ytdl-raw-options="yes-playlist="
@ -76,10 +76,10 @@ screenshot-template=shot_%F_%wH-%wM-%wS
# Specify the hardware video decoding API
# that should be used if possible.
hwdec=vaapi
hwdec=auto-copy
# Specify the video output backend to be used.
vo=vaapi
vo=gpu
# }}}

View File

@ -7,13 +7,13 @@ c.content.default_encoding = 'utf-8'
c.content.headers.accept_language = 'en_GB,en'
# User agent to send.
c.content.headers.user_agent = ' '.join([
c.content.headers.user_agent = ' '.join((
'Mozilla/5.0',
'(X11; Linux x86_64)',
'QtWebEngine/5.13.0',
'QtWebEngine/5.13.1',
'Chromium/73.0.3683.105',
'qutebrowser/1.7.0'
])
'qutebrowser/1.8.1'
))
# Allow JavaScript to read from or write to the clipboard.
c.content.javascript.can_access_clipboard = True
@ -36,13 +36,13 @@ c.editor.command = [
]
# Default monospace fonts.
c.fonts.monospace = ','.join([
c.fonts.monospace = ','.join((
'Hack',
'Fira Code',
'Code New Roman',
'Fantasque Sans Mono',
'DejaVu Sans Mono'
])
))
# Which Chromium process model to use.
c.qt.process_model = 'process-per-site'
@ -86,7 +86,7 @@ c.url.start_pages = [ # {{{1
04J8A_RpGjiRi9bqvj8NCiKWkONo0xnzWy6hcHhbLDs
v8makXlUX6493d59O_iGeW21s039-ix9Syq54et7vi-
g7omFVXueL8gm0kTfooem4oJz9sHMTuL4eaCf8=
""".replace('\n', '').replace(' ', '')
""".replace('\n', '').replace(' ', ''),
] # }}}
# Search engines which can be used via the address bar.

View File

@ -1,25 +1,16 @@
{
"license": "MIT-0",
"dependencies": {
"@types/node": "^12.0.0",
"american-british-english-translator": "^0.1.2",
"coffeescript": "^2.4.1",
"cssmin": "^0.4.3",
"eslint": "^5.16.0",
"eslint": "^6.5.1",
"grunt-cli": "^1.3.2",
"gulp-cli": "^2.2.0",
"htmlhint": "^0.11.0",
"livescript": "^1.6.0",
"neovim": "^4.5.0",
"node-sass": "^4.12.0",
"package-json-to-readme": "^2.1.1",
"package-size": "^2.3.0",
"pug-cli": "^1.0.0-alpha6",
"pug-lint": "^2.5.0",
"stylelint": "^10.0.1",
"stylelint-scss": "^3.6.1",
"svgo": "^1.2.2",
"tern": "^0.23.0",
"ts-node": "^8.1.0",
"typescript": "^3.4.5"
"stylelint": "^11.1.1",
"stylelint-scss": "^3.9.3",
"svgo": "^1.2.2"
}
}

View File

@ -17,6 +17,6 @@
--output "%(title)s.%(ext)s"
# Specify a custom user agent.
--user-agent "Mozilla/5.0 (X11; Linux x86_64) youtube-dl/2019.09.12"
--user-agent "Mozilla/5.0 (X11; Linux x86_64) youtube-dl/2019.10.16"
# vim:ft=conf:

2
.gitattributes vendored
View File

@ -1,3 +1,5 @@
* text=auto linguist-detectable=true
# no linguist language for dircolors as of yet
# .config/dircolors linguist-language=dircolors

View File

@ -5,8 +5,6 @@ sudo cp /etc/pacman.conf{,.bak}
sudo sed -i /etc/pacman.conf \
-e 's/^#\(Color\)/\1\nILoveCandy/' \
-e '/\[multilib\]/,/Include/s/^#//' \
-e '$ a [oracle]\nSigLevel = Optional TrustAll' \
-e '$ a Server = http://linux.shikadi.net/arch/$repo/$arch' \
-e '$ a [quarry]\nServer = https://pkgbuild.com/~anatolik/quarry/x86_64/'
# }}}
@ -139,7 +137,7 @@ GRUB_DISABLE_SUBMENU=true
GRUB_THEME=$THEME/theme.txt
GRUB_FONT=$THEME/fonts/DejaVuSansMono14.pf2
# vim:set ft=dosini et sw=4 ts=4:
# vim:set ft=cfg et sw=4 ts=4:
EOF
sudo cp /boot/grub/grub.cfg{,.bak}
sudo grub-mkconfig -o /boot/grub/grub.cfg
@ -179,7 +177,7 @@ Type = File
Target = usr/bin/firefox-developer-edition
[Action]
Description = Disabling Firefox downgrade protection
Description = Setting GTK_USE_PORTAL=1 for Firefox...
When = PostTransaction
Exec = /bin/sed -i /usr/bin/firefox-developer-edition \
-e 's/exec/GTK_USE_PORTAL=1 &/;s/"\$@"/-allow-downgrade &/'

View File

@ -16,6 +16,7 @@ kde-servicemenus-rootactions
kde-thumbnailer-apk
kde-thumbnailer-epub
korla-icon-theme
luacheck
mkv-extractor-qt
pandoc-bin
phpstorm