https://stackoverflow.com/questions/9537751/virtualbox-port-forward-from-guest-to-host
To get to the host machine from the VM, the IP is 10.0.2.2 (by convention)
apiVersion: v1
kind: Service
metadata:
name: external-iphttps://stackoverflow.com/questions/9537751/virtualbox-port-forward-from-guest-to-host
To get to the host machine from the VM, the IP is 10.0.2.2 (by convention)
apiVersion: v1
kind: Service
metadata:
name: external-ip| #!/bin/bash | |
| minikube delete | |
| # https://github.com/kubernetes/kubeadm/issues/629 | |
| minikube start \ | |
| --kubernetes-version=v1.9.0 \ | |
| --bootstrapper=kubeadm \ | |
| --extra-config=apiserver.admission-control="NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ValidatingAdmissionWebhook,ResourceQuota,DefaultTolerationSeconds,MutatingAdmissionWebhook" |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| ) | |
| var path = "/Users/novalagung/Documents/temp/test.txt" |
To remove a submodule you need to:
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}| type T struct { | |
| A int | |
| B string | |
| } | |
| t := T{23, "skidoo"} | |
| s := reflect.ValueOf(&t).Elem() | |
| typeOfT := s.Type() | |
| for i := 0; i < s.NumField(); i++ { |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| tcget.py | |
| Kosei Moriyama <[email protected]> | |
| ''' | |
| import BeautifulSoup |