Skip to content

Instantly share code, notes, and snippets.

View artifactsauce's full-sized avatar

Kenji Akiyama artifactsauce

View GitHub Profile
@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"
@artifactsauce
artifactsauce / file0.txt
Last active January 9, 2017 01:00
ディレクトリを定期的に監視してGitリポジトリに間違ったEmailをコミットしない ref: http://qiita.com/artifactsauce/items/10141d6473bbb0e64cb1
$ git config user.email company-email@example.com
@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 / 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 / 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 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 / app.pl
Created August 22, 2016 07:37
Simple test script to post to slack
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use JSON;
use Data::Dumper;
use LWP::UserAgent;
my $url = $ENV{SLACK_WEBHOOK_URL};
#!/bin/bash
set -eu
LOGGER_LOG_LEVEL=4
BASE_DIR=$(pwd)
LIB_DIR=$HOME/src/github.com/artifactsauce/proglets/lib/bash
. $LIB_DIR/functions
. $LIB_DIR/logger
@artifactsauce
artifactsauce / Terminal
Last active January 9, 2017 21:29
JXAでChromeの新規Windowに複数のタブを開く ref: http://qiita.com/artifactsauce/items/02da9a29491519cb198b
$ osacompile -l JavaScript -x -o ~/Desktop/open-pages.app ./open-pages.js
@artifactsauce
artifactsauce / cpanfile
Last active August 29, 2017 13:50
サーバー側での処理結果をPushbulletで通知する ref: http://qiita.com/artifactsauce/items/b4165ec1229d1ce3f1dd
requires 'LWP::Protocol';
requires 'LWP::Protocol::https';
requires 'JSON';