〜セキュリティの基本(WordPress中心)〜
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
//----------------------- | |
// Minin | |
//----------------------- | |
@mixin spacing($min, $max, $step:5, $unit:px) { | |
$i : $min; | |
@while $i <= $max { | |
//margin left | |
.ml#{$i} { | |
margin-left: #{$i}#{$unit}!important; | |
} |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "wate/debian-8" | |
# config.vm.box = " bento/debian-8.4" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.box_url = 'https://github.com/tsahara/vagrant-sakura/raw/master/dummy.box' | |
config.ssh.username = "ubuntu" | |
config.vm.provider :sakura do |sakura| | |
sakura.access_token = "さくらのクラウドAPIにアクセスするためのAPIキー(ACCESS TOKEN)" |
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
provider sakuracloud { | |
zone = "tk1v" | |
} | |
data sakuracloud_archive "debian" { | |
filter = { | |
name = "Tags" | |
values = ["current-stable", "distro-debian"] | |
} | |
} |
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
--- | |
# Usage | |
# --------------------------------- | |
# | |
# ``` | |
# ansible -i 127.0.0.1, install_usacloud.yml -c local | |
# ``` | |
# | |
- hosts: all | |
tasks: |
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
provider sakuracloud { | |
zone = "tk1v" | |
} | |
/* | |
* ロードバランサーを利用するか否か | |
*/ | |
variable use_loadbalanser { | |
default = false | |
} |
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
# Created by https://www.gitignore.io/api/vagrant | |
### Vagrant ### | |
.vagrant/ | |
# End of https://www.gitignore.io/api/vagrant |
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
/* | |
* 元ネタ | |
* | |
* EC2インスタンス料金月額日本円化 | |
* http://qiita.com/yuroyoro/items/08cded7662cf494d53f2 | |
* | |
* YQLを使ってYahoo! Financeから為替レートを取得する | |
* http://qiita.com/masato/items/6f81bdc89f81a7b6cc3a | |
*/ | |
$.getJSON("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDJPY%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys", function(yqlResult){ |
OlderNewer