sudo dnf install git kernel-devel kernel-headers dkms v4l-utils
git clone https://github.com/umlaeute/v4l2loopback.git
cd v4l2loopback
make
v=$(./currentversion.sh)
This file contains hidden or 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 -e | |
| # Install RavenPro as user on Linux using proot | |
| # Download the installer in advance and set the correct version | |
| # Do not start RavenPro from the installer | |
| VERSION=1.6.5 | |
| mkdir -p ravenpro | |
| proot -0 -b ravenpro:/opt ./RavenPro-${VERSION}-linux-x64-installer.run |
This file contains hidden or 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
| repos: | |
| - repo: https://github.com/lorenzwalthert/precommit | |
| rev: v0.4.3 | |
| hooks: | |
| - id: style-files |
This file contains hidden or 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 | |
| set -eu | |
| lon=10.407 | |
| lat=63.431 | |
| echo "# seNorge GDAL test" | |
| echo | |
| echo "## Test info" |
This file contains hidden or 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 | |
| set -xeu | |
| export max=$((8*1024*1024*1024)) # 8 GB | |
| memory_max() { | |
| requested=$1 | |
| total=$( | |
| find /sys/fs/cgroup/user.slice/ -wholename "*/run-*.*/cgroup.procs" | |
This file contains hidden or 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
| vcl 4.1; | |
| import dynamic; | |
| backend default none; | |
| sub vcl_init { | |
| new d = dynamic.director(port = "80"); | |
| } | |
| sub vcl_recv { |
This file contains hidden or 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
| // Add incremental Call Number | |
| let items = Zotero.getActiveZoteroPane().getSelectedItems(); | |
| let callNumberLength = items.length.toString().length; | |
| for (i=0; i<items.length; i++) { | |
| let item = items[i]; | |
| if (!items[i].isRegularItem()) continue; | |
| item.setField("callNumber", (i+1).toString().padStart(callNumberLength, "0")); | |
| await item.saveTx(); | |
| } |
This file contains hidden or 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
| // <script type="module"> | |
| var server = "https://kroki.io"; | |
| var libraries = [ | |
| "bytefield", | |
| "c4plantuml", | |
| "d2", | |
| "ditaa", | |
| "erd", | |
| "graphviz", | |
| "dot", |
This file contains hidden or 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
| function read_strace_file() { | |
| strace --trace=file "$@" |& | |
| sed --quiet 's;.*"\(/[^"]*\)".*;\1;p' | | |
| sort --unique | | |
| fzf --scheme=path | | |
| xargs --no-run-if-empty less | |
| } | |
| export read_strace_file |
This file contains hidden or 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
| create function pg_temp.look_for_value(value text) returns | |
| table(table_fullname text, column_name text) | |
| language plpgsql as $$ | |
| declare | |
| r record; | |
| found bool; | |
| begin | |
| for r in select * from information_schema.columns | |
| loop | |
| table_fullname = format('%I.%I.%I', r.table_catalog, r.table_schema, r.table_name); |