AWS CLI ECS編 覚書。
これでECSクラスタの一覧を取得する
aws ecs list-clusters
package org.sample; | |
import org.modelmapper.ModelMapper; | |
import org.modelmapper.convention.MatchingStrategies; | |
import org.modelmapper.convention.NameTokenizers; | |
import org.openjdk.jcstress.annotations.Actor; | |
import org.openjdk.jcstress.annotations.Expect; | |
import org.openjdk.jcstress.annotations.JCStressTest; | |
import org.openjdk.jcstress.annotations.Outcome; | |
import org.openjdk.jcstress.annotations.State; |
type 'a myList = MyNil | MyCons of 'a * 'a myList | |
let myList x y = MyCons (x, MyCons(y, MyNil)) | |
let rec map f x = | |
match x with | |
| MyNil -> MyNil | |
| MyCons (x, xs) -> | |
MyCons (f x, map f xs) | |
let rec foreach f x = |
export GOPATH=$HOME/go | |
export PATH=/usr/local/bin:$GOPATH/bin:$PATH | |
show_branch(){ | |
git rev-parse --abbrev-ref HEAD 2> /dev/null | sed -e 's/^.*\///1' | |
} | |
PS1="\[\033[31m\]\u\[\033[0m\]: \[\033[32m\]\W \[\033[33m\](\$(show_branch))\[\033[00m\] $ " |
'use strict' | |
const parse = require('mdconf') | |
const fs = require('fs') | |
const path = require('path') | |
const promisify = require('util').promisify | |
const readFile = promisify(fs.readFile) | |
readFile(path.resolve('.', process.argv[2])) | |
.then(data => console.log(JSON.stringify(parse(data.toString()), null, 2))) |
@Grapes([ | |
@Grab(group= 'org.eclipse.jgit', module= 'org.eclipse.jgit', version= '4.9.0.201710071750-r'), | |
//@Grab(group= 'org.eclipse.jgit', module= 'org.eclipse.jgit', version= '4.3.1.201605051710-r'), | |
]) | |
import org.eclipse.jgit.api.Git | |
import org.eclipse.jgit.api.DescribeCommand | |
import org.eclipse.jgit.storage.file.FileRepositoryBuilder | |
def repo = FileRepositoryBuilder.create(new File(".", ".git")) |
interface Versioned { | |
long getVersion(); | |
void verifyVersion(Long version) default { | |
if (version == null) return; | |
if(getVersion() != version) throw new OptimisticLockFailureException("Unable to lock"); | |
} | |
技術書典3のタグでbooth検索するといくつか見つかります。 https://booth.pm/ja/events/techbookfest-3
初め、このプロジェクトのゴールは次のような物でした。
これらのゴールを目指すため、我々はJava Se 9に向けて標準のモジュールシステムを設計・実装したました。
{ | |
"presets": [ | |
[ | |
"env", | |
{ | |
"targets": { | |
"node": "6.10", | |
"browsers": [ | |
"last 2 versions", | |
"ie 10" |