Skip to content

Instantly share code, notes, and snippets.

@ebzzry
ebzzry / configuration.nix
Created May 20, 2020 08:20
configuration.nix
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
systemd-boot.enable = true;
> sequel -C sqlite:///home/vagrant/db/db.sqlite postgresql://doadmin:kxtxuol7ammwyu9e@mimix-wiki-do-user-6768439-0.db.ondigitalocean.com:25060/wiki?sslmode=require
Databases connections successful
Migrations dumped successfully
Tables created
Begin copying data
Begin copying records for table: migrations
Finished copying 10 records for table: migrations
Begin copying records for table: migrations_lock
Finished copying 1 records for table: migrations_lock
Begin copying records for table: assetFolders
> pgloader db.sqlite "postgresql://doadmin:kxtxuol7ammwyu9e@mimix-wiki-do-user-6768439-0.db.ondigitalocean.com:25060/wiki?sslmode=require"
2019-11-26T11:00:25.971000Z ERROR PostgreSQL ["migrations"] Database error 22008: date/time field value out of range: "1571916718568-01-01"
CONTEXT: COPY migrations, line 1, column migration_time: "1571916718568-01-01"
2019-11-26T11:00:27.175000Z ERROR PostgreSQL ["migrations"] Database error 22008: date/time field value out of range: "1571916718574-01-01"
CONTEXT: COPY migrations, line 1, column migration_time: "1571916718574-01-01"
2019-11-26T11:00:28.581000Z ERROR PostgreSQL ["migrations"] Database error 22008: date/time field value out of range: "1571916718578-01-01"
CONTEXT: COPY migrations, line 1, column migration_time: "1571916718578-01-01"
2019-11-26T11:00:29.792000Z ERROR PostgreSQL ["migrations"] Database error 22008: date/time field value out of range: "1571916718580-01-01"
CONTEXT: COPY migrations, line 1, column migration_time: "1571916718580-01-01"
2019-11-2
@ebzzry
ebzzry / keybase.md
Created September 20, 2019 05:29
keybase.md

Keybase proof

I hereby claim:

  • I am ebzzry on github.
  • I am ebzzry (https://keybase.io/ebzzry) on keybase.
  • I have a public key ASBRJJkULMAPiHjjOGwA-i8uCKeNareCCDLpPNHLZs8ryAo

To claim this, I am signing this object:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBH1DutdBRmM51ln97O42U4xIiJIyTstIRUdYeSNRdPO ebzzry@vulpo
abelbredisto: Ĉu abel-bredisto aŭ abelbred-isto?
abelĉelaro: Ĉu abel-ĉelaro aŭ abelĉel-aro?
abiarbaro: Ĉu abi-arbaro aŭ abiar-baro?
abidarmo: Ĉu abi-darmo aŭ abid-armo?
abomenindeco: Ĉu abomen-indeco aŭ abomenind-eco?
acerbranĉo: Ĉu acer-branĉo aŭ acerb-ranĉo?
acidetigi: Ĉu acid-etigi aŭ acidet-igi?
adaptebleco: Ĉu adapt-ebleco aŭ adaptebl-eco?
administraro: Ĉu ad-ministraro aŭ administr-aro?
administrejo: Ĉu ad-ministrejo aŭ administr-ejo?
@ebzzry
ebzzry / markdown.el
Last active August 3, 2019 02:09
markdown.el
(defun insert-until-last (string)
"Insert string until column"
(let* ((end (save-excursion
(previous-line)
(end-of-line)
(current-column)))
(count (if (not (zerop (current-column)))
(- end (current-column))
end)))
(dotimes (c count)
@ebzzry
ebzzry / custom.css
Created July 20, 2018 07:55
custom.css
body {
font-family: Georgia, Cambria, Palatino, "Palatino Linotype", "Times New Roman", Times, serif;
font-size: 110%;
}
.mw-body h1, .mw-body h2 {
font-family: Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans", Tahoma, Geneva, Helvetica, Arial, sans-serif;
}
@ebzzry
ebzzry / Dockerfile
Created June 30, 2018 02:13
Dockerfile
FROM nixos/nix
MAINTAINER Rommel Martinez <ebzzry@ebzzry.io>
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN nix-channel --update
RUN nix-env -iA nixpkgs.git nixpkgs.sbcl nixpkgs.gnumake nixpkgs.curl nixpkgs.cl-launch nixpkgs.bzip2 nixpkgs.nix-prefetch-scripts
RUN mkdir -p ~/common-lisp
RUN git clone https://github.com/fare/asdf ~/common-lisp/asdf
RUN git clone https://github.com/ebzzry/baf ~/common-lisp/baf
RUN curl -O https://beta.quicklisp.org/quicklisp.lisp
RUN sbcl --load quicklisp.lisp --eval '(quicklisp-quickstart:install)' --eval '(let ((ql-util::*do-not-prompt* t)) (ql:add-to-init-file) (ql:quickload :cl-launch) (sb-ext:quit))'
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
grub = {