This project is now hosted at https://github.com/capezotte/s6-shell-completion, along with the zsh completions.
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
#define SUBGETOPT_SHORT | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <poll.h> | |
#include <stdlib.h> | |
#include <spawn.h> | |
#include <sys/wait.h> | |
#include <skalibs/types.h> | |
#include <skalibs/bytestr.h> |
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/sh | |
# Modified from https://github.com/aklomp/shrinkpdf | |
# Licensed under the 3-clause BSD license: | |
# | |
# Copyright (c) 2014-2022, Alfred Klomp | |
# Copyright (c) 2020-2022, Carlos E. | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE language SYSTEM "language.dtd"> | |
<language name="jq" section="Scripts" extensions="*.jq" mimetype="" version="2" kateversion="5.0" author="oc1024" license="LGPL" indenter="python"> | |
<highlighting> | |
<list name="builtins"> | |
<item>not</item> | |
<item>length</item> | |
<item>utf8bytelength</item> | |
<item>keys</item> |
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/sed -nf | |
# First line: only hold and skip. | |
1 { h;d; } | |
# Line with only spaces: wow, free paragraph information! | |
/^\s*$/ { s/^.*$//; bfinished } | |
# Append line to hold space. | |
H | |
# Line ends with dot? We have a new paragraph. | |
/\.$/bfinished | |
# Render last line |
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/gawk -f | |
# GAWK because unicode | |
# Keycap boilerplate | |
function keycap(k) { return sprintf("%c%c%c",k "",65039,8419); } | |
BEGIN { | |
# Regex of included characters | |
unmatch="[^-[:blank]" | |
# A-Z (regional indicators are also a continuous range) | |
for (i=65;i<=90;i++) { regional[sprintf("%c",i)] = sprintf("%c",i+127397); } |
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 python3 | |
# Finds files in the "in" subfolder of the current working directory, | |
# | |
# loads them into memory, | |
# dumps them into a compressor program's stdout, | |
# loads the stdout into memory, | |
# then dump 'em again into a decompressor's stdin. | |
# | |
# Logs ratio, compression and decompression speeds | |
# to stdout (each file MiB/s) and to a log.csv (average B/s) into the current working directory |