Skip to content

Instantly share code, notes, and snippets.

View jadb's full-sized avatar

Jad Bitar jadb

View GitHub Profile
@jadb
jadb / README.md
Last active September 14, 2026 15:58
Block AI/co-author attribution from reaching git remotes and GitHub: a pre-push hook plus a gh wrapper

Keep AI attribution out of git and GitHub

Two guards that stop Co-Authored-By: trailers, 🤖 Generated with … footers and session URLs from reaching a remote.

They catch different things, and you want both — a pre-push hook never sees a PR body, and a gh wrapper never sees a commit message.

Guard Covers
@jadb
jadb / default.md
Created June 22, 2025 02:04 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@jadb
jadb / .varci.yml
Last active August 11, 2016 00:07
Enforce Awesome Lists Contribution Guidelines
ruleset:
one_suggestion:
name: "a single suggestion / PR"
events: [ pull_request ]
message: >
@{{ user.login }}, please only add one suggestion per PR.
when:
- action = "opened" or action = "reopened"
- additions > 1
- files has "README.md"
@jadb
jadb / github-webhook-handler.php
Last active November 7, 2019 07:34 — forked from milo/github-webhook-handler.php
Github webhook handler
<?php
/**
* GitHub webhook handler template.
*
* @see https://developer.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
* @author Jad Bitar (https://github.com/jadb)
*/
@jadb
jadb / onename.txt
Created January 8, 2016 13:36
onename
Verifying that +jadbitar is my blockchain ID. https://onename.com/jadbitar
@jadb
jadb / README.md
Last active September 29, 2015 21:46 — forked from denji/README.md
Remove PhpStorm application, settings and cli-links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/jadb/4b4fe07b778da8a6c377/raw/jetbrains-uninstall.sh | bash -s

Keybase proof

I hereby claim:

  • I am jadb on github.
  • I am jadb (https://keybase.io/jadb) on keybase.
  • I have a public key whose fingerprint is B7C5 9B7A EDBE B134 3D52 FD0A EFF3 7D81 D6E7 BE42

To claim this, I am signing this object:

<?php
namespace FluxCtrl\Model\Hose;
use Cake\Collection\Collection;
use Cake\ORM\TableRegistry;
use FluxCtrl\Datasource\HoseInterface;
use FluxCtrl\Model\Entity\Feed;
use PicoFeed\Parser\Item;
use PicoFeed\PicoFeedException;
use PicoFeed\Reader\Reader;
@jadb
jadb / 0_reuse_code.js
Created April 4, 2014 17:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jadb
jadb / _styles.scss
Created January 28, 2013 01:47
Add `<figure>` and `<figcaption>` support to Octopress' Image Tag plugin. Use at your own risk as it hasn't been thoroughly tested yet. The CSS can be customized, I included the very basic one I used with the necessary tricks.
// http://www.lifeathighroad.com/web-development/forcing-to-wraps-to-the-width-of-an-image-using-css-only/
figure {
display: table;
width: 1px;
}
figure.center { margin: 0 auto 1.5em; }
figure.left { float: left; margin-right: 1.5em; }
figure.right { float: right; margin-left: 1.5em; }
// as per the comments on the previous link, when img's max-width is set to 100%, it breaks