Skip to content

Instantly share code, notes, and snippets.

@mtdtks
mtdtks / yesterday.bat
Last active December 16, 2015 12:21
get yesterday date.
@echo off
::今日の日付を取得
set yy=%date:~0,4%
set mm=%date:~5,2%
set dd=%date:~8,2%
:: echo 今日は、%yy%年%mm%月%dd%日です。
::1日前の日付を計算する
set /a dd=1%dd%-101
@mtdtks
mtdtks / github.css
Last active August 31, 2016 07:48 — forked from theconektd/github.css
css at github style
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@mtdtks
mtdtks / amazon_focus2searchbar.user.js
Last active September 3, 2015 07:56
amazon_focus2searchbar
// ==UserScript==
// @name amazon_focus2serchbar
// @namespace mtdtks
// @version 0.0.1.2
// @description everytime focus amazon's searchbar
// @author mtdtks
// @include http://www.amazon.co.jp/s/*
// @include http://www.amazon.co.jp/d/*
// @exclude http://www.amazon.co.jp/%E5%92%8C%E6%9B%B8%E8%A9%B3%E7%B4%B0%E3%82%B5%E3%83%BC%E3%83%81/b/ref=sv_b_0?ie=UTF8&node=124284011
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
// ==UserScript==
// @name amazon_focus2searchbar_chrome
// @namespace http://your.homepage/
// @version 0.0.0.1
// @description everytime focus amazon's searchbar
// @author mtdtks
// @include http://www.amazon.co.jp/s/*
// @exclude http://www.amazon.co.jp/%E5%92%8C%E6%9B%B8%E8%A9%B3%E7%B4%B0%E3%82%B5%E3%83%BC%E3%83%81/b/ref=sv_b_0?ie=UTF8&node=124284011
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
// @grant none
@mtdtks
mtdtks / output_log.bat
Last active August 29, 2015 14:21
output console log
rem single write and new file
ls > C:\log.txt
rem over write
ls >> C:\log.txt
@mtdtks
mtdtks / shutdown.bat
Created May 12, 2015 10:08
windows shutdown batch file
C:\Users\username\Shutdown -s -f -t 3600
rem for win8,win7
rem xp unknown
rem -t:time(sec)
rem -r:restart
rem -f:force shutdown
rem -l:logoff
cd .ssh
ssh-keygen -t rsa -C example@hoge.com
#test
ssh -T git@github.com
#reset ip
ssh-keygen -R xxx.xxx.xxx.xxx