Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
@Akkiesoft
Akkiesoft / villager-trading-key-ultimate-plus.py
Last active June 11, 2022 13:12
TinyPicoTrio向けの村人取引キー+。他のキーによく使うアイテム変換を詰めた。
# Written in CircuitPython
# for Raspberry Pi Pico or Pimoroni Tiny2040
import board
import digitalio
from time import sleep
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.mouse import Mouse
@Akkiesoft
Akkiesoft / pixiv_auto_shiwake.py
Last active June 8, 2025 15:02
Pixivの画像ファイルを作者のTwitterIDごとに振り分けるやつ
#!/usr/bin/env python3
import urllib.request
import json
import sys
import os
import time
import shutil
from pixiv_shiwake_config import dir_twitterid, dir_new_pixivid, dir_exist_pixivid, user_id_shiwake_map
@Akkiesoft
Akkiesoft / birds-gone-somewhere.user.js
Created April 22, 2022 13:26
override tweet button to the toot to mastodon.
// ==UserScript==
// @name birds gone somewhere
// @match https://twitter.com/intent/tweet*
// @version 0.1
// @description override tweet button to the toot to mastodon.
// ==/UserScript==
var base = "https://social.mikutter.hachune.net/share?text=";
var url = location.href.split('?')[1].split('&');
db_1 | 2022-03-30 14:19:58.075 UTC [65] ERROR: role "postgres" already exists
db_1 | 2022-03-30 14:19:58.075 UTC [65] STATEMENT: CREATE ROLE postgres;
db_1 | 2022-03-30 14:20:23.142 UTC [53] LOG: checkpoints are occurring too frequently (13 seconds apart)
db_1 | 2022-03-30 14:20:23.142 UTC [53] HINT: Consider increasing the configuration parameter "max_wal_size".
db_1 | 2022-03-30 14:20:36.837 UTC [113] ERROR: canceling autovacuum task
db_1 | 2022-03-30 14:20:36.837 UTC [113] CONTEXT: while scanning block 4451 of relation "public.statuses"
db_1 | automatic vacuum of table "postgres.public.statuses"
db_1 | 2022-03-30 14:20:40.182 UTC [113] ERROR: canceling autovacuum task
db_1 | 2022-03-30 14:20:40.182 UTC [113] CONTEXT: while scanning block 12381 of relation "public.conversations"
db_1 | automatic vacuum of table "postgres.public.conversations"
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: ruby [28302]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: ???
Code Type: ARM-64 (Native)
Parent Process: zsh [26400]
#!/usr/bin/env python3
from html.parser import HTMLParser
import urllib.request
import json
import sys
import os
import time
import shutil

YAMAHA RTX1100 Router

00:36:00.249817 IP (tos 0x0, ttl 64, id 20588, offset 0, flags [none], proto UDP (17), length 341)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from dc:a6:32:03:39:99, length 313, xid 0xbf5e1126, Flags [none] (0x0000)
	  Client-Ethernet-Address dc:a6:32:03:39:99
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message (53), length 1: Discover
	    Parameter-Request (55), length 5: 

gtk3: rbgobj_define_class: Invalid GType and segmentation fault on macOS11.6.2/Ruby3.0.3/ruby-gnome3.5.0

I got segmentation error on the when I ran the below (minimal) code. When I switch ruby version to 2.7.5, it seems to work fine.

My enviroment

  • macOS 11.6.2 (Intel)
  • MacPorts
  • XQuartz
@Akkiesoft
Akkiesoft / mikutter-with-ruby-gnome-3.5.0-on-macos.log
Created January 12, 2022 00:12
即死魔法ruby-gnome3.5.0
akkie@Soful mikutter-gtk3 (master) % ./mikutter
notice: {MIKUTTER_DIR}/core/configloader.rb:43:in `boot': load setting data from /Users/akkie/.mikutter-gtk3/settings/setting.yml
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/uitranslator/uitranslator.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/skin/skin.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/gui/gui.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/activity/activity.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/achievement/achievement.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/gtk3/gtk3.rb
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name)

mikutter5 on macOS with MacPorts memo

Brewは知らない

Intel

Big Sur (X11 Backend)

  • 起動して使えるが、スクリーンショットを取得するとアイコンや背景色が欠落する
  • mikutterの不具合というよりはおそらくMacPortsのgtk3かXQuartzの問題のような気がしている