Skip to content

Instantly share code, notes, and snippets.

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

Tatsuya Arai cutmail

🏠
Working from home
View GitHub Profile
@voluntas
voluntas / realtime_movie_stream.rst
Last active August 5, 2024 09:58
リアルタイム動画配信コトハジメ
@voluntas
voluntas / chromebook_flip.rst
Last active March 19, 2016 07:28
Chromebook flip コトハジメ

Chromebook flip コトハジメ

前提

  • Chromebook を開発に使用しない
  • サブ PC として使う
  • 主な目的は Twitter と Slack と Gmail
@hkurokawa
hkurokawa / adb-screenshot.sh
Last active August 30, 2023 06:27
A shell script to take a screen shot of the android device, resize it and copy to clipboard
#! /bin/bash
## This script is for taking a screen shot of an Android device.
## If possible, it tries to resize the image file and then copy to the clipboard.
##
## Note the script generates screenshot_yyyyMMddHHmmss.png and screenshot_yyyyMMddHHmmss_s.png
## under /sdcard on the device (you can specify another location with '-t' option)
## and copies it to the current working directory.
##
## The script passes unrecognized arguments to adb command, which means you can specify "-e" or "-d"
@kevinelliott
kevinelliott / osx-10.11-setup.md
Last active April 15, 2025 05:09
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

@voluntas
voluntas / webrtc.rst
Last active October 10, 2025 07:46
WebRTC コトハジメ
var data = { "pixel" : "%6%%%%%%%%%%%%%%%%%%69\n"
+ "%4%%%%%%%%%%%%%%%%%%%%%%67\n"
+ "%3%%%%%%%%%6%2%%%%%%%67\n"
+ "%2%%%%%%%%9%2%%%%%%%66\n"
+ "%%%%%%%%11%2%%%%%%%66\n"
+ "%%%%%%%12%2%%%%%%67\n"
+ "%%%%%%13%2%%%%%%%51%%14\n"
+ "%%%%%%%2%10%%%%%%%3%65\n"
+ "%%%%%%12%%%%%%%%%%%%%63\n"
+ "%%%%%%%2%12%%2%%%%%%%%%46%%14\n"
@wada811
wada811 / PostGooglePlayAppReviewsToSlack.md
Last active March 4, 2016 07:39 — forked from hkurokawa/postNewReviewsHipchat.sh
Post Google Play App. Reviews to Slack

参考

修正箇所

  • mktemp が GNU 版で引数が不要だった。
  • パス通すのが面倒だったので同じ場所においてあれば動くようにした。
  • 各種定数について環境変数を設定するのが面倒だったのでベタ書きした。
  • Slack に投稿する際のフォーマットを調整した。
@jpalala
jpalala / how-to-setup-mac-elasticsearch.md
Created September 11, 2015 08:28
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

@huinme
huinme / Chap9.md
Last active September 13, 2015 10:00
Understanding Computation : Chap 9

9章 おもちゃの国のプログラミング

  • プログラム全体が本来やってほしいことをやってくれているかどうかチェックしたい.
    • e.g) 特定の結果を返すこと, 計算リソースへの副作用, クラッシュなどの明らかなバグを含んでいないことなど

ライスの定理によりプログラムの振る舞いについて必ずしも正しい答えは得られない.

  • プログラムを実行して確認できれば良いが、実行時まで不明な情報がある場合は難しい
    • e.g. ユーザーからの対話的な入力, 引数としてわたされるファイル, ネットワークから読み込まれるデータなど
  • ダミーデータですべての組み合わせ(入力)について確認sうるのは非現実的.
@akramhussein
akramhussein / CrashlyticsLogger.swift
Created August 11, 2015 15:07
CocoaLumberjack Custom Crashlytics Logger in Swift
import Foundation
import CocoaLumberjack
import Crashlytics
class CrashlyticsLogger : DDAbstractLogger
{
static let sharedInstance = CrashlyticsLogger()
private var _logFormatter : DDLogFormatter?
override var logFormatter: DDLogFormatter? {