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
Leverging FZF for a user interface one can do fuzzy searching with a directory tree and document preview. | |
The PTF.py creates that tree then colors the path thus giving a graph of the item searched. | |
Example Usage includes: | |
- More advance Poorman's Mindmap | |
- Person/Contact Graph as a filesystem | |
- Asset Mapping (with pass(1) and LDAP file system structures) | |
- Maps with stow | |
- Project Management / Kanboard |
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
function FindProxyForURL(url, host) { | |
// Move to dns blocker | |
var sites = [ | |
'eztv.au', | |
'eztv.it', | |
'eztv.ag', | |
'rutracker.org', | |
'flibusta.is', | |
'flibusta.net', |
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
[slashnet] | |
client = yes | |
accept = 58697 | |
connect = us.slashnet.org:6697 |
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
FROM python:latest as build | |
COPY . /src | |
WORKDIR /src | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt install -y libncurses5-dev libncursesw5-dev libsqlite3-dev libcurl-dev libexpat-dev libyajl-dev libgumbo-dev scdoc meson ninja-build | |
meson setup builddir && \ | |
meson compile -C builddir | |
FROM scratch | |
COPY --from=build /src/builddir/* / |
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
SRC := $(wildcard *.m4a.mp3) | |
TARGET := $(subst mpa.mp3,mp3,$(SRC)) | |
%.mp3: %.m4a.mp3: | |
@mv "$@" "$<" | |
all: $(TARGET) |
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
## Execute: | |
## NUM_THREADS=4 make --jobs=${NUM_THREADS} RHOSTS="host1.local host2.local host3.local" CMD="whoami" RUSER="${USER}" | |
## RUNTIME flags | |
NUM_THREADS := 1 | |
RHOSTS := example.com | |
CMD := uptime | |
RUSER := root | |
SSH_FLAGS := -l $(RUSER) | |
### |
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
shell-VERSION := 38d1c462d66d56aea50931bacfb0dbb712758863 | |
sandbox-VERSION := 38d1c462d66d56aea50931bacfb0dbb712758863 | |
def sshdconf | |
Match group ssh | |
ForceCommand /usr/bin/docker run --rm -ti sandbox | |
endef | |
export sshdconf | |
.PHONY: all |
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
job "Fabio-Install" { | |
datacenters = ["dc1"] | |
type = "sysbatch" | |
group "Service" { | |
task "Start service" { | |
driver = "raw_exec" | |
artifact { | |
source = "https://github.com/fabiolb/fabio/releases/download/v1.5.15/fabio-1.5.15-go1.15.5-linux_amd64" |
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
import Eris from "eris"; | |
const dataFactory = (error, value) => ({ | |
error: Boolean(error), | |
data: value | |
}); | |
export default class Radio extends Eris { | |
constructor(props) { | |
super(props.token || ""); |