Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
DTV

tsukumi tsukumijima

📺
DTV
View GitHub Profile
@nyanshiba
nyanshiba / ffmpegtest.sh
Last active July 25, 2020 11:23
tsエンコ秘伝のタレ
# QSV H.264 LA-ICQ
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -global_quality 25 -c:v h264_qsv -preset:v veryslow -g 300 -bf 6 -refs 4 -b_strategy 1 -look_ahead 1 -look_ahead_depth 60 -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -pix_fmt nv12 -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 VBR_MinQP
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v h264_nvenc -preset:v slow -profile:v high -rc:v vbr_minqp -rc-lookahead 32 -spatial-aq 1 -aq-strength 1 -qmin:v 23 -qmax:v 25 -b:v 1500k -maxrate:v 3500k -pix_fmt yuv420p -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 CQP
ffmpeg -y -hide_banner -nostats -analyzeduration
@AndroPlus-org
AndroPlus-org / userdata以外すべての場合
Last active September 16, 2025 03:14
Androidのイメージバックアップ (パスやファイル名は端末によって変わるため、適宜変更してください)
# 1. root権限で実行するためsuに
su
※suコマンドを実行できないGSIの場合は一旦exitでadb shellを抜けて以下を実行
adb root
adb shell
# 2. 各イメージがあるパスへ移動する (/dev/block/bootdevice/by-name/ の場合もあります)
cd /dev/block/by-name/
# 3. バックアップ保存用ディレクトリを作成
@mwufi
mwufi / install_docker_in_colab.sh
Last active June 11, 2025 04:48
Install Docker in Google Colab!
# First let's update all the packages to the latest ones with the following command
sudo apt update -qq
# Now we want to install some prerequisite packages which will let us use HTTPS over apt
sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq
# After that we will add the GPG key for the official Docker repository to the system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# We will add the Docker repository to our APT sources
@s3rj1k
s3rj1k / HowTo
Last active August 4, 2025 21:42
Ubuntu 20.04.3 AutoInstall
# For recent versions of Ubuntu:
- https://www.pugetsystems.com/labs/hpc/ubuntu-22-04-server-autoinstall-iso/
# Docs:
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference
- https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
- https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/53
# Download ISO Installer:
@Connie-Wild
Connie-Wild / channels.yml
Last active September 16, 2025 15:29
mirakurun BSCSチャンネル設定(2025/09/01現在)
- name: NHK BS1
type: BS
channel: BS15_0
serviceId: 101
- name: BS日テレ
type: BS
channel: BS13_0
serviceId: 141
- name: BS朝日
type: BS
@thomd
thomd / workspace_utils.py
Last active July 30, 2023 21:53
Keeping Your Session Active in Google Colab
# The workspace_utils.py module includes an iterator wrapper called keep_awake and a context manager
# called active_session that can be used to maintain an active session during long-running processes.
# The two functions are equivalent, so use whichever fits better in your code.
#
# EXAMPLE 1
#
# from workspace_utils import keep_awake
# for i in keep_awake(range(5)): #anything that happens inside this loop will keep the workspace active
# # do iteration with lots of work here
#
; TVTest チャンネル設定ファイル
; 名称,チューニング空間,チャンネル,リモコン番号,サービスタイプ,サービスID,ネットワークID,TSID,状態
;#SPACE(0,BS/CS110)
NHKBS1,0,17,1,1,101,4,16625,1
NHKBS1,0,17,2,1,102,4,16625,0
NHKBSプレミアム,0,18,3,1,103,4,16433,1
NHKBSプレミアム,0,18,104,1,104,4,16433,0
BS日テレ,0,15,4,1,141,4,16592,1
BS日テレ,0,15,4,1,142,4,16592,0
BS日テレ,0,15,4,1,143,4,16592,0
@kou1okada
kou1okada / getappx.sh
Last active January 23, 2023 07:27
getappx - Get URLs of .appx files from Microsoft Store.
#!/usr/bin/env bash
# getappx - Get URLs of .appx files from Microsoft Store.
# Copyright 2020 (c) Koichi OKADA. All rights reserved.
# This script is destributed under the MIT license.
source hhs.bash 0.2.0
function fetch_post () # URL POSTDATA
{
local cachedir=/tmp/.cache
@gtgteq
gtgteq / it930x.nix
Last active August 12, 2025 13:00
px4_drv.nix
{ stdenv, fetchFromGitHub, fetchzip }:
stdenv.mkDerivation rec {
pname = "it930x-firmware";
version = "1";
src = fetchFromGitHub {
owner = "nns779";
repo = "px4_drv";
rev = "90e0a4b30b812e7e5fff4483144f165de8914157";
@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を試したくなったため