All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
| # vim: set ft=python: | |
| # see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 | |
| # source: https://github.com/mpv-player/mpv/issues/2149 | |
| # source: https://github.com/mpv-player/mpv/issues/566 | |
| # source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy | |
| import vapoursynth | |
| core = vapoursynth.get_core() |
| ; nasm -f macho64 mkdir.asm && ld -o mkdir mkdir.o && ./mkdir | |
| %define SYSCALL_MKDIR 0x2000088 | |
| %define SYSCALL_EXIT 0x2000001 | |
| global start | |
| section .text | |
| start: | |
| call mkdir |
| // SSimSuperRes by Shiandow | |
| // | |
| // This library is free software; you can redistribute it and/or | |
| // modify it under the terms of the GNU Lesser General Public | |
| // License as published by the Free Software Foundation; either | |
| // version 3.0 of the License, or (at your option) any later version. | |
| // | |
| // This library is distributed in the hope that it will be useful, | |
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| #!/usr/bin/env python3 | |
| # | |
| # Copyright (C) 2016 - Francesco Frassinelli | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| # recursive search for keys containing "string" stripping empty results | |
| jq '.. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {})' | |
| # same, but output propper array | |
| jq '[ .. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {}) ]' | |
| # or | |
| jq 'map( .. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {}) )' | |
| # transform input from {type: a, amount: 1} to {a: 1} and sum all values by type | |
| jq '[ .[] | {(.type): .amount} ] | map(to_entries) | add | group_by(.key) | map({key: .[0].key, value: map(.value) | add}) | from_entries' |
| # | |
| # Originally.. | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| # | |
| #!/usr/bin/env bash | |
| # ~/.macos — https://mths.be/macos | |
| # Close any open System Preferences panes, to prevent them from overriding |