This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rebol [] | |
server: tls://smtp.gmail.com:465 | |
server: tls://smtp.sparkpostmail.com:587 | |
smtp: open server | |
net-trace on | |
smtp/awake: function [event /local port] [ | |
net-log ajoin ["=== Client event:" event/type] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rebol [] | |
import <xml> | |
content: {<div class='partial'>google$ probe to string! read http://www.rebol.com <br> ^{<!doctype html> <br> <html><head> <br> <meta name="generator" content="REBOL WIP Wiki"/> <br> <meta name="date" content="3-Aug-2016/5:30:21"/> <br> <meta name="rebol-version" content="2.100.97.4.2"/> <br> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> <br> <meta http-equiv="Pragma" content="no-cache" /> <br> <meta http-equiv="Expires" content="-1" /> <br> <meta http-equiv="Cache-Control" content="no-cache" /> <br> <meta name="Description" content="REBOL: a lightweight computer language with advanced semantics. Site includes products, downloads, documentation, and<span>…</span></div>} | |
decode-xml content | |
comment { | |
>> do %decodexml.reb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
<json> [https://raw.githubusercontent.com/rgchris/Scripts/master/ren-c/altjson.reb] | |
<xml> [http://giuliolunati.altervista.org/r3/altxml.reb] | |
<amazon-s3> [http://reb4.me/r3/s3.reb] | |
<httpd> [https://raw.githubusercontent.com/rgchris/Scripts/master/ren-c/httpd.reb] | |
<twitter> [https://raw.githubusercontent.com/gchiu/rebolbot/master/twitter.r3] | |
<trello> [http://codeconscious.com/rebol-scripts/trello.r] | |
<upgrade> [https://raw.githubusercontent.com/gchiu/rebol-misc/master/upgrade.reb] | |
<rebmu> [https://raw.githubusercontent.com/hostilefork/rebmu/master/rebmu.reb] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./r3-make -qs ../src/tools/make-make.r OS_ID=detect GIT_COMMIT=e79023423424adfasfs | |
Option set for building: 0.4.40 linux-x64 | |
Created: ../../make/makefile | |
make prep | |
make[1]: Entering directory `/home/ren-c/make' | |
./r3-make -qs ../src/tools/make-natives.r | |
------ Generate tmp-natives.r | |
228 natives | |
------ Generate tmp-actions.r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[#{B0344C61D8DB38535CA8AFCEAF0BF12B881DC200C9833DA726E9376C2E32CFF7} = hmac-sha256 #{0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B} #{4869205468657265}] | |
[#{5BDCC146BF60754E6A042426089575C75A003F089D2739839DEC58B964EC3843} = hmac-sha256 #{4A656665} #{7768617420646F2079612077616E7420666F72206E6F7468696E673F}] | |
[#{773EA91E36800E46854DB8EBD09181A72959098B3EF8C122D9635514CED565FE} = hmac-sha256 #{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA} #{DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD}] | |
[#{82558A389A443C0EA4CC819899F2083A85F0FAA3E578F8077A2E3FF46729665B} = hmac-sha256 #{0102030405060708090A0B0C0D0E0F10111213141516171819} #{CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD}] | |
[#{60E431591EE0B67F0D8A26AACBF5B77F8E0BC6213728C5140546040F0EE37F54} = hmac-sha256 #{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rebol [] | |
hmac-sha256: func [k m][ | |
key: copy k | |
message: copy m | |
blocksize: 256 | |
if (length key) > blocksize [ | |
key: sha256 key | |
] | |
if (length key) < blocksize [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
file: %write-udp.reb | |
] | |
url: udp://239.255.255.250:1900 | |
commands1: copy [ #{460055} .1 #{4E0E55}] | |
commands2: copy [ #{460055} #{4E0E55}] | |
write-udp: func [url [url!] commands | |
/local port command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rebol [] | |
; do %shttpd.reb | |
; do https://raw.githubusercontent.com/rgchris/Scripts/master/httpd.reb | |
do https://gist.githubusercontent.com/rgchris/96a02d1a226d0ab2e605914fce6bcf80/raw/f96b8a1b7bb9b9f972f86e45f8d74a404808b747/httpd-renc.reb | |
server: open [ | |
scheme: 'httpd 8001 [ | |
probe request/action | |
switch request/action [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
file: %ssdp-server.reb | |
] | |
serve-udp: open udp://:1900 | |
serve-udp/awake: func [evt][ | |
; print ["multicast event:" evt/type " on " evt/port/spec/port-id " at " now/precise] | |
; probe query evt/port | |
print ["Event received on UDP ===>" evt/type] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
file: %a1.reb | |
notes: {ssdp with http server in ren-c | |
httpd.reb is here https://gist.github.com/rgchris/73510e7d643eb0a6b9fa69b849cd9880 | |
} | |
] | |
serve-udp: open udp://:1900 |