Skip to content

Instantly share code, notes, and snippets.

[/opt/pleroma]% sudo -Hu pleroma MIX_ENV=prod mix phx.server
15:46:35.022 [error] GenServer Sshd.Server terminating
** (RuntimeError) Unhandled error encountered: 'No host key available'
(esshd) lib/esshd/server.ex:82: Sshd.Server.handle_cast/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: {:"$gen_cast", :start}
15:46:35.024 [info] Application esshd exited: shutdown
{"Kernel pid terminated",application_controller,"{application_terminated,esshd,shutdown}"}
@ynakao
ynakao / minimum_sway_config
Last active April 2, 2019 07:04
Sway bug report 190402
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term termite
# start a terminal
bindsym $mod+Return exec $term
@ynakao
ynakao / tridactyl_config
Created March 26, 2019 03:29
tridactyl config
data:application/json,{"configversion":"1.7","subconfigs":{},"priority":0,"exmaps":{"<Enter>":"ex.accept_line","<C-j>":"ex.accept_line","<C-m>":"ex.accept_line","<Escape>":"ex.hide_and_clear","<ArrowUp>":"ex.prev_history","<ArrowDown>":"ex.next_history","<C-a>":"text.beginning_of_line","<C-e>":"text.end_of_line","<C-u>":"text.backward_kill_line","<C-k>":"text.kill_line","<C-c>":"text.kill_whole_line","<C-f>":"ex.complete","<Tab>":"ex.next_completion","<S-Tab>":"ex.prev_completion","<Space>":"ex.insert_space_or_completion"},"ignoremaps":{"<S-Insert>":"mode normal","<CA-Escape>":"mode normal","<CA-`>":"mode normal","<S-Escape>":"mode normal","<C-^>":"tab %23","<C-6>":"tab %23"},"inputmaps":{"<Escape>":"composite unfocus | mode normal","<C-[>":"composite unfocus | mode normal","<C-i>":"editor","<Tab>":"focusinput -n","<S-Tab>":"focusinput -N","<CA-Escape>":"mode normal","<CA-`>":"mode normal","<C-^>":"tab %23","<C-6>":"tab %23"},"imaps":{"<Escape>":"composite unfocus | mode normal","<C-[>":"composite unfocus | m
@ynakao
ynakao / init.el
Last active January 14, 2023 07:36
Circe to znc example
(use-package circe
:config
(setq circe-network-options
(quote
(("freenode-znc"
:host "znc.example.com"
:use-tls t
:port 6697
:user "zncusername/zncfreenode" ;; `zncfreenode` is freenode network name at your znc server
:pass "zncpassword")
==== Timestamps ====
Launch: Sat May 12 08:07:55 2018
Crash: Sat May 12 08:08:07 2018
==== Version info ====
qutebrowser v1.3.0
Git commit: 7762017f0-dirty (2018-05-03 19:25:04 +0200)
Backend: QtWebEngine (Chromium 61.0.3163.140)
CPython: 3.6.5
@ynakao
ynakao / qute1.2_after_eval_log.txt
Created March 10, 2018 15:56
logs after `:debug-pyeval objreg.get('app').setAttribute(7, True)` at v1.2.0 qutebrowser
==== Timestamps ====
Launch: Sun Mar 11 00:52:57 2018
Crash: Sun Mar 11 00:54:52 2018
==== Version info ====
qutebrowser v1.2.0
Git commit: 5f01c7e79-dirty (2018-03-09 22:40:59 +0100)
Backend: QtWebEngine (Chromium 61.0.3163.140)
CPython: 3.6.4
@ynakao
ynakao / qute_v1.1.1.log
Created March 10, 2018 12:42
qutebrowser v1.2.0 and v1.1.1 log
==== Timestamps ====
Launch: Sat Mar 10 21:32:32 2018
Crash: Sat Mar 10 21:33:14 2018
==== Version info ====
qutebrowser v1.1.1
Git commit: 4e8abaa (2018-01-20 19:21:20 +0100)
Backend: QtWebEngine (Chromium 56.0.2924.122)
CPython: 3.6.1
class Kf5Kwallet < Formula
desc "Secure and unified container for user passwords"
homepage "https://www.kde.org"
url "https://download.kde.org/stable/frameworks/5.41/kwallet-5.41.0.tar.xz"
sha256 "74ec71ab2dd621ce65762148f37b1078bc8fb6910ace1b04bab8e4f5c675bfbd"
revision 1
head "git://anongit.kde.org/kwallet.git"
depends_on "cmake" => :build
@ynakao
ynakao / okular.patch
Created November 29, 2017 14:08
okular-17.08.3.tar.xz macOS build patch
diff --git a/generators/spectre/CMakeLists.txt b/generators/spectre/CMakeLists.txt
index d808c36..5d6927d 100644
--- a/generators/spectre/CMakeLists.txt
+++ b/generators/spectre/CMakeLists.txt
@@ -24,7 +24,7 @@ ki18n_wrap_ui(okularGenerator_ghostview_SRCS
kconfig_add_kcfg_files(okularGenerator_ghostview_SRCS conf/gssettings.kcfgc )
-okular_add_generator(okularGenerator_ghostview MODULE ${okularGenerator_ghostview_SRCS})
+okular_add_generator(okularGenerator_ghostview ${okularGenerator_ghostview_SRCS})
@ynakao
ynakao / 00.options.out
Created November 29, 2017 13:10
okular log files
kde-mac/kde/okular