Skip to content

Instantly share code, notes, and snippets.

View iKnowJavaScript's full-sized avatar
🎯
Focusing

Victor Omolayo iKnowJavaScript

🎯
Focusing
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@iKnowJavaScript
iKnowJavaScript / gitflow-breakdown.md
Created April 28, 2021 03:39 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@iKnowJavaScript
iKnowJavaScript / convert-function.scss
Created July 18, 2022 14:21 — forked from npostulart/convert-function.scss
Unit Converting Sass Function
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$baseSize: 16px;
$convertBase: $baseSize;
html {
font-size: percentage($baseSize / 16px);
#!/usr/bin/perl
# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
#
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
#
# 10 May 2008
# Original version by John Gruber:
@iKnowJavaScript
iKnowJavaScript / GetZoneTopNs.js
Created May 2, 2024 11:33
This GraphQL query is designed to fetch a variety of metrics related to web traffic for a specific zone in Cloudflare. The metrics are grouped into different categories such as total requests, top referers, top paths, top hosts, top browsers, and so on. Each category fetches a count, average, and sum of specific metrics like edge response bytes …
query GetZoneTopNs($zoneTag: String, $filter: ZoneHttpRequestsAdaptiveGroupsFilter_InputObject, $order: ZoneHttpRequestsAdaptiveGroupsOrder) {
viewer {
zones(filter: {zoneTag: $zoneTag}) {
total: httpRequestsAdaptiveGroups(filter: $filter, limit: 1) {
count
sum {
edgeResponseBytes
visits
__typename
}
@iKnowJavaScript
iKnowJavaScript / agent.md
Created October 15, 2025 13:45 — forked from steipete/agent.md
Agent rules for git
  • Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
  • Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
  • NEVER edit .env or any environment variable files—only the user may change them.
  • Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
  • Moving/renaming and restoring files is allowed.
  • ABSOLUTELY NEVER run destructive git operations (e.g., git reset --hard, rm, git checkout/git restore to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t