Skip to content

Instantly share code, notes, and snippets.

View ipolyzos's full-sized avatar
🏠
Working from home

Ioannis Polyzos ipolyzos

🏠
Working from home
View GitHub Profile
@ipolyzos
ipolyzos / kube_internal_loadbalancer_test_acs_acs-engine
Created December 22, 2017 10:00
Test Kubernetes internal load balancer on ACS/ACS-Engine deployment
# deploy external load-balancer example
$ kubectl create -f https://github.com/SenthuranSivananthan/azure/blob/master/ACS/kubernetes/internal-load-balancer.yaml
# verify external IP
$ kubectl get svc -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
frontend-lb LoadBalancer 10.0.52.162 51.140.81.20 80:30107/TCP 8m app=nginx_backend
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 11m <none>
(51.140.81.20 is a public IP ! )
@ipolyzos
ipolyzos / macosx_emacs_installation
Created December 27, 2017 14:50
Install Emacs on MacOSX
# Clean out any previously downloaded tmp & source files
$ brew cleanup
# Check your homebrew installation
$ brew doctor
# Make sure your running the most recent homebrew
$ brew update
# Upgrade any homebrew packages
@ipolyzos
ipolyzos / minikube_kubernator_deploy
Last active December 30, 2017 01:03
kubernator test deployment on localhost with minikube
# Test kubernator on localhost via minikube
Kubernator's home @ https://github.com/smpio/kubernator
## Start minikube
$ minikube start
## Deploy kubernator locally on minikube
$ kubectl create ns kubernator
$ kubectl -n kubernator run --image=smpio/kubernator --port=80 kubernator
$ kubectl -n kubernator expose deploy kubernator
@ipolyzos
ipolyzos / note_macosx_install_wireshark
Created December 30, 2017 15:39
notes installing wireshark on macosx
# install tshark CLI tool only
$ brew install wireshark
# install wireshark w/ GUI
$ brew install wireshark --with-qt
# install wireshark cask
$ brew cask install wireshark
@ipolyzos
ipolyzos / notes_git_sync_forked_repo
Created December 30, 2017 18:19
Sync a forked git repository (note)
# add upstream remote
$ git remote add upstream git@github.com:ipolyzos/project.git
# fetch data from the upstream repo
$ git fetch upstream
# checkout the fork’s master branch
$ git checkout master
# merge changes from upstream/master
@ipolyzos
ipolyzos / notes_kubectl_run_generators_ref.md
Last active February 20, 2018 17:32
Kubectl - Run - Generators (Reference)

Kubectl - Run - Generators (Reference)

kubectl run allows you to generate the following resources (using --generator flag):

Type Config
Pod run-pod/v1
Replication controller run/v1
Deployment (using extensions/v1beta1 endpoint) deployment/v1beta1 (default)
Deployment (using apps/v1beta1 endpoint) deployment/apps.v1beta1 (recommended)
Job job/v1
@ipolyzos
ipolyzos / cloudfoundry_secgroup_wide-open
Created January 9, 2018 09:10
Cloud Foundry Wide Open Security Group
[
{
"protocol": "all",
"destination": "0.0.0.0/0"
}
]
@ipolyzos
ipolyzos / cpu_mining_minergate
Created January 13, 2018 19:04
Easy CPU mining with Minergate
# Easy CPU mining with Minergate
## Open account on minerhatr i.e https://minergate.com
## Pull minergate-cli docker image i.e miner
$ docker pull minecoins/minergate-cli
## Run miner
docker run -d --rm minecoins/minergate-cli -user MINERGATE-USERNAME -bcn 2
@ipolyzos
ipolyzos / cpu_mining_nicehash
Created January 13, 2018 19:26
# Easy CPU mining with NiceHash
# Easy CPU mining with NiceHash
## Open account on nicehash i.e https://nicehash.com
## Pull nheqminer docker image i.e miner
$ docker pull kmdgeek/nheqminer
## Run miner
$ docker run -d kmdgeek/nheqminer /nheqminer -l equihash.eu.nicehash.com:3357 -u USERNAME.LABEL
@ipolyzos
ipolyzos / cpu_mining_cpuminer
Created January 13, 2018 19:37
Easy CPU mining with CPUMINER
# Easy CPU mining with CPUMINER
## Open account on nicehash i.e https://nicehash.com
## Pull cpuminer docker image i.e miner
$ docker pull alexellis2/cpu-opt:2018-1-2
## Run cpuminer
$ docker run -d alexellis2/cpu-opt:2018-1-2 ./cpuminer -a ALGORITHM -o MINING_SERVER -u USER_ID.LABEL