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 / readme.md
Created June 14, 2026 14:24
Generate Commit Message via Claude Command and GIT Hook
  1. Make sure Claude Code is installed
claude --version

If not installed, install via npm:

npm install -g @anthropic-ai/claude-code
@sanikkenway
sanikkenway / docker-compose.yml
Last active June 2, 2026 00:44
Traefik Docker Compose
services:
traefik:
image: traefik:v3
container_name: traefik
restart: unless-stopped
ports:
- "80:80"
- "443:443"
command:
- --providers.docker=true
@sanikkenway
sanikkenway / Caddyfile
Created January 28, 2026 02:06
Laravel Frankenphp Files (via Laravel Octane)
{
# Enable FrankenPHP
frankenphp
# auto_https off
# encode zstd gzip
# Optional: better dev performance
order frankenphp before file_server
}
:8000 {
name: Pest Tests
on:
push:
branches:
- 'bugfix/**'
- 'feature/**'
pull_request:
branches:
- 'bugfix/**'
@sanikkenway
sanikkenway / glass.css
Created June 11, 2025 01:48
apple_liquid_glass
html,
body {
height: 100%;
min-height: 500vh;
margin: 0;
font-family: system-ui, sans-serif;
overflow-x: hidden;
}
.bg {
position: absolute;
@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
<?php
function kaprekar_constant($number)
{
$constant = 6174;
if (strlen((string)$number) == 3) {
$constant = 495;
}
do {
@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.

@sanikkenway
sanikkenway / README.md
Created December 30, 2021 08:24
Jitsi Deployment

*** Don't forget to change "jitsi.example.com" to your domain name ***

  1. Configure hostname. 1.1 Change the hostname to your domain name. sudo hostnamectl set-hostname jitsi.example.com 1.2 Add this line to /etc/hosts sudo nano /etc/hosts 127.0.0.1 jitsi.example.com

  2. Configure firewall.

@sanikkenway
sanikkenway / Optional.md
Last active January 25, 2025 18:15
Gitea Setup

Configuring Email Notifications

If you want your Gitea instance to send notification emails, you can either install Postfix or use some transactional mail service such as SendGrid, MailChimp, MailGun, or SES.

To enable email notifications, open the configuration file and edit the following lines:

sudo nano /etc/gitea/app.ini
[mailer]