Skip to content

Instantly share code, notes, and snippets.

View reoring's full-sized avatar
🏢
work at office

reoring reoring

🏢
work at office
View GitHub Profile
@reoring
reoring / sample.ts
Last active April 16, 2023 22:49
"Multi Cloud Kubernetes Cluster with Cilium" generated by Pulumi AI
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
import * as azure from "@pulumi/azure";
import * as k8s from "@pulumi/kubernetes";
// Create an AWS VPC.
const vpc = new awsx.ec2.Vpc("vpc");
@reoring
reoring / gist:8fe11a8969300677bd2060ca68cf1eeb
Created November 15, 2020 07:24
Kubernetes service controller keep deployment example
package controllers
import (
"context"
"encoding/base64"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/record"
### Keybase proof
I hereby claim:
* I am reoring on github.
* I am reoring (https://keybase.io/reoring) on keybase.
* I have a public key ASDbmRe2qHwSB9Sgh0QCa-EKgdHVF4Q_pVE_1o02yiyt4Qo
To claim this, I am signing this object:
@reoring
reoring / gist:73b27ebfd525f31c37a3c3132982861c
Created November 17, 2018 08:38
Dockerハンズオン Laravel + Docker + docker-compose
# Dockerハンズオン
```bash
mkdir docker-handson && cd docker-handson
mkdir src laravel
```
## install.sh
@reoring
reoring / file0.php
Created November 10, 2017 06:12
CakePHPのMigrationクラスを既存のクラス定義からジェネレートする ref: http://qiita.com/reoring/items/a69551c16721685e8d8e
<?php
class MigratinoClassGenerator
{
public function generate(string $className)
{
$ref = new ReflectionClass($className);
$properties = $ref->getProperties();
@reoring
reoring / playbook_vuejs.md
Created August 22, 2017 00:42
StorybookをVuejsで使う

StorybookをVuejsで使う Screen Shot 2017-08-21 at 17.08.26.png

Storybook3.2からVuejsのサポートが追加されたので、さっそく使ってみます。

Storybookはコンポーネントのカタログを簡単に作成できるツールで、プロジェクト内の自作コンポーネント一覧や使いかたをカタログにできます。

Screen Shot 2017-08-21 at 16.54.49.png

@reoring
reoring / gist:3ff898c90a81073ea37b96e0fef8746b
Last active October 25, 2022 02:50
docker-compose.yml for php and postgresql

html/index.php

<?php

phpinfo();

docker/Dockerfile

@reoring
reoring / gist:9109353
Created February 20, 2014 08:43
slate configuration
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
alias showHintsLeftHand hint AOEUIYQJKX
alias showNormalHint hint AOEUIDHTNSYXFBPKGMCW
bind e:cmd hint ${showNormalHint}

VirtualBox

4.2.16

Vagrant

http://files.vagrantup.com/packages/0219bb87725aac28a97c0e924c310cc97831fd9d/Vagrant-1.2.4.dmg

Box

VirtualBox

4.2.16

Vagrant

http://files.vagrantup.com/packages/0219bb87725aac28a97c0e924c310cc97831fd9d/Vagrant-1.2.4.dmg

Box