Skip to content

Instantly share code, notes, and snippets.

View upamune's full-sized avatar

Yu SERIZAWA upamune

View GitHub Profile
$ kubectl get pod
No resources found.
$ kubectl apply -f mysql-master.yaml
service "mysql-master" created
statefulset "mysql-master" created
$ kubectl get pod
NAME READY STATUS RESTARTS AGE
mysql-master-0 1/1 Running 0 38s
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
function lgtm() {
figlet -fbanner4 "$1" | sed -e "s/#/:$2:/g" -e 's/\./:white_square:/g'
}
# Insert your preferred key mappings here.jk
map sl nextTab
map sh previousTab
map i LinkHints.activateMode
map I LinkHints.activateModeToOpenInNewTab
map h goBack
map l goForward

Keybase proof

I hereby claim:

  • I am upamune on github.
  • I am upamune (https://keybase.io/upamune) on keybase.
  • I have a public key whose fingerprint is B8FA 3F8F EB24 9269 DAFE F35E 1214 D9EA 968F 130B

To claim this, I am signing this object:

@upamune
upamune / IntelliJ_IDEA__Perf_Tuning.txt
Created August 25, 2016 06:34 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
declare module 'react-typeahead' {
export import React = __React;
export interface TypeaheadProps extends React.Props<TypeaheadClass> {
options: any[];
defaultValue?: string;
value?: string;
maxVisible?: number;
customClasses?: any;
placeholder?: string;
declare module 'react-typeahead' {
export import React = __React;
export interface TypeaheadProps extends React.Props<TypeaheadClass> {
options: any[];
defaultValue?: string;
value?: string;
maxVisible?: number;
customClasses?: any;
placeholder?: string;
import Vapor
let app = Application()
app.get("/") { request in
return "Hello, World"
}
app.start(port: 8080)
import PackageDescription
let package = Package(
name: "sample-swift-server",
dependencies: [
.Package(url: "https://github.com/qutheory/vapor.git", majorVersion: 0)
]
)