History

merge

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit bd75d822 parents a1a213f fe3ec1a3 files · +15 −7Browse files

Unified · Split

3 files
  1. README.md +1 −1
  2. gridup +8 −6
  3. qp.c +6 −0
README.md+1−1
@@ -16,7 +16,7 @@ harm. · 15 unmodified lines
16* `xml.[ch]` XML parser, works as a streaming parser as well16* `xml.[ch]` XML parser, works as a streaming parser as well
17 17
18* `clear` removes all program output from the terminal, leaving only commands used18* `clear` removes all program output from the terminal, leaving only commands used
19* `gridup` connects to 9p.zone, mounts stuff from its registry and starts chat windows19* `gridup` connects to 9grid chat
20* `helpmeport` generates files needed to port a Unix library or a binary20* `helpmeport` generates files needed to port a Unix library or a binary
21* `watch` watch-like tool, imagine21* `watch` watch-like tool, imagine
22* `st-xx-lha-convert` extract `*.lha` archives and convert samples to WAV, on UNIX22* `st-xx-lha-convert` extract `*.lha` archives and convert samples to WAV, on UNIX
gridup+8−6
@@ -1,8 +1,10 @@
1#!/bin/rc1#!/bin/rc
2 2
3srv tcp!registry.9p.zone!6675 registry /n/registry3# 9p.zone domain is gone
4srv tcp!chat.9p.zone!9990 9p.zone.chat /n/chat.9p.zone4#srv tcp!registry.9p.zone!6675 registry /n/registry
5srv -c tcp!9p.zone!9991 9p.zone.disk /n/disk5#srv -c tcp!9p.zone!9991 9p.zone.disk /n/disk
6
7srv tcp!chat.only9fans.com!9990 chat.only9fans.com /n/9chat
6 8
7fn clean {9fn clean {
8 echo $1 | sed 's/.*!([^!]+)!.*/\1/'10 echo $1 | sed 's/.*!([^!]+)!.*/\1/'
@@ -17,9 +19,9 @@ for(s in /n/registry/tcp*){ · 8 unmodified lines
17#!/bin/rc19#!/bin/rc
18chan=$120chan=$1
19label $chan21label $chan
20echo JOIN $nick to chat >>/n/chat.9p.zone/$chan22echo JOIN $nick to chat >>/n/9chat/$chan
21cat /n/chat.9p.zone/$chan &23cat /n/9chat/$chan &
22while() cat | sed '1s/^/'$nick' → /' >>/n/chat.9p.zone/$chan24while() cat | sed '1s/^/'$nick' → /' >>/n/9chat/$chan
23...25...
24chmod +x /tmp/chatcat26chmod +x /tmp/chatcat
25 27
qp.c+6−0
@@ -103,6 +103,12 @@ qpnext(Trie *t, char **pk, int *plen, void **pv) · 102 unmodified lines
103 *pv = t->leaf.v;103 *pv = t->leaf.v;
104 return 0;104 return 0;
105 }105 }
106 if(*pk == t->leaf.k || strcmp(*pk, t->leaf.k) == 0){
107 *pk = nil;
108 *plen = 0;
109 *pv = nil;
110 return -1;
111 }
106 112
107 return -1;113 return -1;
108}114}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t