Skip to content

Instantly share code, notes, and snippets.

バス一覧取得

curl 'https://api.buskita.com/get-buses?first=1' \
--data-raw '{"siteId":1}' \
--compressed
{
    "siteId": 1,
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:
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;
@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;
@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>

通常起動


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 / 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;
@mouseos
mouseos / descriptions.json
Created December 22, 2023 10:04 — forked from stellasphere/descriptions.json
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/[email protected]"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/[email protected]"
}
@mouseos
mouseos / manifest.json
Created January 3, 2024 02:29
chrome 拡張 manifest v3 でレスポンスヘッダーを書き換える。この場合twitter.comのiframe表示を許可している
{
"manifest_version": 3,
"name": "Twitterスパム通報",
"version": "1.0",
"permissions": [
"browsingData",
"declarativeNetRequest"
],
"description": "スパム自動通報Chrome拡張",
"background": {
@mouseos
mouseos / content.js
Created January 3, 2024 12:06
chrome拡張でMutationObserver使ってリアルタイムにconsoleにツイート表示するコード
// Mutation Observerの設定
const targetNode = document.body; // 監視対象の要素
const config = { childList: true, subtree: true };
// 新しいtweet要素が追加された時に行う処理
const tweetObserverCallback = function(mutationsList, observer) {
for(const mutation of mutationsList) {
if (mutation.type === 'childList') {
// [data-testid="tweet"]要素が追加された場合に実行する処理
const newTweets = document.querySelectorAll('[data-testid="tweet"]');