Skip to content

Instantly share code, notes, and snippets.

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

tsukumi tsukumijima

📺
TTS & DTV
View GitHub Profile
@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 May 4, 2025 21:37
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 April 24, 2025 07:07
mirakurun BSCSチャンネル設定(2024/06/01現在)
- name: NHK BS1
type: BS
channel: BS15_0
serviceId: 101
- name: NHK BSプレミアム
type: BS
channel: BS03_1
serviceId: 103
- 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 January 23, 2022 00:17
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を試したくなったため

@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