Skip to content

Instantly share code, notes, and snippets.

@t-yamo
t-yamo / ameblo_onaka_ippai.user.js
Last active August 29, 2015 14:04
アメブロの「腹い」「なかい」を削除するUserScriptです。ameblo_onaka_ippai.user.jsとかのファイル名でUTF-8で保存し、Chromeの設定→拡張機能のところにドラッグアンドドロップすると有効になります。
// ==UserScript==
// @name AmebloOnakaIppai
// @include http://ameblo.jp/*
// ==/UserScript==
document.body.innerHTML = document.body.innerHTML.replace(/腹い|なかい/g, "");
@t-yamo
t-yamo / AmebloEeka
Last active December 31, 2015 03:59
アメブロの「いいね!」ボタンを「ええか?」に変えるUserScriptです。ameblo_eeka.user.jsとかのファイル名でUTF-8で保存し、Chromeの設定→拡張機能のところにドラッグアンドドロップすると有効になります。本当は「ええか!?」なのですが背景画像の大きさの都合で入らないので「!」抜きました。
// ==UserScript==
// @name AmebloEeka
// @include http://iine.blog.ameba.jp/*
// ==/UserScript==
document.getElementById("iineBtn").innerHTML = "<span>ええか?</span>";
@t-yamo
t-yamo / Dockerfile
Last active June 26, 2018 18:02
Vagrant & Dockfile sample (include git clone)
FROM centos
# ---- setup ssh
RUN yum install -y openssh-server
RUN yum install -y openssh-clients
# RUN sed -ri 's/^#PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config
# RUN sed -ri 's/^#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
# - WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several problems.
@t-yamo
t-yamo / Base62.java
Created May 13, 2015 18:15
62進数Javaコードサンプル(Base62)
package sample.util;
import java.math.BigInteger;
/**
* Base62ユーティリティ。
* [0-9A-Za-z]の順番で0から対応する。ASCIIコードの並び順に合わせて大文字の方が先なので注意。
* 'Z'は35、'i'は44、'z'は61。
* @author t-yamo
*/