Skip to content

Instantly share code, notes, and snippets.

View ma3tk's full-sized avatar
💪
On GYM

Masataka Sato ma3tk

💪
On GYM
  • Findy Inc.
  • Tokyo, Japan
  • X @ma3tk
View GitHub Profile
@ma3tk
ma3tk / tampermonkey.js
Created January 5, 2021 09:40
GitHub issue タブとシフトタブでスペース挿入 / tampermonkey
// ==UserScript==
// @name タブとシフトタブでスペース挿入
// @namespace http://tampermonkey.net/
// @version 0.1
// @description issue書く時にタブ使うと項目移動しちゃうので、無効にしてスペースが入るようになりました
// @author @ma3tk
// @match https://github.com/*
// @grant none
// @see https://qiita.com/n-ishida/items/da1cc0cfdaebe789d047
// @see https://qiita.com/laineus/items/12a220d2ab086931232d
@ma3tk
ma3tk / pz-linkcard__lib__pz-linkcard-style.php
Created February 10, 2017 13:51
pz-linkcard の SSL 化
<?php if (!function_exists("get_option")) die; ?>
<?php
if (!isset($this->options['style']) || !$this->options['style']) {
// $css_file = plugin_dir_path(__FILE__).'style.css';
// $css_url = plugin_dir_url(__FILE__).'style.css';
$wp_upload_dir = wp_upload_dir();
$wp_upload_dir_base_dir = set_url_scheme( $wp_upload_dir['basedir'] , 'https' );
$wp_upload_dir_base_url = set_url_scheme( $wp_upload_dir['baseurl'] , 'https' );
$css_dir = $wp_upload_dir_base_dir.'/'.$this->slug;
@ma3tk
ma3tk / delete-remote-branches.sh
Created February 12, 2016 07:09
Delete "Merged branches in Remote" with fetch
git fetch --prune; git branch -a --merged | grep -vE '^\*|master$|develop$|release$' | grep remotes/origin | sed -e 's% *remotes/origin/%%' | xargs -I% git push origin :%
#!/bin/sh
opt=$1
if [ "$opt" = "--develop" ]; then
CONFIGURATION=release
PACKAGE_NAME="net.hoge"
HOGE_BUILD_CONFIG="11"
HOGE_DEBUG='-DHOGE_DEBUG=1'
BUILD_CONFIG_JAVA="Target.Develop"
APP_NAME="HOGE(dev)"
@ma3tk
ma3tk / journalctl
Last active August 29, 2015 14:25
for openstf
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="+job log(pull, openstf/stf:latest, )"
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="-job log(pull, openstf/stf:latest, ) = OK (0)"
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="-job pull(openstf/stf, latest) = OK (0)"
Jul 24 22:21:26 openstf docker[31453]: 06319d6820e8: Download complete
Jul 24 22:21:26 openstf docker[31453]: Status: Image is up to date for openstf/stf:latest
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="POST /v1.17/containers/stf-app-3100/kill?signal=KILL"
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="+job kill(stf-app-3100, KILL)"
Jul 24 22:21:26 openstf docker[2383]: No such container: stf-app-3100
Jul 24 22:21:26 openstf docker[2383]: time="2015-07-24T22:21:26+09:00" level=info msg="-job kill(stf-app-3100, KILL) = ERR (1)"
Jul 24 22:21:26 ope
@ma3tk
ma3tk / gist:238d78d4a74d9e317e76
Last active August 29, 2015 14:17
github つかってみてね
1.ローカルに持ってくる
git clone https://github.com/ma3tk/github-new-mon
ディレクトリを移動します
cd github-new-mon
2.編集してコミットとプッシュ
ファイルをメモ帳とかで適当に作ってください cityname.txt で作ってください。中身はお任せ
-mcrypt
http://blogs.yahoo.co.jp/same_yh_id/62270780.html
カメラ詳しくないけど
撮って面白い
- 定点観測
- ある一定の箇所で状態の変化が観測できるものに強い
- 自然の変化
- 車の助手席から正面の撮影
- 歩いての移動(先頭)
- 全身が写るレベルでのちょっと遠目の位置からの人の撮影
- 時間をかけてゆっくり変化するもの
@ma3tk
ma3tk / file0.txt
Last active May 29, 2019 11:26
Mac + Nexus5 で Android L を最初からインストールしてみる ref: https://qiita.com/ma3tk/items/437e81a7eefe137fca41
$ mkdir ~/eclipse/
$ mv ~/Downloads/adt-bundle-mac-x86_64-20140702 ~/eclipse/

保険業界が抱える現状と大きな問題

  • 日本人の9割が加入する
  • そのうちのほとんどは自分の保険について理解していない
    • 死んだ時にいくら入るの? -> わからない
    • 保証内容は? -> よくわからない
    • 毎月支払ってる額は? -> 知ってる
  • なぜ知らないものにお金を払ってるのか?
    • 入っておいたら安全だから
    • 価値あると思ってる
  • ほんとうに安全なのか?