dot

packages and services management
Log | Files | Refs | README

commit 22d042670c0fcf8e5ef1ab97d26a15544d803d47
parent 11b40bc71009ba10c8f2d679552c72a3f4e4b873
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 17 Nov 2017 21:49:10 +0100

squeezing http-* into http

Diffstat:
Mbin/fig | 2+-
Dbin/git-sync | 7-------
Abin/http | 20++++++++++++++++++++
Dbin/http-ip | 2--
Dbin/http-ix | 2--
Dbin/http-w1r3 | 3---
Dbin/http-wttr | 3---
7 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/bin/fig b/bin/fig @@ -62,6 +62,6 @@ case "$1" in -e 's/~/~/g' ;; (*) - printf 'usage: %s [mirror|reverse]\n' + printf 'usage: %s mirror | reverse | fullwidth\n' "${0##*/}" ;; esac diff --git a/bin/git-sync b/bin/git-sync @@ -1,7 +0,0 @@ -#!/bin/sh -find "$HOME/srv/git" -mindepth 1 -maxdepth 1 -type d | -while IFS='' read -r repo -do - git -C "$repo" fetch origin master:master - git -C "$repo" push --all -done diff --git a/bin/http b/bin/http @@ -0,0 +1,20 @@ +#!/bin/sh +# client to various http services + +case $1 in +(ip) + curl icanhazip.com + ;; +(ix) + curl -F f:1=@- ix.io + ;; +(w1r3) + curl -F upload=@- w1r3.net + ;; +(wttr) + curl wttr.in + ;; +(*) + printf 'usage: %s ip | ix | w1r3 | wttr [< data]\n' "${0##*/}" + ;; +esac diff --git a/bin/http-ip b/bin/http-ip @@ -1,2 +0,0 @@ -#!/bin/sh -curl icanhazip.com diff --git a/bin/http-ix b/bin/http-ix @@ -1,2 +0,0 @@ -#!/bin/sh -curl -F f:1=@- ix.io diff --git a/bin/http-w1r3 b/bin/http-w1r3 @@ -1,3 +0,0 @@ -#!/bin/sh - -curl -F upload=@- w1r3.net diff --git a/bin/http-wttr b/bin/http-wttr @@ -1,3 +0,0 @@ -#!/bin/sh - -curl wttr.in