Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
#include <gtk/gtk.h>
/*
* Based on: https://trac.macports.org/ticket/64484
*
* gcc $(pkg-config --libs --cflags gtk+-3.0) -o gtk-test gtk-test.c
*/
int main(int argc, char *argv[])
{
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [15753]
Path: /opt/local/Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.10.11 (3.10.11)
Code Type: ARM-64 (Native)
Parent Process: zsh [13635]
@Akkiesoft
Akkiesoft / aiscript_pictcollect.txt
Last active March 7, 2023 01:52
mikutter pictcollectっぽいファイル名を出すMisskeyプラグイン(雑)
/// @ 0.12.4
### {
name: "pictcollectっぽいファイル名生成"
version: "0.0.1"
author: "Akkiesoft"
description: "pictcollectっぽいファイル名を生成する"
}
Plugin:register_note_action(`pictcollectっぽいファイル名生成` @(note) {
// for debug
diff --git a/app/javascript/mastodon/features/about/index.js b/app/javascript/mastodon/features/about/index.js
index e59f73738..d9191114e 100644
--- a/app/javascript/mastodon/features/about/index.js
+++ b/app/javascript/mastodon/features/about/index.js
@@ -209,7 +209,7 @@ class About extends React.PureComponent {
</div>
<Helmet>
- <title>{intl.formatMessage(messages.title)}</title>
+ {!multiColumn && <title>{intl.formatMessage(messages.title)}</title>}
@Akkiesoft
Akkiesoft / ansible-qs.md
Created December 11, 2022 05:34
Ansible快速指南

Ansible にゅうもん

いるもの

  • Ansible実行環境
    • この手順ではRockyLinux 8を使用
  • 構築対象のサーバー
    • この手順ではRockyLinux 8を使用

事前準備

@Akkiesoft
Akkiesoft / servo.py
Created December 7, 2022 02:19
玄関の電気のスイッチをオン・オフしたかった.py
import board
import busio
from digitalio import DigitalInOut
# for Web Server
from adafruit_wsgi.wsgi_app import WSGIApp
# for ESP32 SPI
from adafruit_esp32spi import adafruit_esp32spi
import adafruit_esp32spi.adafruit_esp32spi_wsgiserver as server
import adafruit_esp32spi.adafruit_esp32spi_wifimanager as wifimanager
# for motor
@Akkiesoft
Akkiesoft / rpi_picow_conformity.py
Created November 10, 2022 13:32
Monitor whether Raspberry Pi Pico W's Japanese technical compliance information has been registered in Raspberry Pi PIP
#!/usr/bin/env python3
from html.parser import HTMLParser
import urllib.request
from mastodon import Mastodon
class MyHTMLParser(HTMLParser):
def __init__(self):
super().__init__()
self.found_h5 = False
@Akkiesoft
Akkiesoft / rpi-hats-with-stackypi.md
Created November 9, 2022 13:23
Play Raspberry Pi HAT boards on the StackyPi GPIO

Play Raspberry Pi HAT boards on the StackyPi GPIO

Requires

  • StackyPi or a board with GPIO design compatible with StackyPi

matrix

Product MicroPython CircuitPython
@Akkiesoft
Akkiesoft / pico-pcd8544-test.py
Last active October 25, 2022 20:29
MOVED TO https://github.com/Akkiesoft/akkiesoft-pico/tree/main/MicroPython/test-pico-pcd8544 / PCD8544 (Nokia 5110) LCD sample for Raspberry Pi Pico
# PCD8544 (Nokia 5110) LCD sample for Raspberry Pi Pico
# Required library:
# https://github.com/mcauser/micropython-pcd8544
# And this sample script is based on above repository.
# Connections:
# [pcd8544:pico(physical pin)]
# Gnd: Pico GND (38)
# BL : Pico GP28(34)
# Vcc: Pico 3V3 (36)
@Akkiesoft
Akkiesoft / pokemongo-spotlight-hour.yml
Last active October 4, 2022 07:45
PokemonGoスポットライトアワーの内容.yml
spotlight-hour:
- date: 2022/10/25
pokemon: カゲボウズ
bonus: 捕獲XP倍、相棒ポケモンを連れ歩くと最初と最後になにかある?
- date: 2022/10/18
pokemon: ムウマ
bonus: 捕獲XP倍
- date: 2022/10/11
pokemon: ゴースト
bonus: 捕獲すな倍