Skip to content

Instantly share code, notes, and snippets.

View habil's full-sized avatar

Habil BOZALİ habil

View GitHub Profile
#!/bin/bash
ip=$1
counter=$2
end=-1
if [ -z ${3+x} ];
then
end=16383
echo "max slot not specified. auto set to 16383";
@habil
habil / rbac-helm-config.yaml
Last active November 8, 2018 11:50
K8s tiller Service Account
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
HashMap<String, String> cityMap = new HashMap<String,String>();
private String getCityCode(String cityName){
return cityMap.get(cityName);
}
private void initCityCodes(){
cityMap.put("Adana", "01");
cityMap.put("Adıyaman", "02");
cityMap.put("Afyon", "03");
<string-array name="cityArrayList">
<item>Adana</item>
<item>Adıyaman</item>
<item>Afyon</item>
<item>Ağrı</item>
<item>Amasya</item>
<item>Ankara</item>
<item>Antalya</item>
<item>Artvin</item>
<item>Aydın</item>