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
! 2021-04-22 https://www.wykop.pl | |
www.wykop.pl##li.iC.link:has(a[href^="https://www.wykop.pl/paylink"]) | |
www.wykop.pl##li.iC.link:has(a[title^="dodaj jako znalezisko"]) | |
! 2021-06-01 https://www.wykop.pl | |
www.wykop.pl##.wgt-meczyki |
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 | |
#todo: | |
# * fix remove redundant packages in multiple local repo | |
# * handle broken db (when new package is present in repo path but not added to repo db, e.g. after no space left on device error) | |
# * duplicated pacakges: fix remove from package originated in if multiple local repos. | |
# * package not referenced in db: add tag showing in which repository the package is present. | |
# * add info about which repo owns the redundant file (pacrep "${pkgname}") | |
# * add fileter to remove local repo packages from pacman cache (when local package is not present in pacman.conf CACHE_DIR / check aur(1) ) | |
# * filter out old versions of package, or remove them before precede. |
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 | |
# shellcheck disable=SC2164,SC2154 # mask unsafe cd and uninitialized variables warings | |
shopt -s globstar | |
# How to use: | |
# * run in PKGBUILD dir or pass path to PKGBUILD as argument | |
# this will generate volatile source tree in $TMP (default: /tmp) and | |
# generate source array and prepare_submodule() function to init them | |
# * add local=1 env var to use src/ dir in PKGBUILD path instead of $TMP | |
# * add remote=1 env var to update module past the pined commit hash |
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 | |
#depends | |
[[ $# != 1 ]] && { echo "useage: $(basename $0) pdf_file" >&2; exit 10; } | |
hash pdftoppm pdfunite tesseract || sudo apt install -y poppler-utils tesseract-ocr{,-pol} | |
#tmp | |
tmp=$(mktemp -d) | |
trap "rm -rf $tmp" EXIT |
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 | |
#depends | |
[[ $# != 1 ]] && { echo "useage: $(basename $0) pdf_file" >&2; exit 10; } | |
for dep in pdftoppm tesseract pdfunite; do | |
hash "$dep" || { echo "requires: $dep" >&2; exit 11; } | |
done | |
#tmp | |
tmp=$(mktemp -d) |
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 -x | |
# configuration: github user(required), github token(optional) | |
token="" #https://developer.github.com/v3/guides/getting-started/#oauth | |
user="" | |
#test if user non-zero | |
[ -z "$user" ] && { | |
echo "fill user variable in configuration section" >&2; |
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
#!/usr/bin/env bash | |
function __main | |
{ | |
local -r path="$(realpath "${1:-.}")" | |
debootstrap --variant=buildd trusty "$1" http://archive.ubuntu.com/ubuntu/ | |
patch --unified "$path/etc/init/console.conf" <<'EOF' | |
@@ -3,7 +3,8 @@ | |
# This service maintains a getty on console from the point the system is | |
# started until it is shut down again. |