Skip to content

Instantly share code, notes, and snippets.

anythingをインストールすると以下のメッセージが表示される
Please update anything.el !!
http://www.emacswiki.org/cgi-bin/wiki/download/anything.el
or M-x install-elisp-from-emacswiki anything.el
anything-complete.el 中のバージョンチェック処理が出力している。
;; version check
以下のlet文をコメントにしてバイパスした。
sudo yum install -y gcc make \
libxml2 libxml2-devel libxslt libxslt-devel \
rubygems ruby-devel patch
sudo gem install nokogiri -- --with-xml2-lib=/usr/local/lib \
--with-xml2-include=/usr/local/include/libxml2 \
--with-xslt-lib=/usr/local/lib \
--with-xslt-include=/usr/local/include
sudo gem install aws-sdk --no-ri --no-rdoc
@takekawa
takekawa / gist:10608205
Created April 14, 2014 00:34
全てのリージョンのインスタンスの一覧を確認する
# 全てのリージョンのインスタンスの一覧を確認する
EC2_REGIONS=("us-east-1" "us-west-1" "us-west-2" "eu-west-1" "ap-southeast-1" "ap-southeast-2" "ap-northeast-1" "sa-east-1")
for reg in ${EC2_REGIONS[@]}; do
export AWS_DEFAULT_REGION=$reg
aws ec2 describe-instances | jq -r "@csv \"$reg, \(.Reservations[].Instances[] | [.InstanceId, .State.Name, .Tags[0].Value,.InstanceType]) \""
done
#参考
@takekawa
takekawa / gist:4084670
Created November 16, 2012 06:02
openstack nova essex-4でのvolume attachに関連するコード nova/nova/compute/manager.py 1656 def attach_volume(self, context, instance_uuid, volume_id, mountpoint): 1657 """Attach a volume to an instance.""" 1658 volume = self.volume_api.get(conte
nova/nova/compute/manager.py
1656 def attach_volume(self, context, instance_uuid, volume_id, mountpoint):
1657 """Attach a volume to an instance."""
1658 volume = self.volume_api.get(context, volume_id)
1659 context = context.elevated()
1660 instance_ref = self.db.instance_get_by_uuid(context, instance_uuid)
1661 instance_id = instance_ref['id']
1662 msg = _("instance %(instance_uuid)s: attaching volume %(volume_id)s"
1663 " to %(mountpoint)s")
1664 LOG.audit(_('Attaching volume %(volume_id)s to %(mountpoint)s'),
@takekawa
takekawa / gist:3869340
Created October 11, 2012 00:13 — forked from takekawa/gist:3794566
Openstack noVNCのコンソールで日本語キーボードを使用するための方法
二つの手順を実施する必要があります。
1. nova.confの設定変更 (要VM再起動)
以下の文字列をnova.confに追加します。
vnc_keymap=ja
openstackを再起動後(nova-computeだけ?)、新規のコンピュートはUS配列で文字列が入力可能になります。
@takekawa
takekawa / gist:3794566
Created September 27, 2012 15:17
Change VNC keymap in openstack nova
nova/virt/libvirt/config.py
515 def __init__(self, **kwargs):
516 super(LibvirtConfigGuestGraphics, self).__init__(root_name="graphics",
517 **kwargs)
518
519 self.type = "vnc"
520 self.autoport = True
521 self.keymap = None <--- ここを "ja"にすればいいはず!
522 self.listen = None
@takekawa
takekawa / gist:2780269
Created May 24, 2012 08:46
MCF-22 result
~/work/bob (feature/unpause_an_instance) $ run/tag @jira-MCF-22
Verifying requirements tagged with @jira-MCF-22
Start at 2012-05-24-08:40:13 GMT
Disabling profiles...
Driver: selenium
Verifying requirements against http://mc.cb-1-1.morphcloud.net
Your Unique.alpha value is TAKEKAWAGUAVOTQSHSRXXEAKMBOLSFKWBNQIGIPMOGIRWWUEBY
@jira-MCF-22
Feature: Unpause a Paused Instance
As a user, I want to unpause a paused instance so that I can use it again after