Skip to content

Instantly share code, notes, and snippets.

View yoshimana's full-sized avatar

yoshimana yoshimana

View GitHub Profile
export LANG=ja_JP.UTF-8
autoload -Uz colors
colors
PROMPT='%F{yellow}>_%f '
#RPROMPT=''
# Completion Settings
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
[storage]
engine = dropbox
directory = Mackup
[applications_to_ignore]
iterm2
illustrator
photoshop
Adobe-camera-row
subversion
@yoshimana
yoshimana / BrewBundleの使い方.md
Created October 29, 2019 07:23
Brew Bundleの使い方

Brew Bundle

インストール

$ brew tap Homebrew/bundle
@yoshimana
yoshimana / settup.md
Last active December 26, 2020 09:30
Mac環境設定バックアップと復旧手順

元のMacの設定・実行する

Homebrew・Mackupはインストール済みとして

brew bundle dump --global --force
  • --global オプションで ~/.Brewfile を利用
  • —force で現在のインストールリストで上書き
@yoshimana
yoshimana / .Brewfile
Last active October 29, 2019 04:55
オレオレHomebrew bundle
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "mas-cli/tap"
tap "rcmdnk/file"
tap "sanemat/font"
tap "vitorgalvao/tiny-scripts"
brew "bash-completion"
@yoshimana
yoshimana / alfred_google_suggest_j.php
Created February 11, 2019 04:06 — forked from baramutu/alfred_google_suggest_j.php
AlfredのGoogle Suggest Workflowのスクリプトフィルタを編集して、日本語の候補がより多く表示されるように改変したものです
require_once('workflows.php');
$wf = new Workflows();
$orig = "{query}";
$xml = $wf->request( "http://google.co.jp/complete/search?hl=ja&ie=utf_8&oe=utf_8&output=toolbar&q=".urlencode( $orig ) );
$xml = simplexml_load_string( $xml );
$int = 1;
foreach( $xml as $sugg ):
$data = $sugg->suggestion->attributes()->data;
@yoshimana
yoshimana / alfred_amazon_suggest_j.php
Created February 11, 2019 04:05 — forked from baramutu/alfred_amazon_suggest_j.php
AlfredのAmazon Suggest Workflowのスクリプトフィルタを編集して、日本語が表示され、ゴミが表示されないように改変したものです
require('workflows.php');
$w = new Workflows();
// Grab input and build query url string
$in = "{query}";
$url = "http://completion.amazon.co.jp/search/complete?method=completion&q=".urlencode( $in )."&search-alias=aps&mkt=6&x=updateISSCompletion&noCacheIE=1295031912518";
// Grab the data from Amazon
$str = $w->request( $url );
@yoshimana
yoshimana / file0.txt
Created September 15, 2013 14:00
特定サイトから直リンされた画像を.htaccessで別の画像に差し替える方法 ref: http://qiita.com/yoshimana/items/3e7f0b3b1f7653bd1e08
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://対象サイトのURL/.*$
RewriteRule ^(.*)$ 置換え画像のURL [R=301]
/**
* Google ドキュメントのフォームから投稿があったら確認メールを自動返信する(日本語版)
* English version will be available later.
*
* @author Masunaga Ray ( http://www.msng.info/ )
* @instruction http://www.msng.info/archives/2012/04/google-docs-auto-reply.php
*/
function sendConfirmation() {
try {
var ss = SpreadsheetApp.getActiveSpreadsheet();