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/gophercloud/gophercloud" | |
"github.com/gophercloud/gophercloud/openstack" | |
"github.com/gophercloud/gophercloud/openstack/compute/v2/servers" | |
"github.com/gophercloud/gophercloud/pagination" | |
) | |
func main() { |
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
openssl req -new -x509 -sha256 -newkey rsa:2048 -days 365 -nodes -out nginx.pem -keyout nginx.key |
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/rackspace/gophercloud" | |
"github.com/rackspace/gophercloud/openstack" | |
"github.com/rackspace/gophercloud/openstack/compute/v2/servers" | |
"github.com/rackspace/gophercloud/pagination" | |
) | |
func main() { |
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
go get github.com/rogpeppe/godef && | |
go get github.com/mdempsky/gocode && | |
go get golang.org/x/tools/cmd/goimports \ | |
go get github.com/k0kubun/pp \ | |
go get github.com/golang/dep/cmd/dep \ | |
go get github.com/golang/lint | |
mkdir -p ~/go/src/github.com/hironobu-s |
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
echo 'Acquire::http::Proxy "http://172.16.0.1:3142/";' > /etc/apt/apt.conf.d/02-apt-proxy |
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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"os/signal" | |
"syscall" |
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
<?php | |
use OpenCloud\OpenStack; | |
use OpenCloud\Networking\Resource\NetworkInterface;; | |
use Guzzle\Http\Exception\ClientErrorResponseException; | |
use Guzzle\Http\Exception\BadResponseException; | |
use OpenCloud\Compute\Resource\Server; | |
require_once __DIR__ . '/vendor/autoload.php'; |
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
+--------------------------------------+--------------------------------------------+------------+-----------+--------------+---------------+ | |
| ID | Name | Visibility | Size (Mo) | Min RAM (Go) | Min Disk (Go) | | |
+--------------------------------------+--------------------------------------------+------------+-----------+--------------+---------------+ | |
| b2e06d42-4c68-4792-87c4-e6faff3c5c0c | vmi-drupal-8.4.2-centos-7.4-amd64-20gb | public | 2534 | 0 | 20 | | |
| ae172d73-d16c-42b7-bc32-41b40ca40e63 | vmi-drupal-8.4.2-centos-7.4-amd64 | public | 2534 | 0 | 50 | | |
| 9b70032f-c486-4fd9-9e00-e7899d336406 | vmi-minecraft-1.12.2-centos-7.4 | public | 2207 | 0 | 50 | [50/732] | |
| 95450a81-8194-4ff2-aab6-4f2595da56bb | vmi-centos-7.4-amd64-20gb | public | 1739 |
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
+--------------------------------------+---------+------+----------+----------------+ | |
| ID | Name | vCPU | RAM (Mo) | Disk size (Go) | | |
+--------------------------------------+---------+------+----------+----------------+ | |
| 294639c7-72ba-43a5-8ff2-513c8995b869 | g-2gb | 3 | 2048 | 50 | | |
| 3aa001cd-95b6-46c9-a91e-e62d6f7f06a3 | g-16gb | 8 | 16384 | 50 | | |
| 62e8fb4b-6a26-46cd-be13-e5bbf5614d15 | g-4gb | 4 | 4096 | 50 | | |
| 7eea7469-0d85-4f82-8050-6ae742394681 | g-1gb | 2 | 1024 | 50 | | |
| 965affd4-d9e8-4ffb-b9a9-624d63e2d83f | g-8gb | 6 | 8192 | 50 | | |
| a20905c6-3733-46c4-81cc-458c7dca1bae | g-32gb | 12 | 32768 | 50 | | |
| c2a97b05-1b4b-4038-bbcb-343201659279 | g-64gb | 24 | 65536 | 50 | |
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
# swift post testcontainer | |
# swift list | |
testcontainer | |
# swift post -m "Temp-Url-Key:testkey" | |
# swift stat | |
Account: nc_********************************* | |
Containers: 1 | |
Objects: 0 | |
Bytes: 0 | |
Containers in policy "policy-0": 1 |
NewerOlder