Skip to content

Instantly share code, notes, and snippets.

View jmercouris's full-sized avatar
🌴

John Mercouris jmercouris

🌴
View GitHub Profile
const { app, net, protocol, BrowserWindow } = require('electron')
const path = require('path')
const { pathToFileURL } = require('url')
protocol.registerSchemesAsPrivileged([
{
scheme: 'a',
privileges: {
standard: true
}
browser window
const { app, net, protocol, BrowserWindow } = require('electron')
const path = require('path')
const { pathToFileURL } = require('url')
protocol.registerSchemesAsPrivileged([
{
scheme: 'a',
privileges: {
standard: true,
The value
100
is not of type
CHARACTER
when setting an element of (ARRAY CHARACTER)
[Condition of type TYPE-ERROR]
Restarts:
0: [ABORT] abort thread (#<THREAD "hunchentoot-worker-127.0.0.1:53411" RUNNING {1001B57B73}>)
(defun session-server-addresses ()
"Return a list of server addresses for the current session."
(when-let (string (getenv "DBUS_SESSION_BUS_ADDRESS"))
(parse-server-addresses-string string)))
--------------------------------------------------
> echo $DBUS_LAUNCHD_SESSION_BUS_SOCKET
/private/tmp/com.apple.launchd.3vLn74rWFQ/unix_domain_listener
-----------------------------------------------------------------------------------
(defmethod open-connection (event-base (addresses list) &key (if-failed :error))
(with-if-failed-handler if-failed
(or (some (lambda (address)
(open-connection event-base address :if-failed nil))
addresses)
(error "No server addresses left to try to open."))))
-----------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
Contents of /opt/local/lib
> ls -la libfix*
-rwxr-xr-x 1 root admin 31212 Jun 7 16:06 libfixposix.3.dylib
lrwxr-xr-x 1 root admin 19 Jun 7 16:06 libfixposix.dylib -> libfixposix.3.dylib
--------------------------------------------------------------------------------------------------------
CL-USER> cffi:*foreign-library-directories*
("/opt/local/lib" (CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "LD_LIBRARY_PATH") (CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "DYLD_LIBRARY_PATH") (UIOP/OS:GETCWD) (CFFI::DARWIN-FALLBACK-LIBRARY-PATH))
External process exited with code 1.
Command was: "g++" "-m64" "-Wno-write-strings" "-I" "/opt/local/include/" "-I/Users/jmercouris/.quicklisp/dists/quicklisp/software/iolib-v0.8.3/src/grovel/" "-o" "/Users/jmercouris/.cache/common-lisp/sbcl-1.4.13-macosx-x64/Users/jmercouris/.quicklisp/dists/quicklisp/software/iolib-v0.8.3/src/syscalls/ffi-types-unix" "/Users/jmercouris/.cache/common-lisp/sbcl-1.4.13-macosx-x64/Users/jmercouris/.quicklisp/dists/quicklisp/software/iolib-v0.8.3/src/syscalls/ffi-types-unix.c"
Output was:
Error output was:
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
/Users/jmercouris/.cache/common-lisp/sbcl-1.4.13-macosx-x64/Users/jmercouris/.quicklisp/dists/quicklisp/software/iolib-v0.8.3/src/syscalls/ffi-types-unix.c:6:10: fatal error: 'lfp.h' file not found
#include <lfp.h>
^~~~~~~
1 error generated.
rsync_push:
rsync -ar $(CURRENT_DIR) $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --filter=':- .gitignore'
kill_remote:
ssh $(SSH_USER)@$(SSH_HOST) \
pkill sbcl
run_on_remote:
setsid nohup $(LISP) \
--dynamic-space-size 2048 \
#user nobody;
worker_processes 1;
# This default error log path is compiled-in to make sure configuration parsing
# errors are logged somewhere, especially during unattended boot when stderr
# isn't normally logged anywhere. This path will be touched on every nginx
# start regardless of error log location configured here. See
# https://trac.nginx.org/nginx/ticket/147 for more info.
#
#user nobody;
worker_processes 1;
# This default error log path is compiled-in to make sure configuration parsing
# errors are logged somewhere, especially during unattended boot when stderr
# isn't normally logged anywhere. This path will be touched on every nginx
# start regardless of error log location configured here. See
# https://trac.nginx.org/nginx/ticket/147 for more info.
#