commit 030a584324eedd979d77b6fd78853d263c8cce1b
parent f806d9d6bd754326e1f72812d6ec77e55742d269
Author: Josuah Demangeon <mail@josuah.net>
Date: Wed, 17 Jan 2018 22:49:09 +0100
no need for xinetd configs thanks to itox
Diffstat:
9 files changed, 12 insertions(+), 17 deletions(-)
diff --git a/bin/edit b/bin/edit
@@ -1,3 +1,3 @@
#!/bin/sh
-exec vi "$@"
+EDITOR=vi VISUAL=vi exec less "$@"
diff --git a/bin/io-lineart b/bin/io-lineart
@@ -5,4 +5,5 @@ iomenu << 'EOF' | sed 's/^[^ ]* *//'
put sunglasses on (•_•) / ( •_•)>⌐■-■ / (⌐■_■)
shrug ¯\_(ツ)_/¯
rose --{@
+magic (∩`-´)⊃━☆゚.*・。゚
EOF
diff --git a/bin/irc b/bin/irc
@@ -4,9 +4,10 @@
IRCPATH=$HOME/.cache/irc
INPUT=$HOME/.cache/irc/input
-[ $# -eq 0 ] && exec "$0" "$(find "$IRCPATH" -type d | iomenu)"
+[ $# -eq 0 ] && exec "$0" "$(find "$IRCPATH" -mindepth 1 -type d | iomenu)"
clear
+touch "$INPUT"
tail -fn50 "$1/out" | eel | while IFS= read -r line
do printf '\r\033[K%s\n> %s' "$line" "$(cat "$INPUT")"
done & pid=$!
@@ -28,7 +29,7 @@ do
;;
(016) # Ctrl + N
pkill -fx "tail -fn50 $1/out"
- exec "$0" "$(find "$IRCPATH" -type d | iomenu)"
+ exec "$0" "$(find "$IRCPATH" -mindepth 1 -type d | iomenu)"
;;
(025) # Ctrl + U
printf '' > "$INPUT"
diff --git a/bin/update-agenda b/bin/update-agenda
@@ -1,7 +1,7 @@
#!/bin/sh
url='https://intra.epitech.eu/auth-251e3d0bfcea8ed69a5581361a6a5b8b7ac3cfd5/planning/load?format=ical&location=FR/REN&onlymypromo=true&onlymymodule=true&semester=0,3'
-curl -#L "$url" | calendar import - epitech +01
+curl -#L "$url" | agenda import - epitech +01
url='https://fosdem.org/2018/schedule/ical'
-curl -#L "$url" | calendar import - fosdem +01
+curl -#L "$url" | agenda import - fosdem +01
diff --git a/bin/xdg-open b/bin/xdg-open
@@ -121,7 +121,7 @@ case $scheme in
exec "$0" "$HOME/lib/http/text/$host/${path##*/}"
;;
(*)
- exec retawq "$1"
+ exec firefox "$1"
;;
esac
;;
diff --git a/daemon/ii b/daemon/ii
@@ -2,4 +2,6 @@
p=${2:-6667}
+mkdir -p "$HOME/.cache/irc"
+
exec ii -s "$1" -i "$HOME/.cache/irc" -p "$p" -n "$NICK" -k PASS -f "$NAME" &
diff --git a/lib/uri b/lib/uri
@@ -15,6 +15,7 @@ gopher://suckless.org
gopher://tx.god.jp
gopher://z3bra.org
http://2f30.org
+gopher://fifth.space
http://bitreich.org:3232/live
http://calomel.org
http://fuwafuwa.moe
diff --git a/user/git b/user/git
@@ -1,3 +1,4 @@
#!/bin/sh
+
useradd -s /bin/false -d "$HOME/srv/git" git
passwd git
diff --git a/xinetd/gopher-proxy~ b/xinetd/gopher-proxy~
@@ -1,11 +0,0 @@
-service gopher-proxy
-{
- type = UNLISTED
- socket_type = stream
- protocol = tcp
- server = /root/srv/bin/gopher-proxy
- server_args = josuah.net:8080
- user = root
- port = 8080
- wait = no
-}