Skip to content

Instantly share code, notes, and snippets.

View engiwip's full-sized avatar

Michael engiwip

View GitHub Profile
@engiwip
engiwip / keybase.md
Created February 8, 2019 13:33
engiwip_keybase

Keybase proof

I hereby claim:

  • I am engiwip on github.
  • I am engiwip (https://keybase.io/engiwip) on keybase.
  • I have a public key ASBWneEbPt3r_o2o7d7QJUH55Nu6kArI7PuwjYi1LQ32PQo

To claim this, I am signing this object:

@engiwip
engiwip / 01-docker-tls.sh
Created March 2, 2019 14:22
Generate Docker certificates for training on TLS
# Configuration
export PUBLIC_DNS=<public hostname>
export PUBLIC_IP=<public host IP>
export PRIVATE_IP=<private host IP>
mkdir docker-ca
chmod 0700 docker-ca/
cd docker-ca/
# CA key
@engiwip
engiwip / ufw.md
Created March 18, 2019 12:42 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@engiwip
engiwip / sftp-ubuntu.md
Created April 2, 2019 05:09 — forked from lymanlai/sftp-ubuntu.md
Basic tutorial for creating a SFTP-only user on Ubuntu 9.04 and greater

Adding SFTP-only user to Ubuntu Server

To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.

Directions

  1. Edit /etc/ssh/sshd_config and make sure to add the following at the end of the file:

     Match group filetransfer
    

ChrootDirectory %h

@engiwip
engiwip / HOCBaseRender.tsx
Created June 18, 2019 17:43 — forked from tejacques/HOCBaseRender.tsx
React Higher Order Components in TypeScript
import * as React from 'react';
import { Component } from 'react';
export default function HOCBaseRender<Props, State, ComponentState>(
Comp: new() => Component<Props & State, ComponentState>) {
return class HOCBase extends Component<Props, State> {
render() {
return <Comp {...this.props} {...this.state}/>;
}
}
@engiwip
engiwip / README-Template.md
Created February 20, 2020 13:15 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites