Skip to content

Instantly share code, notes, and snippets.

View hinorashi's full-sized avatar
🎯
Gaming Time

hinorashi hinorashi

🎯
Gaming Time
View GitHub Profile
@hinorashi
hinorashi / docker-compose.yaml
Last active August 12, 2019 07:11
Local development environment with dockerized kafka
version: '3'
services:
zookeeper:
image: "wurstmeister/zookeeper"
container_name: "zookeeper"
restart: always
ports:
- 2181:2181
kafka:
@hinorashi
hinorashi / node_nginx_ssl.md
Created March 15, 2020 04:37 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@hinorashi
hinorashi / curl.md
Created March 16, 2021 07:38 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@hinorashi
hinorashi / private_fork.md
Created May 16, 2021 17:37 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@hinorashi
hinorashi / route53-delete-record.sh
Last active July 18, 2022 12:09
Delete a Route 53 Record with AWS CLI
#!/bin/bash
# =============================================================================================================
# Usage:
# ./route53-delete-record.sh [Hostname] [Type]
# Example:
# ./route53-delete-record.sh test.example.org
# ./route53-delete-record.sh test.example.org TXT
# ./route53-delete-record.sh test.example.org txt
# ./route53-delete-record.sh test.example.org CNAME