Skip to content

Instantly share code, notes, and snippets.

View mishudark's full-sized avatar
:octocat:
Rocking

mishudark mishudark

:octocat:
Rocking
View GitHub Profile
@mishudark
mishudark / .cursorrules
Created June 8, 2025 09:27 — 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
import numpy as np
from datetime import date, timedelta
from collections import defaultdict
# --- Configuration ---
# Adjust this threshold based on what you consider a "large" change for your project.
LOC_THRESHOLD = 100
STATE_NAMES = ["Stable", "Active Dev", "High Churn"]
def parse_git_log(filepath):
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
scripts/sdk/bazel/generate.py --archive out/default/sdk/archive/core.tar.gz --output my_workspace --tests my_test_workspace && my_test_workspace/run.py
package httputil
import (
"context"
"net/http"
"encoding/json"
)
// RequestFunc may take information from an HTTP request and put it into a
// request context. In Servers, RequestFuncs are executed prior to invoking the
@mishudark
mishudark / init.vim
Created February 12, 2020 11:32
$HOME/.config/nvim/init.vim
" vim:foldmethod=marker:foldlevel=0
" zo + zc to open / close folds in case I forgot :P
if (!isdirectory(expand("$HOME/.config/nvim/repos/github.com/Shougo/dein.vim")))
call system(expand("mkdir -p $HOME/.config/nvim/repos/github.com"))
call system(expand("git clone https://github.com/Shougo/dein.vim $HOME/.config/nvim/repos/github.com/Shougo/dein.vim"))
endif
" DEIN {{{
set runtimepath+=~/.config/nvim/repos/github.com/Shougo/dein.vim/
call dein#begin(expand('~/.config/nvim'))
#!/usr/bin/env python3
#
# Copyright 2018 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
[user]
email = [email protected]
name = mishudark
[push]
default = current
[merge]
conflictstyle = diff3
@mishudark
mishudark / startup-tech.md
Last active December 9, 2021 18:07
general ideas of a stack inside of a startup with remote machines

General idea

  • gerrit(k8s) - linked to github repo - partial clone activated
  • bazel remote cache(k8s)
  • bazel Remote Build API on VM (no containers until it is not an issue for bazel runner)
  • drone master(k8s)
  • drone worker(physical)
  • developers working on remote workstation only (except for mobile apps)

Build agent container/machine(agent)

This container/machine is used as a proxy to invoke Bazel to run jobs using Remote Build API, the advantage

Dark theme

nvim ~/.config/gtk-4.0/settings.ini

[Settings]
gtk-application-prefer-dark-theme=1

Set elementary-X theme