Skip to content

Instantly share code, notes, and snippets.

@a2line
a2line / backup
Created January 17, 2024 02:10
Geneweb remote backup (import/export + external tools)
#!/bin/bash
# Set the database name
DATABASE_NAME="mydatabase"
GENEWEB_PORT="2317"
# Set the remote server details
REMOTE_HOST="192.168.2.50"
REMOTE_USER="user"
REMOTE_PASSWORD="password"
@a2line
a2line / opam2.2.0a-build-log.txt
Created July 5, 2023 12:01
Opam 2.2.0-alpha make cold
$ make cold
env MAKE=make BOOTSTRAP_EXTRA_OPTS= BOOTSTRAP_TARGETS=world.opt BOOTSTRAP_ROOT=.. BOOTSTRAP_DIR=bootstrap ./shell/bootstrap-ocaml.sh auto
configure: Configuring OCaml version 4.14.1
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32
checking for x86_64-w64-mingw32-ld... x86_64-w64-mingw32-ld
checking how to print strings... printf
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
A2@D ~/pilotes/configGenerator
$ ./genAll.sh
+ ./configGenerator.pl x_xkb_root
+ ./configGenerator.pl x_xkb_user
+ ./configGenerator.pl x_xmodmap
+ ./configGenerator.pl x_compose
Unknown symbol: dead_curl
Unknown symbol: U2133
No unicode for symbol: U2133
+ ./configGenerator.pl win_msklc_azerty
@a2line
a2line / opamwin.bat
Last active February 11, 2024 15:20
batch to install Opam/OCaml/ocamlfind/Camlp5 for GeneWeb under Windows
@echo off
REM Quick test for Windows generation: UAC aware or not ; all OS before NT4 ignored for simplicity
SET NewOSWith_UAC=YES
VER | FINDSTR /IL "5." > NUL
IF %ERRORLEVEL% == 0 SET NewOSWith_UAC=NO
VER | FINDSTR /IL "4." > NUL
IF %ERRORLEVEL% == 0 SET NewOSWith_UAC=NO
REM Test if Admin
CALL fltmc >nul 2>&1