This file contains hidden or 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
| package main | |
| import ( | |
| "github.com/goadesign/goa" | |
| "github.com/shihanng/simple-goa-demo/app" | |
| ) | |
| type user struct { | |
| name string | |
| email string |
This file contains hidden or 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
| package design | |
| import ( | |
| . "github.com/goadesign/goa/design" | |
| . "github.com/goadesign/goa/design/apidsl" | |
| ) | |
| var _ = API("users", func() { | |
| Title("Users Management") | |
| Scheme("http") |
This file contains hidden or 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.box = "hashicorp/precise64" | |
| config.vm.provision "docker" | |
| config.vm.network "private_network", ip: "192.168.33.10" | |
| config.vm.synced_folder "../hello", "/src/hello", type: "nfs" | |
| config.vm.provision "shell", inline: | |
| "ps aux | grep 'sshd:' | awk '{print $2}' | xargs kill" | |
| # web port | |
| config.vm.network :forwarded_port, host: 8080, guest: 8000 |
This file contains hidden or 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.define "redis" do |r| | |
| r.vm.provider "docker" do |d| | |
| d.image = "redis:latest" | |
| d.name = "redis" | |
| d.ports = ["6379:6379"] | |
| d.vagrant_vagrantfile = "./docker-host-vm/Vagrantfile" | |
| end | |
| end |
This file contains hidden or 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
| ffmpeg -i [source-mov] -vf "scale=min(iw\,600):-1" -vcodec png -r 20 out%4d.png | |
| sips -s format gif *.png --out . | |
| gifsicle *.gif --colors 128 --optimize=3 --delay=3 --loopcount > [target-gif] |
This file contains hidden or 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
| iconv -f SHIFT_JIS-2004 -t UTF-8 [source-file] > [target-file] |
This file contains hidden or 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
| convert [target-tiff] -compress jpeg -scale 75% [source-jpg] |
This file contains hidden or 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
| defaults write com.apple.finder CreateDesktop -bool false && killall Finder # Hide | |
| defaults write com.apple.finder CreateDesktop -bool true && killall Finder # Show |
NewerOlder