Skip to content

Instantly share code, notes, and snippets.

View alifruliarso's full-sized avatar
Fatherhood, coding, and the quest for Islamic wisdom

Ruli alifruliarso

Fatherhood, coding, and the quest for Islamic wisdom
View GitHub Profile
@boxabirds
boxabirds / .cursorrules
Last active August 13, 2025 12:28
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@danhollick
danhollick / tailwind-css-v4.mdc
Last active September 15, 2025 07:15
Cursor rules file for Tailwind CSS v4.0
// Update globs depending on your framework
---
name: tailwind_v4
description: Guide for using Tailwind CSS v4 instead of v3.x
globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"]
tags:
- tailwind
- css
---
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@KroniK907
KroniK907 / GitButler-WSL.md
Last active September 12, 2025 00:22
Installing GitButler on Windows via WSL

Installing GitButler on WSL Ubuntu - A Complete Guide

Last updated: 2025-09-11 Installing Gitbutler Version: 0.16.0

This guide will provide a complete walkthrough for getting GitButler setup and functioning on a windows environment using Windows Subsystem for Linux (WSL).

Please note that GitButler on windows via wsl is not well tested and not officially supported. Also, please note that installing and running GitButler on windows and pointing it to a WSL project folder or visa versa is not currently supported.

Prerequisites:

@vik-y
vik-y / settings.json
Created September 27, 2023 03:20
VScode configuration that helps you write python code better!
{
"editor.formatOnSave": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.sortImports.args": [
"--profile",
"black"
],
"[python]": {
"editor.codeActionsOnSave": {
@smadil997
smadil997 / SocketIOController.java
Created October 8, 2022 07:17
This is socket IO controller.
package com.alis.soft.socketIO.socketcontroller;
import com.alis.soft.socketIO.data.Message;
import com.corundumstudio.socketio.AckRequest;
import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.SocketIOServer;
import com.corundumstudio.socketio.listener.ConnectListener;
import com.corundumstudio.socketio.listener.DataListener;
import com.corundumstudio.socketio.listener.DisconnectListener;
import lombok.extern.log4j.Log4j2;
@smadil997
smadil997 / SocketIOConfig.java
Created October 8, 2022 06:58
Socket IO configuration file
package com.alis.soft.socketIO.config;
import javax.annotation.PreDestroy;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import asyncio
from pyppeteer import launch
from urllib.parse import urlparse
import http.client
import json
import logging
URL = 'https://example.metabase.com/dashboard/4'
USERNAME = 'username'
PASSWORD = 'password'
@lakuapik
lakuapik / .env.example
Last active March 13, 2023 11:55
Laravel Sail example config using alpine:edge image with PHP 8
# file: /laravel-project/.env.example
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_SERVICE=laravel.test
APP_PORT=8000
@selimb
selimb / example_project.py
Last active August 10, 2025 13:38
FastAPI lifespan-scoped (singleton) dependencies
########
# app.py
########
# Example of how I use it in my project. This file cannot be run as-is.
# The only difference with the example in the fastapi_singleton module docstring is
# the use of a subclassed FastAPI application to define type annotations
import fastapi
import fastapi_singleton