Skip to content

Instantly share code, notes, and snippets.

Akira Ouchi Akkiesoft

Block or report user

Report or block Akkiesoft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mikutter-windows.log
GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_file_at_scale: assertion 'width > 0 || width == -1' failed
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.7/lib/gobject-introspection/loader.rb:616:in `invoke'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gobject-introspection-3.3.7/lib/gobject-introspection/loader.rb:306:in `block (2 levels) in load_constructor_infos'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gdk_pixbuf2-3.3.7/lib/gdk_pixbuf2/pixbuf.rb:113:in `initialize_with_hash'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gdk_pixbuf2-3.3.7/lib/gdk_pixbuf2/pixbuf.rb:26:in `initialize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gdk_pixbuf2-3.3.7/lib/gdk_pixbuf2/deprecated.rb:45:in `new'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/gdk_pixbuf2-3.3.7/lib/gdk_pixbuf2/deprecated.rb:45:in `new'
from C:/Users/akkie/mikutter/core/plugin/skin/model/image.rb:35:in `pixbuf'
from C:/Users/akkie/mikutter/core/plugin/gtk/world_shifter.rb:114
View 994-2.log
/Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.1.1/lib/delayer/deferred/worker.rb:35:in `resume': fiber called across stack rewinding barrier
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.1.1/lib/delayer/deferred/worker.rb:35:in `block in push'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/procedure.rb:24:in `run'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/extend.rb:92:in `run_once'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/extend.rb:64:in `run'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer.rb:36:in `method_missing'
from /Users/akkie/mikutter/core/plugin/gtk/delayer.rb:10:in `block in boot'
from /Users/akkie/mikutter/core/plugin/gtk/mainloop.rb:9:in `main_iteration'
from /Users/akkie/mikutter/core/plugin/gtk/mainloop.rb:9:in `block in mainlo
View mikutter-994.log
/Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.1.0/lib/delayer/deferred/worker.rb:35:in `resume': fiber called across stack rewinding barrier
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.1.0/lib/delayer/deferred/worker.rb:35:in `block in push'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/procedure.rb:24:in `run'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/extend.rb:92:in `run_once'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer/extend.rb:64:in `run'
from /Users/akkie/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/delayer-1.0.0/lib/delayer.rb:36:in `method_missing'
from /Users/akkie/mikutter/core/plugin/gtk/delayer.rb:10:in `block in boot'
from /Users/akkie/mikutter/core/plugin/gtk/mainloop.rb:9:in `main_iteration'
from /Users/akkie/mikutter/core/plugin/gtk/mainloop.rb:9:in `block in mainlo
@Akkiesoft
Akkiesoft / a_fiber.rb
Created Aug 16, 2019
FiberErrorで死んだら次回起動時に一番目のアカウントでFiberErrorと投稿するプラグイン。core/pluginの中に入れて、bugreportより先に実行される必要がある。
View a_fiber.rb
# -*- coding: utf-8 -*-
Plugin.create :a_fiber do
on_boot do |service|
begin
fiber if crashed_exception.is_a? Exception
rescue => e
# バグ報告中にバグで死んだらつらいもんな
error e end end
@Akkiesoft
Akkiesoft / rpi-conformity.php
Created Jul 30, 2019
GitHubの特定ファイルのHistoryをRSS形式で出力するPHPスクリプト。PHPが動く適当なWebサーバーに置いてRSSとして購読して使う。
View rpi-conformity.php
<?php
$title = "History for documentation/hardware/raspberrypi/conformity.md";
$url = "https://github.com/raspberrypi/documentation/commits/master/hardware/raspberrypi/conformity.md";
$description = $title;
$link_prefix = "https://github.com";
$html = file_get_contents($url);
$doc = new DOMDocument();
$doc->loadHTML($html);
$finder = new DomXPath($doc);
View kumabokujo.rb
# -*- coding: utf-8 -*-
Plugin.create(:mikutter_kumabokujo) do
command(
:mikutter_kumabokujo,
name: 'のぼりべつクマ牧場',
condition: lambda{ |opt| true },
visible: true,
role: :timeline
) do |opt|
View a.log
./squashfs-root/AppRun: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by ./squashfs-root/AppRun)
./squashfs-root/AppRun: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./squashfs-root/AppRun)
./squashfs-root/AppRun: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by ./squashfs-root/AppRun)
./squashfs-root/AppRun: /lib/arm-linux-gnueabihf/libz.so.1: version `ZLIB_1.2.9' not found (required by /squashfs-root/usr/bin/../lib/libpng16.so.16)
@Akkiesoft
Akkiesoft / mikutter-appimage.diff
Last active Jun 30, 2019
mikutterのappimageを実行した環境のアーキテクチャでやっていきする改変と、gir1.2-glib-2.0はいるんじゃないですかねえしらんけど
View mikutter-appimage.diff
diff --git a/deployment/appimage/Dockerfile b/deployment/appimage/Dockerfile
index 839ec539..c72827fc 100644
--- a/deployment/appimage/Dockerfile
+++ b/deployment/appimage/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:16.04
+FROM debian:buster
ARG ruby_version=2.6.3
ARG APPDIR=/AppDir
@Akkiesoft
Akkiesoft / appimage-for-mikutter-on-rpi-buster.md
Created Jun 30, 2019
How to build mikutter AppImage on Raspbian buster(armhf).
View appimage-for-mikutter-on-rpi-buster.md

Dockerとかツール類の用意

sudo vi /etc/apt/source.list.d/docker.list

deb https://download.docker.com/linux/debian/ buster nightly
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
@Akkiesoft
Akkiesoft / 03_minecraft.lua
Created Jun 14, 2019
Minecraft keys layout for Pimoroni Keybow(12-keys)
View 03_minecraft.lua
require "keybow"
-- Minecraft keys layout for Pimoroni Keybow(12-keys) --
-- Key mappings --
function handle_key_00(pressed)
keybow.set_key(keybow.ESC, pressed)
end
You can’t perform that action at this time.