This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('CSSセレクタ').map(e => doSomething(e)).join('\n') | |
copy($_) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
template_name: "CentOS 6.6 64-bit" | |
template_volume_size: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLOUDSTACK_ENDPOINT=<APIのエンドポイント> | |
CLOUDSTACK_KEY=<APIキー> | |
CLOUDSTACK_SECRET=<シークレットキー> | |
CLOUDSTACK_TIMEOUT=60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zoneid=$( | |
cs listZones name=joule | jq -r ".zone[0].id" | |
) | |
templateid=$( | |
cs listTemplates \ | |
templatefilter=all \ | |
zoneid=$zoneid \ | |
name="CentOS 7.1 64-bit" | | |
jq -r ".template[0].id" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/Capgemini/apollo.git | |
$ cd apollo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from azureml import Workspace | |
ws = Workspace( | |
workspace_id="YOUR_WORKSPACE_ID", | |
authorization_token="YOUR_AUTHORIZATION_TOKEN", | |
endpoint="https://studio.azureml.net" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
# vagrant-triggersをProvisionerとして使用し、 | |
# 作成した仮想マシンに対してdocker-machine createを実行 | |
config.vm.provision "trigger" do |trigger| | |
trigger.fire do | |
# docker-machine statusのexitstatusが0の場合はdocker-machine create実行済み | |
`docker-machine status #{@machine.name}` | |
if $?.exitstatus != 0 | |
# 使用するIPとポートを取得 | |
# VirtualBoxの場合には一度仮想マシンにログインしプライベートネットワークのIPを取得 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ fluentd -c rewrite_tag_filter.conf -vv --use-v1-config & | |
$ echo "{\"value\": \"test\"}" | fluent-cat test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.provider :cloudstack do |cloudstack, override| | |
override.vm.box = "dummy" | |
override.vm.box_url = "https://github.com/schubergphilis/vagrant-cloudstack/raw/master/dummy.box" | |
cloudstack.host = "compute.jp-east.idcfcloud.com" | |
cloudstack.path = "/client/api" | |
cloudstack.port = "443" | |
cloudstack.scheme = "https" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def format(sql, **options): | |
"""Format *sql* according to *options*. | |
Available options are documented in :ref:`formatting`. | |
In addition to the formatting options this function accepts the | |
keyword "encoding" which determines the encoding of the statement. | |
:returns: The formatted SQL statement as string. | |
""" | |
encoding = options.pop('encoding', None) | |
stack = engine.FilterStack() | |
options = formatter.validate_options(options) |
NewerOlder