Skip to content

Instantly share code, notes, and snippets.

Mitsuyuki Shiiba bufferings

Block or report user

Report or block bufferings

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View helloweb-certificate.yaml
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: helloweb-certificate
spec:
domains:
- gke.shiiba.dev
View envoy.yaml
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 9901
static_resources:
listeners:
- name: listener_0
View FizzBuzz.java
public class FizzBuzz {
public static void main(String[] args) {
for (int i = 1; i <= 30; i++) {
int a =(int)Math.pow(0, i % 3);
int b =(int)Math.pow(0, i % 5);
System.out.print("Fizz".repeat(a));
System.out.print("Buzz".repeat(b));
System.out.println(Integer.toString(i).repeat((a ^ 1) * (b ^ 1)));
}
}
View Chart.yaml
apiVersion: v1
name: istio
version: 0.8.0
description: Helm chart for all istio components
keywords:
- istio
- security
- sidecarInjectorWebhook
- mixer
- pilot
View gist:1e6c908bc0fafc9f29f1f1a4d7c2819d
❯ minikube start \
--extra-config=controller-manager.cluster-signing-cert-file="/var/lib/localkube/certs/ca.crt" \
--extra-config=controller-manager.cluster-signing-key-file="/var/lib/localkube/certs/ca.key" \
--extra-config=apiserver.admission-control="NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" \
--kubernetes-version=v1.10.0 \
--memory=4096
View helm-service-account.yaml
# Create a service account for Helm and grant the cluster admin role.
# It is assumed that helm should be installed with this service account
# (tiller).
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
View GebConfig.groovy
import org.openqa.selenium.Platform;
import org.openqa.selenium.remote.BrowserType;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
driver = {
def capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, BrowserType.FIREFOX);
capabilities.setCapability(CapabilityType.PLATFORM_NAME, Platform.LINUX);
@bufferings
bufferings / doma3-raw-string-literals.md
Last active Apr 2, 2018
実際に書いて比べてみようと思って
View doma3-raw-string-literals.md
項目 現状 案1 案2 案3
@bufferings
bufferings / Main.java
Last active Mar 21, 2018
JShell で Effectively Final 遊び
View Main.java
import java.util.Collections;
import java.util.List;
import java.util.stream.Stream;
/**
* こんなつぶやきを見かけたので、debugオプションつけて雰囲気見てみたお話。
* https://twitter.com/mike_neck/status/976358507011178496
*
* jshell> var list = List.of("foo", "bar")
* list ==> [foo, bar]
View gist:e9c757c90631149650d3e082803bad99
jshell> Var var(){return new Var();}
| created method var(), however, it cannot be referenced until class Var is declared
jshell> class Var{Var1 var = new Var1();}
| created class Var, however, it cannot be referenced until class Var1 is declared
jshell> class Var1{Var var(){return new Var();}}
| created class Var1
jshell> var var = var().var.var();
You can’t perform that action at this time.