Skip to content

Instantly share code, notes, and snippets.

View jfrederickson's full-sized avatar

Jonathan Frederickson jfrederickson

View GitHub Profile
@jfrederickson
jfrederickson / gist:53a052779a6ace93002aff11dd23b373
Created December 15, 2023 19:02
Reform power mode dmesg log
[ 1862.871624] ------------[ cut here ]------------
[ 1862.871663] firmware failed to ack driver for entering Deep Power mode
[ 1862.877232] WARNING: CPU: 1 PID: 5848 at drivers/net/wireless/realtek/rtw88/ps.c:106 rtw_power_mode_change+0x134/0x188 [rtw88_core]
[ 1862.888915] Modules linked in: aes_ce_ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device realtek nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set dwmac_meson8b stmmac_platform stmmac mdio_mux_meson_g12a mdio_mux of_mdio nf_tables libcrc32c qrtr algif_hash algif_skcipher af_alg bnep rtw88_8822cs binfmt_misc rtw88_8822c rtw88_sdio hci_uart rtw88_core btqca mac80211 btrtl btbcm libarc4 ledtrig_pattern btintel bluetooth reform2_lpc(O) ecdh_generic cfg80211 snd_soc_meson_axg_sound_card snd_soc_meson_card_utils ecc rfkill snd_soc_wm8960 snd_soc_meson_g12a_tohdmitx snd_soc_meson_axg_tdmin snd_soc_meson_axg_tdmout meso
goblins/0@(guile-user) [1]> (define state-machine (spawn ^state-machine))
goblins/0@(guile-user) [1]> ($ state-machine 'hello)
$5 = "Hello world!"
goblins/0@(guile-user) [1]> ($ state-machine 'switch)
goblins/0@(guile-user) [1]> ($ state-machine 'hello)
$6 = "I'm the second state!"
goblins/0@(guile-user) [1]>
@jfrederickson
jfrederickson / channel-test.scm
Created December 11, 2022 03:35
async goblins to sync call-return semantics via channels
(use-modules
(goblins)
(goblins actor-lib methods)
(fibers)
(fibers channels))
(define main-vat (spawn-vat))
(define-vat-run main-run main-vat)
(define remote-vat (spawn-vat))
(define-vat-run remote-run remote-vat)
[nix-shell:~/common-lisp/nyxt]$ sbcl
This is SBCL 2.1.9.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (require :asdf)
("ASDF" "asdf" "UIOP" "uiop")
[jfred@jfred-reform:~/sources/nyxt]$ nix-shell build-scripts/shell.nix --run sbcl
This is SBCL 2.1.9.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (require :asdf)
("ASDF" "asdf" "UIOP" "uiop")
[jfred@jfred-reform:~]$ WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_FORCE_SANDBOX=0 GDK_GL=gles nyxt
<INFO> [09:54:36] Listening to socket "/run/user/1000/nyxt/nyxt.socket".
Nyxt version 2.2.3
Could not determine the accessibility bus address
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
<INFO> [09:57:57] Loading history of 8 URLs from "/home/jfred/.local/share/nyxt/history/default.lisp".
<INFO> [09:57:57] Loading history of 8 URLs from "/home/jfred/.local/share/nyxt/history/default.lisp".
exec swayidle -w timeout 300 'swaylock -f -i /home/jfred/Pictures/wallpaper/dennoucoil.jpeg' \
timeout 10 'if pgrep swaylock; then swaymsg "output * dpms off"; fi' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -i /home/jfred/Pictures/wallpaper/dennoucoil.jpeg'
@jfrederickson
jfrederickson / nexdock.txt
Last active October 21, 2020 22:51
Trackpad Input Info
Device: SINO WEALTH USB KEYBOARD Mouse
Kernel: /dev/input/event21
Group: 7
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
@jfrederickson
jfrederickson / gist:bb443af9795fb4b5644e257429b97689
Created February 26, 2019 14:28
Jenkins configuration as code schema
jenkins_1 | Feb 26, 2019 2:26:24 PM io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry internalLookup
jenkins_1 | WARNING: Configuration-as-Code can't handle type class io.jenkins.plugins.casc.plugins.Plugins
jenkins_1 | Feb 26, 2019 2:26:24 PM io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry internalLookup
jenkins_1 | WARNING: Configuration-as-Code can't handle type class jenkins.branch.MultiBranchProjectViewHolder$ViewImpl
jenkins_1 | Feb 26, 2019 2:26:24 PM io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry internalLookup
jenkins_1 | WARNING: Configuration-as-Code can't handle type class jenkins.branch.OrganizationFolderViewHolder$ViewImpl
jenkins_1 | Feb 26, 2019 2:26:24 PM io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry internalLookup
jenkins_1 | WARNING: Configuration-as-Code can't handle type class hudson.model.ViewProperty
jenkins_1 | Feb 26, 2019 2:26:24 PM io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry internalLookup
jenkins_
2019-01-24 23:12:32,311 - root - 211 - WARNING - None- ***** STARTING SERVER *****
2019-01-24 23:12:32,367 - root - 214 - WARNING - None- Server /opt/synapse-nov18/synapse/app/homeserver.py version 0.34.1.1 (b=HEAD,t=v0.34.1.1,5c792ee)
2019-01-24 23:12:32,405 - twisted - 242 - WARNING - None- /var/lib/matrix-synapse/envs/syn3/lib/python3.5/site-packages/psycopg2/__init__.py:144: builtins.UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.