Instantly share code, notes, and snippets.

View gist:a339632a9c71867df5719f0aa5eb7a8a

docker run -ti --rm -v /:/test alpine sh

View git.bat
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
View Install MSOffice on Ubuntu.md

Install Microsoft Office 2010 on Ubuntu

Requirements

We'll install MSOffice using the PlayOnLinux wizard. Additionally, MSOffice requires samba and winbind to properly work.

So, if not installed, install them:

sudo apt-get install playonlinux samba winbind
View installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
View readme.md
View readme.md
  1. Add apply plugin: 'war' and dependencies { providedRuntime('org.springframework.boot:spring-boot-starter-tomcat') } in build.gradle.
  2. extends SpringBootServletInitializer
package hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
View gist:927e1fc1eac76261f65bc135b17665e7
FROM gradle:4.1-alpine as gradle
COPY source /home/gradle/
RUN gradle build

FROM openjdk:8-jdk-alpine
COPY --from=gradle /home/gradle/build/libs/gs-spring-boot-docker-0.1.0.jar /app.jar
ENV JAVA_OPTS=""
ENV PORT 5000
EXPOSE 5000
View Dockerfile-etcd
FROM golang:alpine
MAINTAINER Eugene Klimov <bloodjazman@gmail.com>
RUN apk --no-cache add git && \
mkdir -p /zetcd && \
GOPATH=/zetcd go get github.com/coreos/zetcd/cmd/zetcd && \
apk del git && \
cp -v /zetcd/bin/zetcd /bin/zetcd && \
rm -rf /zetcd
View readme.md

Reference: Prometheus on Kubernetes Docs: Configuring your own Prometheus server within Kubernetes

  1. wget https://docs.gitlab.com/ce/user/project/integrations/samples/prometheus.yml

  2. kubectl apply -f path/to/prometheus.yml

  3. Check, kubectl describe pods -n prometheus and curl http://127.0.0.1:8001/api/v1/proxy/namespaces/prometheus/pods/prometheus-441854201-3pmsr:9090/metrics

  4. Setting a Public IP and Firewall, likes those images.