Skip to content

Instantly share code, notes, and snippets.

@iwata
iwata / index.d.ts
Last active November 7, 2018 07:08 — forked from fukuiretu/index.d.ts
Nuxt.jsで必要なTypeScriptの型定義
import Vue from 'vue'
import {Store} from 'vuex'
import VueRouter, {Route} from 'vue-router'
import {MetaInfo} from 'vue-meta'
import {Snackbar, Toast} from 'buefy'
interface ErrorParams {
statusCode?: string
message?: string
}
@iwata
iwata / gcr-tags.go
Created October 4, 2018 11:37 — forked from rjeczalik/gcr-tags.go
Reads a tag list for Google Container Registry for the given image.
package main
import (
"encoding/json"
"flag"
"fmt"
"net/url"
"os"
"os/user"
"path/filepath"
# Description:
# create pull requests in a Github repository
#
# Dependencies:
# "githubot": "0.4.x"
#
# Configuration:
# HUBOT_GITHUB_TOKEN
# HUBOT_GITHUB_API
#
#!/usr/bin/env zsh
set -xe
MYSQL_VERSION=5.1.69
MYSQL_BASEDIR=$HOME/.mysqlenv/mysqls/${MYSQL_VERSION}
MYSQL_SRCDIR=$HOME/.mysqlenv/mysql-build/build/mysql-${MYSQL_VERSION}
Q4M_VERSION=0.9.9
if [ ! -d ~/tmp ]; then
@iwata
iwata / mqh_install.sh
Last active October 13, 2015 11:17 — forked from arisawa/mqh_install.sh
Installing MySQL5.1 / Q4M / HandlerSocket@Mavericks
#!/bin/sh
set -xe
if [ `which perl` = "/usr/bin/perl" ]; then
echo -n -e "\e[1;31mUSING SYSTEM PERL OK? [y/n]\e[m: "
read ANSWER
if [ "$ANSWER" != "y" ]; then
exit 255
fi
PERL_CPANM_OPT="$PERL_CPANM_OPT --sudo"
@iwata
iwata / .vimrc
Created August 24, 2011 01:05 — forked from nobeans/.vimrc
making convenient git commit
nnoremap <Space>gn :<C-u>w<CR>:Git now<CR>
nnoremap <Space>gN :<C-u>w<CR>:Git now --all<CR>
" textobj-template - Text objects for WAF template engine.
" Version: 0.0.1
" Author: Kazuhito Hokamura
" License: MIT license (see <http://www.opensource.org/licenses/mit-license>)
if exists('g:loaded_textobj_template')
finish
endif
call textobj#user#plugin('template', {