Skip to content

Instantly share code, notes, and snippets.

View artifactsauce's full-sized avatar

Kenji Akiyama artifactsauce

View GitHub Profile
@artifactsauce
artifactsauce / file1.txt
Last active October 23, 2016 03:35
BitBarで自分の人生の残り時間を常に意識する ref: http://qiita.com/artifactsauce/items/1caca90e91c6ca90ebbf
$ date --date="2055-10-01 23:56:45 1 year -46 days"
水 8 16 23:56:45 JST 2056
@artifactsauce
artifactsauce / file1.pl
Last active October 29, 2016 02:51
BitBarで自分のやるべきタスクを常に意識する ref: http://qiita.com/artifactsauce/items/2f933a1dbddf19ab008a
@tasks = sort { $a->{checked} <=> $b->{checked} } @tasks;
@artifactsauce
artifactsauce / file1.txt
Last active October 30, 2016 11:57
BitBarでMySQLサーバーの状態を常に意識する ref: http://qiita.com/artifactsauce/items/d111bb1e6676f235094d
Start | bash=/usr/local/bin/mysql.server param1=start refresh=true terminal=false
@artifactsauce
artifactsauce / file0.txt
Last active November 14, 2016 01:52
BitBarでPostgreSQLサーバーの状態を常に意識する ref: http://qiita.com/artifactsauce/items/445535ea8a58253c2f28
$ brew install postgresql
$ /usr/local/bin/initdb -D /usr/local/var/postgres
$ /usr/local/bin/pg_ctl -D /usr/local/var/postgres start
$ /usr/local/bin/createuser postgres
@artifactsauce
artifactsauce / file0.txt
Last active January 9, 2017 01:00
ディレクトリを定期的に監視してGitリポジトリに間違ったEmailをコミットしない ref: http://qiita.com/artifactsauce/items/10141d6473bbb0e64cb1
$ git config user.email [email protected]
@artifactsauce
artifactsauce / getwild.6h.go
Last active December 16, 2016 12:13
BitBar plugin for Get Wild
//usr/bin/env go run $0 $@; exit
package main
import (
"fmt"
"log"
"github.com/PuerkitoBio/goquery"
"net/url"