Skip to content

Instantly share code, notes, and snippets.

@shanmuha
shanmuha / .cursorrules
Created June 1, 2025 07:34 — forked from boxabirds/.cursorrules
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
pragma solidity ^0.4.19;
import './ERC721.sol';
contract CryptoMarchMadness is ERC721, ERC721Metadata, ERC721Enumerable {
uint256 private constant MASK = 0x3f;
uint256 public basePoolFeeInWei; // Fee required to purchase a bracket
uint256 public collectorFeeInWei; // Flat fee reserved for the pool operator
@shanmuha
shanmuha / gcs.service
Last active July 14, 2020 06:25 — forked from craigafinch/gcs.service
A systemd service to manage a Google Cloud Storage bucket mounted with GCSFuse
# https://github.com/GoogleCloudPlatform/gcsfuse
# put this file as /etc/systemd/system/gcsfusemount.service and then `systemctl enable gcsfusemount.service`
#
[Unit]
Description=Google Cloud Storage FUSE mounter
After=local-fs.target network-online.target google.service sys-fs-fuse-connections.mount
Before=shutdown.target
[Service]
Type=forking
@shanmuha
shanmuha / docker.zsh
Last active July 4, 2017 22:36 — forked from bradleybeddoes/docker.zsh
Docker completion for Zsh + prezto
$ docker run<tab>
-- no matches found --
$ curl -fLo ~/.zprezto/modules/completion/external/src/_docker https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/zsh/_docker
$ docker run<tab>
-- images --
0a89c74fff6c -- latest in bradleybeddoes/docker-whale
-- repositories --
bradleybeddoes/docker-whale
@shanmuha
shanmuha / Example.java
Created January 26, 2017 18:56 — forked from ldaley/Example.java
Periodic background jobs in Ratpack
import ratpack.exec.ExecController;
import ratpack.exec.Execution;
import ratpack.http.client.HttpClient;
import ratpack.server.RatpackServer;
import ratpack.service.Service;
import ratpack.service.StartEvent;
import ratpack.service.StopEvent;
import java.net.URI;
import java.util.Optional;