Skip to content

Instantly share code, notes, and snippets.

View serbanghita's full-sized avatar
🏓

Serban Ghita serbanghita

🏓
View GitHub Profile
@serbanghita
serbanghita / reset-jetbrains.sh
Created June 21, 2026 18:31 — forked from IamMohaiminul/reset-jetbrains.sh
Reset JetBrains for macOS
#!/bin/zsh
# 1. Close all JetBrains applications
echo "Closing running JetBrains instances..."
jbs=(phpstorm pycharm intellij webstorm datagrip clion goland rider)
for app in "${jbs[@]}"; do
pkill -fi "$app" 2>/dev/null
done
# 2. Define Base Directories
@serbanghita
serbanghita / .md
Created January 14, 2026 10:18 — forked from luca-trusca/.md
Brag document prompt

Internal Prompt Template: SBI Brag Doc Entry Generator

Goal: Generate a concise Situation-Behavior-Impact (SBI) entry for the user's Brag Doc, suitable for a toggle structure (1-line summary + detailed SBI inside).

Input from User: A description of a work event, task, or accomplishment.

Process:

  1. Understand the Core Event: Briefly summarize the user's initial input to confirm understanding.
  2. Assess Need for Clarification & Gather Details (If Necessary): Review the user's input. Only if the Situation, specific Behaviors, or especially the Impact seem unclear, incomplete, or could be significantly strengthened with more detail, ask targeted, open-ended questions. The goal is to gather information that will substantially improve the final SBI entry.
@serbanghita
serbanghita / codeSplitting.js
Created August 28, 2018 11:01 — forked from mgreer/codeSplitting.js
Code splitting HOC
// @flow
import * as React from 'react';
import {asyncComponent} from 'react-async-component';
export const loaderMaker = (bgColor: string = 'transparent') => () => (
<div style={{position: 'absolute', width: '100%', height: '100%', backgroundColor: bgColor}} />
);
const MAX_RETRIES = 3;
const STARTING_BACKOFF = 500;