Skip to content

Instantly share code, notes, and snippets.

View TinyKitten's full-sized avatar
🚧
Rebuilding

Tsubasa SEKIGUCHI TinyKitten

🚧
Rebuilding
View GitHub Profile
@TinyKitten
TinyKitten / ble_advertising.py
Created November 29, 2023 13:26
Badger 2040 W BLE Peripheral(for TrainLCD App)
from micropython import const
import struct
import bluetooth
# Advertising payloads are repeated packets of the following form:
# 1 byte data length (N + 1)
# 1 byte type (see constants below)
# N bytes type-specific data
_ADV_TYPE_FLAGS = const(0x01)
LANG=C LC_ALL=C sed -i '' s'|/Registry (Adobe) /Ordering (Japan1) /Supplement [0-9]|/Registry(Adobe) /Ordering(Identity) /Supplement 0|g' /path/to/pdf
@TinyKitten
TinyKitten / Go WebAssembly settings.json
Last active March 25, 2019 02:57
なんか知らないけどVS Codeでsyscall/jsがインポートできなかったので
{
"go.toolsEnvVars": {
"GOARCH":"wasm",
"GOOS":"js",
},
"go.testEnvVars": {
"GOARCH":"wasm",
"GOOS":"js",
}
}
.DS_Store
.ansible
.bundle
.envrc
.github/
.idea/
.travis.yml
.vagrant
npm-debug.log
package.box
@TinyKitten
TinyKitten / file0.txt
Created July 23, 2018 18:29
depを導入した環境でmultiple-value uuid.NewV4() in single-value contextと怒られる ref: https://qiita.com/TinyKitten/items/9b66e5a65153e2855af1
[[override]]
name = "github.com/satori/go.uuid"
branch = "master"
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'canary',
@TinyKitten
TinyKitten / file0.php
Last active June 22, 2018 15:04
WordPressでHTTPS設定にしたあとにtoo_many_redirectsになったときの対処法 ref: https://qiita.com/TinyKitten/items/2e77f54cd216ffbbf3bf
$_SERVER['HTTPS'] = 'on';
$_ENV['HTTPS'] = 'on';
$_SERVER['HTTP_HOST'] = 'YOUR_BLOG_URL_HERE';
$_SERVER['SERVER_NAME'] = 'YOUR_BLOG_URL_HERE';
$_ENV['HTTP_HOST'] = 'YOUR_BLOG_URL_HERE';
$_ENV['SERVER_NAME'] = 'YOUR_BLOG_URL_HERE';