dot

packages and services management
Log | Files | Refs | README

commit 99a1543624400378619dbc8b9534dd3a535fee95
parent 75ef576edd70632d745e98efd928b70fc868a738
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 29 Nov 2017 10:25:58 +0100

merge "rfc" to "http rfc"

Diffstat:
Mbin/http | 7++++++-
Dbin/rfc | 6------
Mbin/xdg-open | 2+-
Muri | 10++++------
4 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/bin/http b/bin/http @@ -11,6 +11,10 @@ case $1 in (ix) curl -F f:1=@- ix.io ;; +(rfc) + curl -L "http://www.ietf.org/rfc/rfc$2".txt | + awk -v RS='\n*[^\n]*\n\f\n[^\n]*\n*' '{ print $0 }' | $PAGER + ;; (sprunge) curl -F sprunge=@- sprunge.us ;; @@ -21,6 +25,7 @@ case $1 in curl wttr.in ;; (*) - printf 'usage: http 0x0 | ip | ix | sprunge | w1r3 | wttr [< data]\n' + printf 'usage: http [0x0 | ip | ix | rfc num | sprunge | w1r3 | wttr\n' + printf ' [< data]]\n' ;; esac diff --git a/bin/rfc b/bin/rfc @@ -1,6 +0,0 @@ -#!/bin/sh -# download and print an RFC from ietf.org - -curl -L http://www.ietf.org/rfc/rfc"$1".txt | -awk -v RS='\n*[^\n]*\n\f\n[^\n]*\n*' '{ print $0 }' | -$PAGER diff --git a/bin/xdg-open b/bin/xdg-open @@ -10,7 +10,7 @@ aexec() for name in "$@"; do continue; done [ -e "$name" ] && name=$(cd "$(dirname "$name")"; pwd)/$(basename "$name") - name=$(printf %s "$name" | tr / !) + name=$(printf %s "$name" | tr / ! | sed -r 's/.*(.{53})$/\1/') [ "$SSH_TTY" ] && e='^\' || e='^Z' printf '\033]0;%s\007' "$*" ABDUCO=$name exec abduco -A "$name" "$@" diff --git a/uri b/uri @@ -1,6 +1,6 @@ 9p://9p.io gopher://bitreich.org -gopher://drkhsh.at/ +gopher://drkhsh.at gopher://gopher.leveck.us/1/cgi-bin/pg gopher://gopher.raumzeitlabor.org/1 gopher://gopherpedia.com @@ -11,8 +11,6 @@ gopher://me0w.net/7/searx.dcgi gopher://port70.net gopher://r-36.net gopher://tx.god.jp -gopher://tx.god.jp/1 -gopher://tx.god.jp/1/yt gopher://z3bra.org http://2f30.org http://calomel.org @@ -29,7 +27,7 @@ http://n-gate.com http://n-gate.com http://nixers.net http://nixers.net -http://nullprogram.com/ +http://nullprogram.com http://pdp11.aiju.de http://reddit.com http://suckless.org @@ -37,12 +35,12 @@ http://systemspace.network http://thecontext.net http://tttthis.com/rememberwebsites.php http://win95.ajf.me/win95.html -http://wurstcaptures.untergrund.net/music/ +http://wurstcaptures.untergrund.net/music http://www.3x6x.com/discography.html http://www.tldp.org/guides.html https://gxamjbnu7uknahng.onion.rip/wiki/index.php/Infornography:_The_Tao_of_Memetic_(Meta)Engineering https://wiby.me -https://www.destroyallsoftware.com/compendium/network-protocols/ +https://www.destroyallsoftware.com/compendium/network-protocols irc://irc.cyberia.is:6697 irc://irc.freenode.net:6697 irc://irc.lainchan.org:6697