> start shell
% cli
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| my $curl='curl'; | |
| sub php_latest { | |
| my $release=shift; | |
| my $atom=`$curl http://www.php.net/releases/feed.php`; | |
| while( $atom=~m#<link rel="enclosure" title="([^"]+)" href="([^"]+)">#mg ) { |
| // ==UserScript== | |
| // @name TumblrActivityThumbnailEnlarger | |
| // @description Tumblr Activityページの「最新メモ」サムネイル画像が大きくなります | |
| // @namespace https://gist.github.com/mamemomonga/11439dd4e20ed852ab78 | |
| // @include http://www.tumblr.com/blog/*/activity | |
| // @include https://www.tumblr.com/blog/*/activity | |
| // @version 1.01 | |
| // @grant none | |
| // ==/UserScript== |
| syntax on | |
| set wildmenu | |
| set history=100 | |
| set number | |
| "set list | |
| set scrolloff=5 | |
| "set nobackup | |
| "set backupdir=/tmp |
| hardstatus alwayslastline "%H [%02c] %`%-w%{=b bw}%n %t%{-}%+w" | |
| vbell off | |
| bind s | |
| bind ^U encoding utf8 | |
| bind ^E encoding euc | |
| startup_message off | |
| autodetach on | |
| defscrollback 8192 |
| #!/bin/ash | |
| # ESXi Tech Support Mode(SSH)で仮想マシンをクローンする。 | |
| # コピー先のディスクイメージはThin Provisioning | |
| # 一つのディレクトリにまとまっている必要がある。 | |
| # 仮想マシンは /vmfs/volumes/以下に [DATASTORE]/[VM] という形で存在しているので | |
| # データストア: DS1にあるVM1をDS2のVM2としてクローンする場合は | |
| # clone_virtual_machine.sh "DS1/VM1" "DS2/VM2" | |
| # と実行する。クローン後は上記の例のVM2の名前でIntentoryに登録される。 |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use 5.10.0; | |
| binmode(STDOUT,':utf8'); | |
| # -------------------------------------------------------------- | |
| # iTunesで選択範囲のアルバムアーティストが空の場合 | |
| # アーティストをアルバムアーティストとして設定する |
| #!/bin/bash | |
| # | |
| # Startup script for the Supervisor server | |
| # | |
| # Tested with CentOS release 6.6 | |
| # | |
| # chkconfig: 2345 85 15 | |
| # description: Supervisor is a client/server system that allows its users to \ | |
| # monitor and control a number of processes on UNIX-like \ | |
| # operating systems. |
| find / -maxdepth 1 -type d -exec du -sh {} \; |
| #!/bin/sh | |
| exec ssh -o 'ProxyCommand=ssh PFUSER@PFHOST -W %h:%p 2> /dev/null' "$@" |