Skip to content

Instantly share code, notes, and snippets.

View steevehook's full-sized avatar
📖
redefining education

Steve Hook steevehook

📖
redefining education
View GitHub Profile
git shortlog | grep -e '^ ' | sed 's/[[:space:]]\+\(.*\)$/\1/' | awk '{print length($0)}'
package main
import (
"fmt"
"log"
"os"
"os/exec"
)
type Data struct {
@steevehook
steevehook / pandoc.css
Last active March 1, 2019 15:41 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
eval $(minikube docker-env)
# HERE IS WHAT HAPPENS:
# export DOCKER_TLS_VERIFY="1"
# export DOCKER_HOST="tcp://192.168.99.100:2376"
# export DOCKER_CERT_PATH="/Users/scirlig/.minikube/certs"
# export DOCKER_API_VERSION="1.35"
# Run this command to configure your shell:
# eval $(minikube docker-env)
# Default owners for everything in the repo. A review request will automatically be created when a new pull request is opened.
* @organization/some-team

OpenAPI Specification

Version 3.0.2

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 RFC2119 RFC8174 when, and only when, they appear in all capitals, as shown here.

This document is licensed under The Apache License, Version 2.0.

Introduction

@steevehook
steevehook / multiple_ssh_setting.md
Last active January 23, 2019 16:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
Fix typo in introduction to user guide
Jira: ABC-123
Reviewer: jsmith
PR: GH-456
@steevehook
steevehook / Dockerfile
Last active January 16, 2019 22:25
Docker image boost caching
FROM node:alpine
ENV PORT 8080
EXPOSE $PORT
WORKDIR /usr/app
# rebuild from here only of dependencies added
COPY ./package.json ./
version: "3.1"
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_PASSWORD: password
MYSQL_USER: user