Skip to content

Instantly share code, notes, and snippets.

View sanikkenway's full-sized avatar
💻
rails new unicorn

Nik Saiful Anuar sanikkenway

💻
rails new unicorn
View GitHub Profile
@sanikkenway
sanikkenway / metabase_deploy.md
Last active February 14, 2022 05:16
Metabase Deploy

Prerequisites

  • A server running Ubuntu 18.04 and above
  • Domain name dedicated for Metabase.

Step 1: Install Java

Once you have completed your instance or server setup you can proceed to install Java 8.

Execute the following command to install OpenJDK 8.

<?php
function kaprekar_constant($number)
{
$constant = 6174;
if (strlen((string)$number) == 3) {
$constant = 495;
}
do {
@sanikkenway
sanikkenway / readme.md
Created September 24, 2023 08:58
Postgres Setup Ubuntu with Remote Connection

Installing Postgres

In this step, you will be installing Postgres on your server. The first thing to do is SSH into your server by running:

ssh user@ip

Next, update your server packages and dependencies by running:

sudo apt update