Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
-------------------------------------
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 / ssci.js
Last active June 10, 2023 13:39
rpilocatorみたいなことを自前でやるときのスクレイピングすべきデータ(スイッチサイエンス編)
// Data scraping for Switch Science(JP)
// SKU
document.getElementsByClassName('product-details__block')[6].innerText.split(': ')[1];
// Stock count
document.getElementsByClassName('product-details__block')[8].innerText.split(': ')[1];
// Price(JPY)
document.getElementsByClassName('money')[0].innerText.substr(1);
/* Item list
Pi Zero 2W: https://ssci.to/7600
Pi 3A+: https://ssci.to/4110
@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 / fansite_picture_renamer_mac_rev2.py
Last active August 17, 2022 10:09
https://gist.github.com/Akkiesoft/2f3a4153f9d30c206f3960cf6f291f20 をロストしたと思ってまた書いた結果なんかちょっとコードが短くなったやつ
# Fanbox/Fantia renamer tool
# for TinyPicoTrio with TINY2040
import board
import digitalio
from time import sleep
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keycode import Keycode
@Akkiesoft
Akkiesoft / fansite_picture_renamer_mac.py
Created July 11, 2022 14:39
CircuitPythonと自作キーボードで使うファンサイトの画像保存時のファイルリネーム用マクロキーボード。たくさん画像があるときはこんなん使うよりスクリプト組んだほうが楽だぞ。
# 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.keyboard_layout_us import KeyboardLayoutUS