Skip to content

Instantly share code, notes, and snippets.

View tnir's full-sized avatar
🍎
DX/DevOps/SecOps/GitLab/GitHub

Takuya N tnir

🍎
DX/DevOps/SecOps/GitLab/GitHub
View GitHub Profile
@tnir
tnir / gist:68fee5d5ff699f7363da
Last active August 29, 2015 14:16
EBS-sakura SSD

SSD pricing between AWS EBS and Sakura Cloud

Sakura Cloud

Size / GB Price JPY/GB-mo
20 432 20
100 3,780 35
250 9,450 35
500 18,900 35
@tnir
tnir / file0.txt
Created October 1, 2015 02:42
GitLab 7.xからGitLab 8.0にアップデートする方法 (GitLab CIあり編) ref: http://qiita.com/tnir/items/15e4ce4e091e93f5cee3
$ sudo yum update gitlab-ce
@tnir
tnir / file0.yml
Last active June 21, 2017 11:18
GitLab CI (docker) でCentOSイメージを使う例(GitLab CI入門) ref: http://qiita.com/tnir/items/ff94ba31157f254a9783
before_script:
- /bin/echo Testing... CentOS 6.6 x MySQL 5.6.17
- /bin/echo Testing... CentOS 7 latest x MySQL 5.7 latest
variables:
MYSQL_ROOT_PASSWORD: "1iEkou9luj4Etrie"
test:centos6xmysql56:
image: centos:6.6
services:
- mysql:5.6.17
@tnir
tnir / README.md
Created April 12, 2016 15:43
Deploying Celery+RabbitMQ on GKE with Kubernetes
@tnir
tnir / file0.txt
Created April 23, 2016 15:35
GCPでUbuntu 16.04 (xenial) LTSを起動する ref: http://qiita.com/tnir/items/315a7510e0ecf9595fcc
gcloud compute instances create "xenial" \
--zone "asia-east1-a" --machine-type "n1-standard-1" \
--network "default" --maintenance-policy "MIGRATE" \
--scopes default="https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/cloud.useraccounts.readonly" \
--image "/ubuntu-os-cloud/ubuntu-1604-xenial-v20160420c" \
--boot-disk-size "10" --boot-disk-type "pd-ssd" --boot-disk-device-name "xenial"
@tnir
tnir / file0.txt
Last active April 27, 2016 03:55
Progressive Web Apps (Google Developers Summit Tokyo 2016 Day 2) ref: http://qiita.com/tnir/items/2e2f496ece3f9bc97dda
$ curl -sv https://smp.suumo.jp/ -o /dev/null
* Trying 54.248.247.239...
* Connected to smp.suumo.jp (54.248.247.239) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: smp.suumo.jp
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET / HTTP/1.1
> Host: smp.suumo.jp
> Accept: */*
@tnir
tnir / Dockerfile
Created May 26, 2016 07:54
DockerのPythonイメージで暗号化ライブラリcryptographyを利用する ref: http://qiita.com/tnir/items/71b4c9c542b9d23330f3
RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev python-dev
@tnir
tnir / file0.txt
Created June 8, 2016 03:17
Docker Pythonイメージのwheezyって何? ref: http://qiita.com/tnir/items/4a4a1bfaf00b443767b4
$ diff -u <(curl -sSL https://raw.githubusercontent.com/docker-library/python/9383f7d4d2f96068e8957651aa3588fee8b48f71/2.7/wheezy/Dockerfile) <(curl -sSL https://raw.githubusercontent.com/docker-library/python/9383f7d4d2f96068e8957651aa3588fee8b48f71/2.7/Dockerfile)
--- /dev/fd/63 2016-06-08 12:09:22.000000000 +0900
+++ /dev/fd/62 2016-06-08 12:09:22.000000000 +0900
@@ -1,4 +1,4 @@
-FROM buildpack-deps:wheezy
+FROM buildpack-deps:jessie
# remove several traces of debian python
RUN apt-get purge -y python.*
@tnir
tnir / file1.txt
Created June 25, 2016 09:28
Docker Toolbox/boot2docker/VirtualBoxを削除して、Docker for Mac (public beta)で生活していく ref: http://qiita.com/tnir/items/6b2caf018726c590cf92
Remove all Docker Machine VMs? (Y/N): y
Usage: docker-machine rm [OPTIONS] [arg...]
Remove a machine
Description:
Argument(s) are one or more machine names.
Options: