Skip to content

Instantly share code, notes, and snippets.

View dynamis's full-sized avatar
れっさーぱんだもふもふ

dynamis dynamis

れっさーぱんだもふもふ
View GitHub Profile
@dynamis
dynamis / .git.commit.template
Created June 25, 2023 16:53
git commit template
# feat add/update features
# fix bug fix
# docs document update only
# style coding style change only
# perf performance update
# refactor refactoring
# test test code
# chore build, tool etc.
@dynamis
dynamis / _worker.js
Last active August 20, 2022 23:09
basic auth worker for cloudflare pages
/**
* Shows how to restrict access using the HTTP Basic schema.
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
* @see https://tools.ietf.org/html/rfc7617
*
* A user-id containing a colon (":") character is invalid, as the
* first colon in a user-pass string separates user and password.
*/
const BASIC_USER = 'username';
const BASIC_PASS = 'password';
{"version":"1.1.0","date":"2020-02-13T07:16:13.552Z","startTime":77016041.14500014,"endTime":77021065.25500003,"session":"a622cae0-2d9f-4589-82ed-86e57f205dd6","location":"http://pr.iij.ad.jp/live/","locationIp":"10.131.55.86","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36","sequence":4329,"calc":true,"video":[{"property":{"uuid":"01cc96b9-531f-463c-b187-4f0a411f9d5b","viewCount":-1,"domainName":"pr.iij.ad.jp","holderId":"","width":640,"height":450,"videoWidth":1280,"videoHeight":720,"mediaSize":-1,"defaultPlaybackRate":1,"playbackRate":0,"playStartTime":1581501155212.0,"playEndTime":-1,"currentPlayPos":6455.206022,"currentPlayTime":5718.657},"playback_quality":[],"play_list_info":[{"type":"video","representationId":"1","bps":2500000,"videoWidth":1280,"videoHeight":720,"container":"mp4","codec":"avc1.4d4028","fps":30,"chunkDuration":12000,"serverIp":"pr.iij.ad.jp"},{"type":"video","representationId":"2","bps":1500000,"videoWidth"
!function a(b, c, d) {
function e(g, h) {
if (!c[g]) {
if (!b[g]) {
var i = "function" == typeof require && require;
if (!h && i)
return i(g, !0);
if (f)
return f(g, !0);
var j = new Error("Cannot find module '" + g + "'");
"undefined" === typeof jwplayer && (jwplayer = function() {
if (jwplayer.api)
return jwplayer.api.selectPlayer.apply(this, arguments)
}
,
jwplayer.version = "6.12.4956",
jwplayer.vid = document.createElement("video"),
jwplayer.audio = document.createElement("audio"),
jwplayer.source = document.createElement("source"),
function() {
@dynamis
dynamis / tech.diff
Created November 27, 2019 12:56
enterprise ビルド結果と現在のファイルの差分
Only in dist/: .DS_Store
Only in dist/: .gitkeep
diff -ru dist/addons/index.html tech/addons/index.html
--- dist/addons/index.html 2019-11-27 21:47:40.000000000 +0900
+++ tech/addons/index.html 2019-11-27 20:39:22.000000000 +0900
@@ -1,12 +1,12 @@
<?php
$page_type = 'QAPage'; // https://schema.org/QAPage
-$page_title = 'アドオン、プラグイン | 技術的なよくある質問 | 法人向け情報 | Mozilla Japan';
@dynamis
dynamis / post-build.js
Created April 26, 2019 05:22
VuePress で .html 無しでビルドした後で .html を付与するやっつけスクリプト
var fs = require("fs");
var glob = require("glob");
var path = require("path");
/*
* 以下のすべてに該当するファイルに .html 拡張子を付与する
* - ディレクトリではない
* - assets や images ディレクトリ内のファイルではない
* - ファイル名が _ で始まらない
* - ファイル名に . を含まない (拡張子がない)
@dynamis
dynamis / github-slack.md
Last active January 5, 2024 00:52
GitHub - Slack 連携メモ

GitHub と Slack の連携 には次の設定が必要:

@dynamis
dynamis / note.md
Last active March 20, 2019 10:44
network relating update

日程不明:

@dynamis
dynamis / WiFi 設定書き換え手順
Last active March 5, 2019 03:34
Raspberry Pi の WiFi 設定書き換え手順
# 変更前の WiFi から
ssh pi@raspberrypi-NN.local "sudo dd of=/etc/wpa_supplicant/wpa_supplicant.conf" < wpa_supplicant.conf
ssh pi@raspberrypi-NN.local "sudo reboot"
# 変更後の WiFi に切り替えて
ssh pi@raspberrypi-NN.local echo OK
ssh pi@raspberrypi-NN.local "sudo shutdown now"