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
(in-package :net.aserve) | |
;; Speedy to cache this. | |
(defparameter *ws-saved-ut-to-date* nil) | |
;; Generate the date for apache-style logs from a time and timezone. | |
(defun ws-universal-time-to-date (ut &optional (time-zone 8)) | |
(when (stringp ut) (return-from ws-universal-time-to-date ut)) | |
(let ((cval *ws-saved-ut-to-date*)) | |
(if* (and (eql ut (caar cval)) |
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/env bash | |
# Print the current bill for each AWS account, with a total at the end | |
# for all accounts. | |
# ideas from and thanks to: | |
# https://medium.com/synaptic-tech/daily-aws-billing-alert-4ea541475ff8 | |
set -eu | |
# Change "..." to contain the profile names of your AWS accounts. | |
identities="..." |
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
$ docker run -it -e DISPLAY -v $(dirname $XAUTHORITY)/:$(dirname $XAUTHORITY)/ -v ${lisp}:/lisp $container | |
# dpkg --add-architecture i386 | |
dpkg --add-architecture i386 | |
# apt-get update && apt-get -y upgrade | |
apt-get update && apt-get -y upgrade | |
Ign:1 http://packages.linuxmint.com tessa InRelease | |
Get:2 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB] | |
Get:3 http://packages.linuxmint.com tessa Release [24.1 kB] | |
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease | |
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] |
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
#! /fi/cl/9.0/bin/linuxamd64.64/mlisp -#D | |
(in-package :user) | |
(defparameter *instance-exceptions* | |
;; these instances are known to be running and are exceptions: | |
...) | |
(defparameter *volume-exceptions* | |
;; these instances are known to be running and are exceptions: |