Skip to content

Instantly share code, notes, and snippets.

DATA_DIR=保存先
# MEMO: 初回のみ以下のオプションをつけて起動する
# -e "ADMIN_USERNAME=xxx" \
# -e "ADMIN_EMAIL=xxx@example.com \
# -e "ADMIN_PASSWORD=なにか設定" \
docker run \
-d \
# Debian9でDebian11のvimのパッケージ(8.2)を借りる
# https://matoken.org/blog/2018/10/23/debian-ubuntu-borrows-the-upstream-package/
# (1)
echo 'Package: *' | sudo tee /etc/apt/preferences.d/priority
echo 'Pin: release n=bullseye' | sudo tee -a /etc/apt/preferences.d/priority
echo 'Pin-Priority: 100' | sudo tee -a /etc/apt/preferences.d/priority
# (2)
echo 'deb http://deb.debian.org/debian bullseye main' | sudo tee -a /etc/apt/sources.list
@textlint-ja/no-dropping-i: い抜き言葉を使用しています。
/home/foo/.npm-global/lib/node_modules/technological-book-corpus-ja/source/Hatena-Textbook/database-programming.md:86:15
v
85.
86. ## いろんなDBMS知ってますか?
87.
^
@textlint-ja/no-dropping-i: い抜き言葉を使用しています。
/home/foo/.npm-global/lib/node_modules/technological-book-corpus-ja/source/Hatena-Textbook/web-application-development-perl.md:944:24
@shirayu
shirayu / chrome-apt.md
Created November 25, 2019 12:52
chromeのバージョンがaptで上がらない問題
$ apt-cache policy google-chrome-stable
google-chrome-stable:
  インストールされているバージョン: 78.0.3904.87-1
  候補:               78.0.3904.108-1
  バージョンテーブル:
     78.0.3904.108-1 80
         98 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
 *** 78.0.3904.87-1 80
 100 /var/lib/dpkg/status
@shirayu
shirayu / readme.md
Last active December 29, 2018 14:04
textlint-rule-ja-no-redundant-expression PR9.
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
# Apache License 2.0
沖縄で|はしか|が大流行している。
ディズニー|割引|きくっぽい。
インターネット|上|等|で取引が完結するという販売形態
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Public Domain
Add DTEND lines to a Google Calendar's ics file.
Exporter seems to omit a DTEND line if it corresponds to the start time.
However, importer sets the end time to an hour later if DTEND line is omitted.
'''
@shirayu
shirayu / sample
Last active June 27, 2017 11:39
silence check
$ find fujitou_angry -type f | sort -k1 | xargs python3 ./silence_checker.py | awk '{if($4<100)print}'
fujitou_angry/fujitou_angry_040.wav 12040 249 1
fujitou_angry/fujitou_angry_043.wav 8980 237 1
fujitou_angry/fujitou_angry_046.wav 8040 146 1
fujitou_angry/fujitou_angry_054.wav 13040 261 1
fujitou_angry/fujitou_angry_055.wav 5100 0 15
fujitou_angry/fujitou_angry_056.wav 8830 39 1
fujitou_angry/fujitou_angry_057.wav 6470 0 1
fujitou_angry/fujitou_angry_066.wav 8880 191 1
fujitou_angry/fujitou_angry_067.wav 9340 0 1
@shirayu
shirayu / dump-doitim.sh
Last active August 8, 2016 13:30
dump-doitim.sh
#!/bin/sh
# Usage
# dump.sh ~/path/to/save/
USERNAME=<YOUR_ID>
PW=<YOUR_PW>
URL=<YOUR FILTER URL like https://i.doit.im/api/tasks/filter/xxxxx-xxxxxx-xxxx>
OUTPUT=$1
@shirayu
shirayu / go-net0.go
Last active August 29, 2015 14:06
golang-sample
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
urls := []string{