Skip to content

Instantly share code, notes, and snippets.

View alcidesfp's full-sized avatar

Alcides Flores Pineda alcidesfp

View GitHub Profile
@Metaxal
Metaxal / logging.rkt
Last active September 10, 2023 09:52
Simple usage of Racket's logging facility
#lang racket/base
; One way to define a logger
(define lg (make-logger 'my-logger))
; Define a receiver for this logger, along with a log level
(define rc (make-log-receiver lg 'error)) ; also try with 'debug
; Another way to define a logger, with additional forms
(define-logger lg2)
(define rc2 (make-log-receiver lg2-logger 'debug))
@artyom-poptsov
artyom-poptsov / sscp.scm
Created October 5, 2015 07:20
Implementation of scp in Scheme upon the new (ssh sftp) module from Guile-SSH.
#!/usr/bin/guile \
-e main -s
!#
;;; sscp.scm -- Scheme Secure Copy implementation.
;; 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