Skip to content

Instantly share code, notes, and snippets.

View marmot1123's full-sized avatar
💭
Studying math

marmot1123 marmot1123

💭
Studying math
View GitHub Profile
@marmot1123
marmot1123 / disk_usage.sh
Created March 27, 2019 11:46
ディレクトリ以下のディスク使用量上位n件を表示するワンライナー
#!/usr/bin/env bash
du -hd 1 $1 | sort -hr | head -n $2
@marmot1123
marmot1123 / # qt5 - 2016-09-22_17-21-44.txt
Created September 22, 2016 08:54
qt5 on macOS 10.12 - Homebrew build logs
Homebrew build logs for qt5 on macOS 10.12
Build date: 2016-09-22 17:21:44
@marmot1123
marmot1123 / file0.sh
Last active August 29, 2015 14:26
MacBookをEl Capitanにして新しくセットアップする3 〜コマンドラインツール整備編〜 ref: http://qiita.com/marmot1123/items/688adc739eacf67ddb7d
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@marmot1123
marmot1123 / brewupdate.sh
Last active August 29, 2015 14:11
When brew update error occur because of git, this shell script deal with the error and brew update automatically.
#!/bin/sh
cd $(brew --prefix)
sudo git fetch origin
sudo git reset --hard origin/master
brew update