Skip to content

Instantly share code, notes, and snippets.

View ksmxxxxxx's full-sized avatar
🏠
Working from home

ksmxxxxxx ksmxxxxxx

🏠
Working from home
View GitHub Profile
@yoshimana
yoshimana / BrewBundleの使い方.md
Created October 29, 2019 07:23
Brew Bundleの使い方

Brew Bundle

インストール

$ brew tap Homebrew/bundle
@mono0926
mono0926 / commit_message_example.md
Last active June 20, 2024 13:24
[転載] gitにおけるコミットログ/メッセージ例文集100
@sinsoku
sinsoku / unhighlignter.js
Last active December 24, 2020 02:44
WIP Pull Request Unhighlignter for GitHub が使えなくなったので、 Tampermonkey の UserScript で再実装した
// ==UserScript==
// @name WIP Pull Request Unhighlignter
// @author sinsoku
// @version 0.4
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
@sunaot
sunaot / git-ignore.md
Last active January 5, 2021 13:36
gitignore の使い方

今後何度も書くことになるだろうから repo へコミットする .gitignore の使い方について書いておく。まあ、ゆるーく使って余分に ignore 書きまくってもいいんですが覚えておくと、はかどります。なお、man に書いているというつっこみを受けた。

以下の方針で運用すると扱いやすくなります。

  • プロジェクトで使う .gitignore ファイルへはプロジェクト固有でバージョン管理から外したいものを書く
    • 例: そのプロジェクトでできる中間成果物、スナップショットで残したいだけでバージョン管理する必要のない成果物 (テスト結果とか) など
  • プロジェクト固有ではなく発生し、バージョン管理から外したいものはグローバルな gitignore ファイルへ書いておく
    • ~/.config/git/ignore
    • 例: OS が勝手につくるファイルやフォルダ、エディタの作るバックアップファイルなど
    • 自分で育てなくてもグローバルな gitignore のための雛形があるので自分が関わるものを追記していけば OK.
@yukidarake
yukidarake / stream_example.js
Created August 18, 2012 08:30
node.jsで標準出力から一行ずつ読み込んでファイルに書きこむ例
var fs = require('fs');
var buffer = '';
var out = fs.createWriteStream('test.txt', {
encoding: 'utf8',
mode: 0644,
});
process.stdin.resume();
process.stdin.setEncoding('utf8');