Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
TTS & DTV

tsukumi tsukumijima

📺
TTS & DTV
View GitHub Profile
@seraphy
seraphy / hyperv_androidemu.md
Last active August 19, 2023 09:13
Hyper-VでサクサクAndroidエミュレータを使おうと思ったらハマったはなし

AndroidエミュレータはHyper-Vに対応しているはず

Android EmulatorはHyper-Vが有効なマシンでは動かない、という話は、今となっては昔の話...のはず。

プライバシーとセキュリティが糞雑魚な情弱御用達コミュニティサイトであるQiitaの「Hyper-VでサクサクAndroidエミュレータを使おう」という記事を読んで、なにも難しいことはなさそうだし、VirtualBoxをやめてHyper-Vに移行してもいいかな、と思った。1

ところが、試してみたところ、私の環境では、なかなかうまくゆかずハマってしまった。

Footnotes

  1. Docker for Windowsを試したくなったため

@meetnick
meetnick / add-external-conf-includes-samba-support
Last active March 14, 2025 01:37
Add support to .conf files individually in samba
#!/bin/sh
# default samba .conf file
SMB_CONF=/etc/samba/smb.conf
# samba directory to store samba configuration files individually
SMB_CONF_DIR=/etc/samba/smb.conf.d/
# first need to create individual .conf files with desired sambs configuration into path defined above
# file which contains all includes to samba configuration files individually
SMB_INCLUDES=/etc/samba/includes.conf
# adds includes.conf file existance to smb.conf file
@uru2
uru2 / scan_ch_mirak.sh
Last active October 22, 2024 11:29
Mirakurun/mirakcチャンネル設定出力
#!/bin/sh
# Mirakurun/mirakc channel yaml output by uru (https://twitter.com/uru_2)
#
# require:
# stz2012/epgdump
# xmllint (libxml2 tools)
# ISDB-T/S record software
# recpt1, dvbv5-zap & Chinachu/dvbconf-for-isdb
set -eu
@u-haru
u-haru / Howto_Update
Last active June 6, 2022 19:17
QuaStation改造用メモ
goru
dd if=/dev/zero of=/dev/block/mmcblk0 seek=86314 bs=512 count=30666 //EMMCのカーネル部分のゼロ埋め
dd if=/dev/zero of=/dev/block/mmcblk0 seek=6488576 bs=1 count=62714 //EMMCのdtb部分のゼロ埋め
dd if=/mnt/usb/Image of=/dev/block/mmcblk0 seek=86314 bs=512 //EMMCへのカーネル書き込み
dd if=/mnt/usb/rtd-1295-giraffe-2gb-tee.dtb of=/dev/block/mmcblk0 seek=6488576 bs=1 //EMMCへのdtb書き込み
@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@lucis
lucis / pushingToRepos.ts
Created December 27, 2019 02:27
Creating repositories and pushing files to them using @octokit/rest (GitHub API)
import Octokit from '@octokit/rest'
import glob from 'globby'
import path from 'path'
import { readFile } from 'fs-extra'
const main = async () => {
// There are other ways to authenticate, check https://developer.github.com/v3/#authentication
const octo = new Octokit({
auth: process.env.PERSONAL_ACESSS_TOKEN,
})
@tsunyan
tsunyan / エクスプローラ周り重い人向け覚書.bat
Last active January 18, 2025 17:55
エクスプローラ周り重い人向け覚書
@rem 「※※※」は私のコメントです(元増田のコメントではありません)
@rem エクスプローラ周り重い人向け覚書
@rem https://anond.hatelabo.jp/20191116220232
@rem ■ システム設定
@rem Windows Defender自身を検索して無限ループに陥る問題を解消する
@rem - 設定→更新とセキュリティ→Windows セキュリティ→ウイルスの驚異の防止
@rem - ウイルスと驚異の防止の設定→設定の管理
@larsneo
larsneo / viewer.html
Last active November 5, 2024 11:30 — forked from jsprpalm/viewer.html
Pinch zoom implementation for PDF.js viewer
<!-- Goes into viewer.html just before ending </body> -->
<script>
let pinchZoomEnabled = false;
function enablePinchZoom(pdfViewer) {
let startX = 0, startY = 0;
let initialPinchDistance = 0;
let pinchScale = 1;
const viewer = document.getElementById("viewer");
const container = document.getElementById("viewerContainer");
const reset = () => { startX = startY = initialPinchDistance = 0; pinchScale = 1; };
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 12, 2025 14:47
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@loilo
loilo / read-blob.md
Last active October 24, 2023 20:57
Promise Wrapper for FileReader

Promise Wrapper for FileReader

This is a simple wrapper for the FileReader API. It allows converting a Blob (and therefore a File as well) to either a plain text string, a data URL or an ArrayBuffer with a nice and clean Promise API.

Signature

This is the TypeScript signature of the readBlob function:

/**
 * Read a blob or file and convert it to another data type