This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main -s | |
| !# | |
| ;;; pg-tunnel.scm -- Connect to a PostgreSQL instance through an SSH tunnel. | |
| ;; Copyright (C) 2015 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or | |
| ;; modify it under the terms of the GNU General Public License as |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main -s | |
| !# | |
| ;;; forwarding-to-unix-socket.scm | |
| ;; Copyright (C) 2015 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or | |
| ;; modify it under the terms of the GNU General Public License as |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main -s | |
| !# | |
| ;;; open-remote-pipe.scm | |
| ;; Copyright (C) 2015 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or | |
| ;; modify it under the terms of the GNU General Public License as |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main -s | |
| !# | |
| ;; Copyright (C) 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or | |
| ;; modify it under the terms of the GNU General Public License as | |
| ;; published by the Free Software Foundation, either version 3 of the | |
| ;; License, or (at your option) any later version. |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main -s | |
| !# | |
| ;;; uptop.scm -- Uppercase top. | |
| ;; Copyright (C) 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or | |
| ;; modify it under the terms of the GNU General Public License as |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -e main | |
| !# | |
| (use-modules (ice-9 popen) | |
| (srfi srfi-41) ; streams | |
| ;; Guile-ICS | |
| (ics) | |
| (ics conv)) |
This file contains hidden or 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
| var express = require ('express'); | |
| var app = express (); | |
| function main() { | |
| app.post ('/data/3.0/measurements', function (req, res) { | |
| console.log (req.headers); | |
| req.on("data", function (data) { | |
| console.log(data); | |
| }); |
This file contains hidden or 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
| # | |
| # Dockerized http://mediagoblin.org/ | |
| # Copyright (C) Loic Dachary <loic@dachary.org> | |
| # Copyright (C) 2018 Artyom V. Poptsov <poptsov.artyom@gmail.com> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Affero General Public License as published | |
| # by the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
This file contains hidden or 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
| (define-syntax M#! | |
| (syntax-rules (=>) | |
| ((_ type command) | |
| (list (quote type) command)) | |
| ((_ => type command) | |
| `(,(list (quote type) command))) | |
| ((_ => type command rest ...) | |
| `(,(list (quote type) command) ,@(M#! rest ...))) | |
| ((_ type command => rest ...) | |
| (apply plumb `(,(list (quote type) command) ,@(M#! => rest ...)))))) |
This file contains hidden or 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
| #!/usr/bin/guile \ | |
| -L modules -e main -s | |
| !# | |
| (use-modules (oop goops) | |
| (ssh session) | |
| (ssh auth) | |
| (metabash plumber) | |
| (metabash diff)) |