dot

packages and services management
Log | Files | Refs | README

commit 55fee21158fa724fe1eab87f10f6876df06e247e
parent c47d85ea68b35d1e55d63520c3c3c2702a74bcca
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 22 Mar 2018 23:10:09 +0100

fix build recipes and remove unused qemu script

Diffstat:
Magenda/epitech | 198+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
Abin/ff2touch | 8++++++++
Mbin/io | 5++++-
Mbin/io-lineart | 1+
Mbin/qemu | 57++++++++-------------------------------------------------
Mbin/xdg-open | 34+++++++++++++++++++---------------
Mpack/dvtm/build | 2+-
Mpack/farbfeld/build | 2++
Apack/farbfeld/config.mk | 18++++++++++++++++++
Muri | 12+++++++-----
10 files changed, 236 insertions(+), 101 deletions(-)

diff --git a/agenda/epitech b/agenda/epitech @@ -61,8 +61,8 @@ D:Follow-ups D:Guidance cycle 4 D:Réunion : -B:1523883600 -E:1523887200 +B:1523887200 +E:1523890800 S:B-CUI-070 >> IT MCA C:IT-MCA L: @@ -106,37 +106,41 @@ D:Event D:Discovery Days D:Seigneur des Anneaux : -B:1523973600 -E:1523975400 +B:1523970000 +E:1523971800 S:B-CPP-401 >> Kick-off - Plazza C:Kick-off L: D:Kick-off D:Kick-off - Plazza +D:Silence : -B:1523973600 -E:1523984400 +B:1523970000 +E:1523980800 S:B-CPP-401 >> Bootstrap - Plazza C:Bootstrap L: D:Bootstrap D:Bootstrap - Plazza +D:Silence : -B:1523869200 -E:1523871000 +B:1523952000 +E:1523953800 S:B-PSU-403 >> Kick-off - MyFTP C:Kick-off L: D:Kick-off D:Kick-off - MyFTP +D:Silence : -B:1523869200 -E:1523880000 +B:1523952000 +E:1523962800 S:B-PSU-403 >> Bootstrap - MyFTP C:Bootstrap L: D:Bootstrap D:Bootstrap - MyFTP +D:Silence : B:1519650000 E:1519660800 @@ -228,15 +232,6 @@ D:Follow Up D:Follow-up - nm/objdump D:Seigneur des Anneaux : -B:1519032600 -E:1519038000 -S:B-PRO-410 >> Un diaporama efficace (Partie 1) -C:TD -L: -D:TD -D:Un diaporama efficace (Partie 1) -D:Video Games & Star Wars -: B:1519389000 E:1519403400 S:G-EPI-004 >> Fairs @@ -325,6 +320,7 @@ C:Follow-ups L: D:Follow-ups D:Coaching Session. individuel +D:Réunion : B:1523624400 E:1523636100 @@ -458,15 +454,6 @@ D:Bootstrap D:Bootstrap - MiniLibC D:Video Games & Star Wars : -B:1519057800 -E:1519065000 -S:B-ANG-058 >> Self-assessment TEPitech -C:TEPitech -L: -D:TEPitech -D:Self-assessment TEPitech -D:Neither -: B:1519662600 E:1519669800 S:B-ANG-058 >> TEPitech @@ -1042,8 +1029,8 @@ D:Follow Up D:Follow-up - strace D:Seigneur des Anneaux : -B:1522656000 -E:1522666800 +B:1522742400 +E:1522753200 S:B-NET-400 >> Bootstrap 2 - Interfaces & Static Routing C:Bootstrap L: @@ -1141,3 +1128,154 @@ D:Conference D:Mid-term Review D:Amphi : +B:1521792000 +E:1521797400 +S:B-PCP-000 >> Level up your motivation +C:Workshop +L: +D:Workshop +D:Level up your motivation +D:Silence +: +B:1521797400 +E:1521802800 +S:B-PCP-000 >> Level up your motivation +C:Workshop +L: +D:Workshop +D:Level up your motivation +D:Silence +: +B:1522396800 +E:1522402200 +S:B-PCP-000 >> Handle your stress +C:Workshop +L: +D:Workshop +D:Handle your stress +D:Réunion +: +B:1522402200 +E:1522407600 +S:B-PCP-000 >> Handle your stress +C:Workshop +L: +D:Workshop +D:Handle your stress +D:Réunion +: +B:1523001600 +E:1523007000 +S:B-PCP-000 >> Fight procrastination +C:Workshop +L: +D:Workshop +D:Fight procrastination +D:Réunion +: +B:1523007000 +E:1523012400 +S:B-PCP-000 >> Fight procrastination +C:Workshop +L: +D:Workshop +D:Fight procrastination +D:Réunion +: +B:1523278800 +E:1523284200 +S:B-PCP-000 >> Communicate efficiently +C:Workshop +L: +D:Workshop +D:Communicate efficiently +D:Réunion +: +B:1523284200 +E:1523289600 +S:B-PCP-000 >> Communicate efficiently +C:Workshop +L: +D:Workshop +D:Communicate efficiently +D:Réunion +: +B:1523538000 +E:1523548800 +S:B-MET-400 >> Review. C++ Arcade +C:Review +L: +D:Review +D:Review. C++ Arcade +D:Seigneur des Anneaux +: +B:1523520000 +E:1523527200 +S:B-MET-400 >> Review. Strace +C:Review +L: +D:Review +D:Review. Strace +D:Seigneur des Anneaux +: +B:1523865600 +E:1523876400 +S:B-NET-400 >> Bootstrap 3 - Wifi Network, CDP & TFTP Protocols +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap 3 - Wifi Network, CDP & TFTP Protocols +D:Silence +: +B:1524474000 +E:1524475800 +S:B-PSU-402 >> Kick-off - ftrace +C:Kick-off +L: +D:Kick-off +D:Kick-off - ftrace +D:Video Games & Star Wars +: +B:1524474000 +E:1524484800 +S:B-PSU-402 >> Bootstrap - ftrace +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - ftrace +D:Video Games & Star Wars +: +B:1524729600 +E:1524735000 +S:B-PSU-403 >> Follow-up - MyFTP +C:Follow Up +L: +D:Follow Up +D:Follow-up - MyFTP +D:Seigneur des Anneaux +: +B:1521640800 +E:1521644400 +S:B-INN-000 >> Un point sur le Hub +C:Conference +L: +D:Conference +D:Un point sur le Hub +D:Amphi +: +B:1526562000 +E:1526567400 +S:B-CPP-401 >> Follow-up - Indie Studio +C:Follow Up +L: +D:Follow Up +D:Follow-up - Indie Studio +: +B:1526371200 +E:1526382000 +S:B-NET-400 >> Bootstrap 5 - EIGRP Protocol +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap 5 - EIGRP Protocol +: diff --git a/bin/ff2touch b/bin/ff2touch @@ -0,0 +1,8 @@ +#!/bin/sh -e + +i=0 +ff2braille | tr / - | while IFS='' read -r line + do + touch "$(printf %02x%s "$i" "$line")" + i="$((i + 1))" + done diff --git a/bin/io b/bin/io @@ -8,9 +8,12 @@ cache="$HOME/.cache/find" mkdir -p "$(dirname "$cache")" -[ "$1" = -c ] || [ ! -f "$cache" ] && +if [ "$1" = -c ] || [ ! -f "$cache" ] +then find "$HOME" \( -name .git -o -name CVS \) -prune -o -print | sort -o "$cache" + exit +fi h='----------------------------------------------------------------------------' diff --git a/bin/io-lineart b/bin/io-lineart @@ -9,4 +9,5 @@ rose --{@ wizard (∩`-´)⊃━☆゚.*・。゚ wizard ( `-`)=- *.',~_` :p :þ +coin \_o< ~ Coin ~ >o_/ EOF diff --git a/bin/qemu b/bin/qemu @@ -1,51 +1,10 @@ #!/bin/sh -ex -mkdir -p "$HOME/var/log/qemu" "$HOME/var/qemu" "$HOME/lib/qemu" - -case "$1" in -(new) - [ "$#" -ne 3 ] || ! [ -r "$HOME/lib/qemu/$3" ] || - exec "$0" - - cp "$HOME/lib/qemu/$2" "$HOME/var/qemu/$3" - ;; -(start) - [ "$#" -ne 3 ] || ! [ -r "$HOME/lib/qemu/$2" ] || - exec "$0" - - beg="10000" - end="10100" - - port="$(netstat -natl | awk -v b="$beg" -v e="$end" ' - $6 == "LISTEN" && - sub(".*[.:]", "", $4) && - b <= $4 + 0 && - $4 + 0 <= e - { - print($4); - }' | sort -ru | sed q)" - port="${port:+$(($port + 1))}" - port="${port:-$beg}" - - exec nohup qemu-system-x86_64 \ - -device "e1000,netdev=net0" \ - -netdev "user,id=net0,hostfwd=tcp::$port-:22" \ - -display "none" \ - "$HOME/var/qemu/$2" \ - 1>> "$HOME/var/log/qemu/$2" & - ;; -(list) - (pgrep -lf qemu-system- || pgrep -la qemu-system-) 2> /dev/null | - sed -rn 's/.*qemu-system-.*::([0-9]+).*[/]([^/]+)$/\1 \2/p' - ;; -(*) - echo "usage: qemu [start <name.img> | new <ref.img> <new.img> | list]" - echo "" - echo "store:" - ls "$HOME/lib/qemu" | column | sed 's/^/ /' - echo "created:" - ls "$HOME/var/qemu" | column | sed 's/^/ /' - echo "running:" - exec "$0" list | sed 's/^/ /' - ;; -esac +port="$1" +path="$2" + +exec nohup qemu-system-x86_64 \ + -device "e1000,netdev=net0" \ + -netdev "user,id=net0,hostfwd=tcp::$port-:22" \ + -display "none" \ + "$path" & diff --git a/bin/xdg-open b/bin/xdg-open @@ -3,8 +3,11 @@ # override the xdg-open utility [ "$DISPLAY" ] && case "$(tty)" in -(/dev/pts/*|/dev/ttyp*) ;; -(*) exec st -f terminus:pixelsize=16 -e xdg-open "$@" ;; +(/dev/pts/*|/dev/ttyp*) + ;; +(*) + exec st -f terminus:pixelsize=16 -e xdg-open "$@" + ;; esac [ "$ABDUCO" ] || exec xdg-abduco "$@" @@ -102,8 +105,15 @@ esac case "$1" in (git://*) - mkdir -p "$HOME/git/$host" - cd "$HOME/git/$host" + user="" + case "$1" in + (*github.com*|*bitbucket.com*) + user="$(dirname "$path")" + ;; + esac + + mkdir -p "$HOME/git/$host/$user" + cd "$HOME/git/$host/$user" exec git clone "$1" ;; (magnet:*) @@ -126,13 +136,7 @@ case "$1" in fi ;; (gopher://*) - if [ "$file" ] - then - printf '/%s\r\n' "$path" | nc "$host" - exit - else - exec sacc "$1" - fi + exec sacc "$1" ;; (http://*|https://*) case "$host" in @@ -156,7 +160,7 @@ case "$1" in curl -o "$file" "$1" exec xdg-open "$file" else - exec chromium "$1" + exec firefox "$1" fi ;; esac @@ -170,7 +174,7 @@ case "$1" in printf '/j #%s\n' "$path" > "$HOME/var/irc/$host/in" ;; (news://*) - exec chromium "$1" + exec firefox "$1" ;; (sftp://*) [ "$port" = . ] && port='22' @@ -187,7 +191,7 @@ case "$1" in exec printf 'unsupported protocol\n' 1>&2 ;; (r/*) - exec chromium "http://reddit.com/$1" + exec firefox "http://reddit.com/$1" ;; (*\([0-9]\)|*\([0-9]p\)) exec man "${1%\(*}" @@ -226,7 +230,7 @@ case "$1" in exec radare2 "$1" ;; (*.html) - exec chromium "$1" + exec firefox "$1" ;; (*.tgz) mv "$1" "${1%.tgz}.tar.gz" diff --git a/pack/dvtm/build b/pack/dvtm/build @@ -3,7 +3,7 @@ cp -f "$PACK/dvtm/config.mk" config.mk cp -f "$PACK/dvtm/config.h" config.h -make PREFIX="$PREFIX" install +../build/gmake mkdir -p "$HOME/.terminfo/d" cp -f dvtm.info.cdb "$HOME/.terminfo/d/dvtm-256color" diff --git a/pack/farbfeld/build b/pack/farbfeld/build @@ -9,5 +9,7 @@ case "$(uname)" in ;; esac +cp "$PACK/farbfeld/config.mk" config.mk + $make $make MANPREFIX="$PREFIX/share/man" PREFIX="$PREFIX" install diff --git a/pack/farbfeld/config.mk b/pack/farbfeld/config.mk @@ -0,0 +1,18 @@ +# farbfeld version +VERSION = 3 + +# Customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/man + +# flags +CPPFLAGS = -D_DEFAULT_SOURCE +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os -I'$(PACKROOT)/include' +LDFLAGS = -s +PNG-LDFLAGS = -lpng -L'$(PACKROOT)/lib' +JPG-LDFLAGS = -ljpeg -L'$(PACKROOT)/lib' + +# compiler and linker +CC = cc diff --git a/uri b/uri @@ -1,9 +1,10 @@ 9p://9p.io -git://github.com/ReturnInfinity/BareMetal-kernel -git://github.com/cjdelisle/cjdns -git://github.com/cjdelisle/cjdns -git://github.com/jercos/cjdns -git://github.com/netsukuku/netsukuku +git://github.com/OpenBSD/src.git +git://github.com/ReturnInfinity/BareMetal-kernel.git +git://github.com/cjdelisle/cjdns.git +git://github.com/cjdelisle/cjdns.git +git://github.com/jercos/cjdns.git +git://github.com/netsukuku/netsukuku.git gopher://bitreich.org gopher://codemadness.org gopher://drkhsh.at @@ -26,6 +27,7 @@ http://adsabs.harvard.edu/abs/2007arXiv0705.0820L http://bitreich.org:3232/live http://bulbizarre.swordarmor.fr/munin/ http://calomel.org +http://cb.vu/unixtoolbox.xhtml http://code.dogmap.org http://en.wikipedia.org/wiki/Netsukuku http://fuwafuwa.moe