Skip to content

Instantly share code, notes, and snippets.

View aksalsf's full-sized avatar

Aksal aksalsf

  • Indonesia
  • 22:53 (UTC +07:00)
View GitHub Profile
@aksalsf
aksalsf / commit-message-guidelines.md
Last active November 24, 2025 09:14
Commit Message Guidelines

Format

<type>(<optional scope>): <emoji> <description>

<optional body>

<optional footer>
@aksalsf
aksalsf / vite.config.ts
Last active August 6, 2024 15:38
AdonisJS Vite Config with Firebase Messaging Service Worker Support
import { resolve } from 'node:path'
import { getDirname } from '@adonisjs/core/helpers'
import inertia from '@adonisjs/inertia/client'
import adonisjs from '@adonisjs/vite/client'
import react from '@vitejs/plugin-react'
import { build } from 'esbuild'
import { defineConfig, loadEnv } from 'vite'
export default defineConfig((config) => ({
@aksalsf
aksalsf / docker-compose.yml
Created August 14, 2023 07:49
Docker (MySQL + Postgres)
version: '3.3'
services:
mysql:
image: mysql
restart: always
environment:
# So you don't have to use root, but you can if you like
MYSQL_USER: 'root'
# You can use whatever password you like
MYSQL_PASSWORD: 'password'
@aksalsf
aksalsf / .eslintrc.json
Created September 1, 2022 15:47
eslintrc example
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"standard",
"plugin:import/recommended",
@aksalsf
aksalsf / dangerfile.ts
Created September 1, 2022 15:46
Dangerfile Example
import { message, warn, fail, markdown, danger } from "danger";
const newFiles = danger.git.created_files.length;
const deletedFiles = danger.git.deleted_files.length;
const modifiedFiles = danger.git.modified_files.length;
const { additions = 0, deletions = 0 } = danger.github.pr;
const hasRequestedForReview = !!danger.github.reviews.map(review => review.state).length
const { teams: teammates, users: reviewers } = danger.github.requested_reviewers
const changes = additions + deletions;
const maximumChanges = 640;