Skip to content

Instantly share code, notes, and snippets.

View mimura1133's full-sized avatar

Satoshi Mimura mimura1133

View GitHub Profile
import struct
"""
FILE STRUCTURE:
[GLOBALHEADER]
-PADDING with 0xFF-
[MUSIC HEADER 01]
-PADDING with 0xFF-
[MUSIC DATA 01]
//
// CKlau 社製 KVM スイッチの「有線リモコン」から信号を読み出すサンプル。
// 2022 Satoshi Mimura ( @mimura1133 )
//
// 対象の製品例 : https://www.amazon.co.jp/dp/B07HRBBLWN?th=1
//
// GPIO 17 番に信号線、GND に GND を接続すると動くと思います。
// また GPIO 22 番から内部で取得した信号を吐き出すようになっているので、オシロスコープでデバッグできます。
//
// 夜中に一気に書き上げたので、デバッグコードやら洗練されてない書き方が多々ありますが
/*
HTTPS サーバを用意して、Header に下記のパラメータを設定する必要あり。
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Permissions-Policy: direct-sockets=(self)
---
99.0.4807.0 現在、起動時は下記パラメータの設定も必要
@mimura1133
mimura1133 / dlna_proxy.py
Created May 16, 2021 20:01
dlna_proxy.py
#!/bin/python3
#
# SSDP (DLNA の探索プロトコル) を吸って吐くプロキシ。
# Wireguard のように純粋にbridgeできないネットワーク間で使うと幸せになれる気がします。
# (使ったことでネットワークがダウン等しても保証は出来ませんので、自己責任でどうぞ。)
#
# Author : Satoshi Mimura (@mimura1133)
#
#!/bin/bash
#
# This script is for Ubuntu 19.10 to download and install XRDP+XORGXRDP via
# source.
#
# Modified from https://github.com/microsoft/linux-vm-tools/blob/master/ubuntu/18.04/install.sh
# by Satoshi Mimura (@mimura1133, http://mimumimu.net/)
#
@mimura1133
mimura1133 / conrainers.cs
Created May 26, 2019 09:20
containers challenge's builder code.
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace build
{
{
"defaultProfile": "{5b351a96-8fb8-49d7-b960-4bb0d1aee3c5}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"experimental_showTabsInTitlebar": true,
"profiles": [
{
"guid": "{5b351a96-8fb8-49d7-b960-4bb0d1aee3c5}",
comment_char %
escape_char /
% This file is part of the GNU C Library and contains locale data.
% The Free Software Foundation does not claim any copyright interest
% in the locale data contained in this file. The foregoing does not
% affect the license of the GNU C Library as a whole. It does not
% exempt you from the conditions of the license if your use would
% otherwise be governed by that license.
; 一部コンポーネントにおいて、新暦処理を適用するとアプリケーションがクラッシュする事例の報告を受けております。
; つきましては、当該の副作用がご理解いただける方のみご利用頂き、そうでないかたは利用されないようお願い致します。
;
;Windows Registry Editor Version 5.00
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras]
;"2019 05 01"="令和_令_Reiwa_R"
@mimura1133
mimura1133 / install.sh
Last active January 29, 2023 21:24
Enhanced Session for Kali Linux.
#!/bin/bash
# Original : https://raw.githubusercontent.com/Microsoft/linux-vm-tools/master/arch/install-config.sh
###############################################################################
# Update our machine to the latest code if we need to.
#
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run with root privileges' >&2
exit 1