Skip to content

Instantly share code, notes, and snippets.

View tomoasleep's full-sized avatar

Tomoya Chiba tomoasleep

View GitHub Profile
@mislav
mislav / config.json
Last active May 27, 2024 02:49
Experiment in using GitHub CLI to authenticate fetching docker images from GitHub Package Registry
// ~/docker/config.json
{
"credsStore": "desktop",
"credHelpers": {
"docker.pkg.github.com": "gh",
"ghcr.io": "gh"
}
}
@tomoasleep
tomoasleep / History|-237d927b|entries.json
Last active July 24, 2022 13:13
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"vscode-remote://tomoya-desktop.tomo-asleep.gmail.com.beta.tailscale.net:9090/home/tomoya/.ghq/github.com/increments/Qiita/client/teams/javascripts/src/lib/editor/useSinglePersonEdit.ts","entries":[{"id":"69a9.ts","timestamp":1658126317146},{"id":"SBao.ts","source":"\"~/api/team-draft-item\" からのインポートの更新","timestamp":1658126354478},{"id":"SbPk.ts","timestamp":1658126437462},{"id":"1eA8.ts","timestamp":1658126578849},{"id":"0rUf.ts","timestamp":1658126589559},{"id":"WmEJ.ts","timestamp":1658126624180},{"id":"VFb0.ts","timestamp":1658126636521},{"id":"4ZvI.ts","timestamp":1658126692174},{"id":"ZgNB.ts","timestamp":1658126704684},{"id":"Uwhq.ts","timestamp":1658126733136},{"id":"kHdT.ts","timestamp":1658126747007},{"id":"Ow0W.ts","timestamp":1658126775497},{"id":"Zxj1.ts","timestamp":1658126787519},{"id":"eLlX.ts","timestamp":1658126805019},{"id":"Hhuv.ts","timestamp":1658126841251}]}
@kawaz
kawaz / install-pam_tid-and-pam_reattach.sh
Last active March 22, 2024 06:20
macOSの sudo で TouchID が使えるようにする(tmux内の利用も対応)
#!/bin/bash
# Qiita記事 https://qiita.com/kawaz/items/0593163c1c5538a34f6f
set -e
set -o pipefail
# pam_tidの存在チェック(間違えてLinux環境などで実行されたら中断する)
[[ -f /usr/lib/pam/pam_tid.so.2 ]] || exit 1
[[ "${OSTYPE:0:6}" == "darwin" ]] || exit 1
# /etc/pam.d/sudo を念のためターミナルに出力しておく(似非バックアップ)

2018年4月でもって株式会社Fablicを退職します

3行要約

  • 2017-01 〜 2018-04までの1年ちょい、Fablic社でFRIL開発してたよ
  • そこでの体験は最高だったよ
  • 来年Vancouverに戻るまでの間の予定は現時点で未定だよ

これまで何をやってきたか

@okapies
okapies / mastodon-ostatus.md
Last active September 5, 2021 11:39
Mastodon OStatus API の叩き方

Mastodon が他のインスタンスと情報交換をする OStatus API の使い方。使ってるだけのユーザは知る必要がない裏側の話。

host-meta

Mastodon インスタンスに対して、RFC6415 が規定する /.well-known/host-meta というパスを要求すると以下の XML が返ってくる.

<?xml version="1.0"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
  <Link rel="lrdd" type="application/xrd+xml" template="https://[MASTODON_HOST]/.well-known/webfinger?resource={uri}"/>
</XRD>
@kissge
kissge / Makefile
Created December 17, 2014 10:19 — forked from tomykaira/Makefile
Mac対応版
.DEFAULT_GOAL := thesis.pdf
%.pdf: %.dvi
dvipdfmx $^
thesis.dvi: thesis.tex refs.bib
platex -halt-on-error -shell-escape thesis.tex
bibtex thesis
platex -halt-on-error thesis.tex
platex -halt-on-error thesis.tex

Atomコードリーディングメモ

ビルド方法

script/build

起動したらsrc/window-bootstrap.coffeeが起動時間のログを出してるので、そいつをgrepすると/src/broweser/atom-application.coffee が引っかかる。

src/broweser/atom-application.coffee は、 src/browser/main.coffee に呼ばれている

@willurd
willurd / web-servers.md
Last active June 29, 2024 17:26
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
#!/usr/bin/env ruby
require 'thor'
require 'mechanize'
USER = ''
PASS = ''
class Report < Thor
desc 'submit src1 src2 ...', 'Submit code'
@chetan
chetan / yardoc_cheatsheet.md
Last active May 10, 2024 02:53
YARD cheatsheet