Skip to content

Instantly share code, notes, and snippets.

@mouseos
mouseos / dokuwiki-image-upload.js
Created December 12, 2023 07:59
dokuwikiで画像アップロードするjavascipt。formはhtmlで書くこと。
/*
画像をアップロードする機能
sectokに入っているトークンとcallparameterでアップロードを行うと指定してアップロード
*/
document.getElementById('uploadButton').addEventListener('click', function() {
const fileInput = document.getElementById('fileInput');
const files = fileInput.files;
// 必要なパラメーターを追加
const sectok = document.querySelector('input[name="sectok"]').value;

通常起動


Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3-00228
S - IMAGE_VARIANT_STRING=JAASANAZA
S - OEM_IMAGE_VERSION_STRING=kkkim
S - Boot Config, 0x000000e1
B -       269 - PBL, Start
@mouseos
mouseos / soap-bash.sh
Created August 13, 2023 14:21
soap apiをいろんな言語から使う練習
#!/bin/bash
# SOAP endpoint URL
URL="http://www.soapclient.com/xml/soapresponder.wsdl"
# Create the SOAP request message
SOAP_REQUEST=$(cat <<EOF
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.SoapClient.com/xml/SoapResponder.wsdl">
<soapenv:Header/>
<soapenv:Body>
@mouseos
mouseos / emmc_appsboot.c
Created August 3, 2023 14:48
z581klのaboot
This file has been truncated, but you can view the full file.
#include "emmc_appsboot.h"
void thunk_FUN_8f600020(void)
{
int iVar1;
undefined *puVar2;
undefined *puVar3;
This file has been truncated, but you can view the full file.
#include "20.aboot.h"
void thunk_FUN_8f600020(void)
{
int iVar1;
undefined *puVar2;
undefined *puVar3;
import pprint
import re
def optimod_to_dict(input_string):
lines = input_string.strip().split('\n')
data_dict = {}
current_key = None
for line in lines:

バス一覧取得

curl 'https://api.buskita.com/get-buses?first=1' \
--data-raw '{"siteId":1}' \
--compressed
{
    "siteId": 1,
@mouseos
mouseos / fix_faust_juce_color.sh
Created June 2, 2023 05:46
faustのjuceプロジェクトで書きだすと色がおかしくなる問題を修正するスクリプト
#!/bin/bash
# ファイル名と置換前の行を指定します
file="FaustPluginProcessor.cpp"
target_line1="void FaustPlugInAudioProcessorEditor::paint (juce::Graphics& g)"
target_line2="virtual void paint(juce::Graphics& g) override"
target_line3="Name of the component is moved in Tab (so removed from component)"
target_line4="Drawing Scale"
target_line5="Display the name if it's needed"
target_line6="VUMeter Name"
@mouseos
mouseos / img2html.py
Created May 30, 2023 02:59
画像(img1.jpg)をhtmlに変換する
from PIL import Image
image = Image.open("img1.jpg")
width, height = image.size
pixels = image.load()
print( "<style>.a{display:flex;} .b{width:1px; height:1px;}</style>")
for i in range(height):
print("<div class='a'>")
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2.C2-00030
S - IMAGE_VARIANT_STRING=DAASANAZA
S - OEM_IMAGE_VERSION_STRING=buildservera-All-Series
S - Boot Config, 0x000000e1
B - 1567 - PBL, Start
B - 4546 - bootable_media_detect_entry, Start
B - 49011 - bootable_media_detect_success, Start
B - 49015 - elf_loader_entry, Start