A sample resource:
.resource [
.url [
.string.gamelist
.string.favouritesGet
.binding.siteid
.binding.uid
]
| ZIG ?= zig | |
| .PHONY: test | |
| test: t-rpath.zig-cc t-rpath.clang-16 t-plain.clang-16 t-plain.zig-cc x/libfoo.so.2 | |
| @echo clang-16 rpath: | |
| @readelf -d t-rpath.clang-16 | grep -E "runpath|foo|bar" | sort | |
| @echo zig cc rpath: | |
| @readelf -d t-rpath.zig-cc | grep -E "runpath|foo|bar" | sort | |
| @echo clang-16 plain: | |
| @readelf -d t-plain.clang-16 | grep -E "runpath|foo|bar" | sort |
| .PHONY: test | |
| test: f read_c read_go | |
| bash -c 'while true; do echo yaddda | head -2 >> f; echo written; done' & \ | |
| ./read_c f; \ | |
| ./read_go f; \ | |
| ./read.py f; \ | |
| pkill -f "echo yaddda" | |
| f: | |
| mkfifo f |
| #!/usr/bin/env python -u | |
| from sys import stdin, stdout | |
| from datetime import datetime | |
| before, line = datetime.utcnow(), 'foo' | |
| while line != '': | |
| line = stdin.readline() | |
| ret = "[%s] %s" % (datetime.utcnow().strftime("%H:%M:%S.%f"), line) | |
| stdout.write(ret) |
| arc() { | |
| if [[ -z "$(which node)" ]]; then d; fi | |
| env arc "$@" | |
| } | |
| . $HOME/.gg.sh | |
| export LC_CTYPE=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| export PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] ' |
| """Parses KML file from the google map of http://www.vilnius.lt/darzeliai/info/. | |
| Outputs a spreasheet-importable CSV. | |
| """ | |
| import sys | |
| import csv | |
| import xmltodict |
| #!/bin/bash | |
| if [[ -n "$1" ]]; then | |
| URL=$1 | |
| else | |
| URL=https://dans.im/gifs/ | |
| fi | |
| set -euo pipefail |
| #!/usr/bin/awk -f | |
| # Finds objects between two versions, and creates | |
| # "aws s3api delete-objects"-compatible json file. | |
| # BUG: skips some of the input lines. Should emit the key/val on every line! | |
| # Input: | |
| # aws s3api --bucket=BUCKET list-object-versions --output text |
| // ==UserScript== | |
| // @name preload images on aruodas.lt | |
| // @namespace motiejus | |
| // @description Preload images on detail pages in aruodas.lt | |
| // @include http*://*.aruodas.lt/* | |
| // @version 4 | |
| // @grant none | |
| // @downloadURL https://gist.github.com/raw/063233890c207c0e9dce/aruodas.user.js | |
| // | |
| // ==/UserScript== |
| #!/bin/bash | |
| # Begin graphite.service | |
| set -euo pipefail | |
| cat > /etc/systemd/system/graphite.service <<EOF | |
| [Unit] | |
| Description=graphite server | |
| After=docker.service | |
| Requires=docker.service | |
| [Service] |
A sample resource:
.resource [
.url [
.string.gamelist
.string.favouritesGet
.binding.siteid
.binding.uid
]