minikube start --memory 4096
minikube addons enable ingress
minikube ip
... shown ip append to/etc/hosts
with host nameissue.test.internal
- kubectl -f resources.yaml apply
- access http://issue.test.internal/info.php
This file contains 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
{ | |
"name": "Iceberg", | |
"foreground": "#c6c8d1", | |
"background": "#161821", | |
"black": "#161821", | |
"red": "#e27878", | |
"green": "#b4be82", | |
"yellow": "#e2a478", | |
"blue": "#84a0c6", | |
"purple": "#a093c7", |
This file contains 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
/// <summary> | |
/// INotifyDataErrorInfoをサポートするBindableBase | |
/// </summary> | |
class ValidatableModelBase : BindableBase, INotifyDataErrorInfo | |
{ | |
private ErrorsContainer<string> _errors; | |
public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged; | |
public IEnumerable GetErrors(string propertyName) |
This file contains 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
declare -i argc=0 | |
declare -a argv=() | |
while (( $# > 0 )); do | |
case "$1" in | |
- | -- ) | |
shift | |
argc+=$# | |
argv+=("$@") | |
break | |
;; |
This file contains 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
#!/bin/bash | |
# required variables | |
required_vars=("FOO" "BAR" "BAZ") | |
# check defined | |
for VAR_NAME in "${required_vars[@]}"; do | |
eval var_temp='$'$VAR_NAME | |
if [[ -z "$var_temp" ]]; then | |
echo "$VAR_NAME is undefined." 1>&2 |
This file contains 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
#!/bin/bash | |
set -e | |
cd $(dirname $0) | |
# 現在日付のYYYYMMDD | |
DATE_CURRENT_YMD=$(date '+%Y%m%d') | |
# AWS Profile 名 | |
AWS_PROFILE=elb_update_cert |
This file contains 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
* { | |
background-color: #fff !important; | |
background-image: none !important; | |
border-color: #fff !important; | |
color: #ddd !important; | |
font-size: 12px !important; | |
font-family: "Hiragino Kaku Gothic Pro W3", "ヒラギノ角ゴ Pro W3", "Meiryo", "メイリオ", "Noto Sans Japanese Regular", sans-serif !important; | |
text-decoration: none !important; | |
} |
This file contains 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
#!/bin/sh | |
#SDK | |
SDK="iphoneos5.0" | |
# コンフィグレーション(「Debug」、「Release」、「Ad hoc」) | |
CONFIGURATION="Release" | |
# Xcodeのプロジェクト名 | |
PROJ_FILE_PATH="hoge.xcodeproj" |
This file contains 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
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor" /v AutoRun /d "@ECHO OFF & IF EXIST \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" & ECHO ON" |
This file contains 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
public class MyClass<T> { | |
private Class<T> typeParamClass; | |
// このメソッドを引数なしで呼び出すと型が解決される | |
public void resolveTypeParamClass(T... t) { | |
@SuppressWarnings("unchecked") | |
Class<T> clazz = (Class<T>) t.getClass().getComponentType(); | |
this.typeParamClass = clazz; | |
} |
NewerOlder