Skip to content

Instantly share code, notes, and snippets.

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
@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
@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
// ==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 / 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
@mtdtks
mtdtks / github.css
Last active August 31, 2016 07:48 — forked from andyferra/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 / 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 / cVimrc.vim
Last active March 31, 2019 16:40
chromeのcVimの社内用セッティング
"==={general}===
let scrollstep = 150
let fullpagescrollpercent = 100
"set nohud
"set autohidecursor
"eで検索窓へ
map e goToInput
"open link in new tab (active)
@mtdtks
mtdtks / cVim.css
Created March 7, 2016 16:15
cVimカスタムCSS (日本語コメントバグる)
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial;
font-size: 10pt !important;
-webkit-font-smoothing: antialiased !important;
}
#cVim-link-container {
position: absolute;
pointer-events: none;
width: 100%; left: 0;
@mtdtks
mtdtks / html_basictemplete.html
Last active August 30, 2016 11:24
html5 basic templete
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="stylesheet" href="test.css">
<script src="test.js"></script>
</head>