Skip to content

Instantly share code, notes, and snippets.

View promisepreston's full-sized avatar
💭
Gifted and Result-Oriented

Promise Chukwuenyem promisepreston

💭
Gifted and Result-Oriented
View GitHub Profile
@promisepreston
promisepreston / markdown.md
Last active December 9, 2019 15:55
My Personal Cheat Sheet for Markdown

Markdown Cheat Sheet

Headers

H1

H2

H3

H4

H5
H6
@promisepreston
promisepreston / rails.md
Last active October 22, 2019 20:56
[Rails Post Install MEssage]
remote:  !     Failed to install gems via Bundler.
remote:  !     Detected sqlite3 gem which is not supported on Heroku:
remote:  !     https://devcenter.heroku.com/articles/sqlite3
remote:  !




Personal Finance with Family

They say don’t mix money and friends. In my case, I have chosen not to mix money and family any more.

I recently found myself in the situation of having to say no when my parents asked me for a €10,000 loan to fund construction work on a beautiful property in Europe that they’ve been turning into a family-run B&B and wedding venue.

This was not the first time they had found themselves in a tight spot. Four years previously, when I was 23, I’d loaned them €10,000 and had a strenuous time getting paid back.

Hit by the 2008 financial crisis, declining revenues from my father’s business and a credit crunch, my parents have been relying more and more on their kids for financial help. But when they asked me recently if I could loan them the lump sum, I declined.

JavaScript Cheat Sheet

Common Commands and Description

Command Description
cd Change directory

Including JavaScript in an HTML Page

Install Ruby On Rails on Ubuntu 18.04 Bionic Beaver

Table of Contents

  1. Overview
  2. Installing Prerequisites
  3. Installing Ruby with ruby-build
  4. Working with Gems
  5. Installing Rails
  6. Updating rbenv
  7. Uninstalling rbenv

Install and Setup Nginx on Ubuntu 18.04

Install the Prerequisites

sudo apt install curl gnupg2 ca-certificates lsb-release

Set up the Apt Repository

Do not set up the apt repository for stable nginx packages by running the following command below if your architecture is amd64 (64 bit):

echo "deb http://nginx.org/packages/ubuntu lsb_release -cs` nginx" \

Installing and Configuring PgAdmin 4

Introduction

pgAdmin is the most popular and feature-rich platform for administration and development of PostgreSQL databases. Check the pgAdmin official page for more information.

Connect to your Remote PostgreSQL Database

To connect to your remote PostgreSQL database server using pgAdmin 4, follow these steps:

NB: Only use sudo if your PostgreSQL database was installed as root.

@promisepreston
promisepreston / difference_between_git_fetch_and_git_pull.md
Last active December 12, 2019 16:02
When to use Git fetch and Git Pull

Git Cheat Sheet

Glossary

Entities Description
branch lightweight movable pointer to a commit
clone local version of a repository, including all commits and branches
commit A Git object, a snapshot of your entire repository compressed into a SHA
git An open source, distributed version-control system
GitHub A platform for hosting and collaborating on Git repositories

Install Zammad in Production with Docker-Compose

Docker is a container-based software framework for automating deployment of applications. Compose is a tool for defining and running multi-container Docker applications. This repo is meant to be the starting point for somebody who likes to use dockerized multi-container Zammad in production. The Zammad Docker image uses the stable branch of Zammad’s Git repo.

The Docker images are hosted on DockerHub:

But in production it is well suited to use the Zammad Docker Compose Image. The Zammad Docker Image can be used in developement and test environments.