Skip to content

Instantly share code, notes, and snippets.

View delorenj's full-sized avatar
💥
No time for sleep ! Making things !

delorenj delorenj

💥
No time for sleep ! Making things !
View GitHub Profile
@RafalWilinski
RafalWilinski / claude-desktop-auto-allow-everything-mcp.js
Last active April 30, 2025 06:02
Auto-approve all MCP tool calls in Claude Desktop
// HOW TO INSTRUCTIONS
// 1. Open Claude Desktop
// 2. Go to Help -> Enable Developer Mode
// 3. Navigate Developer Tools window named "Developer Tools - https://claude.ai"
// 4. Go to "Console" tab
// 5. Type "allow pasting" and hit Enter
// 6. Paste this snippet and hit Enter
// From now on, all MCP calls will be auto-approved
@vktr
vktr / rule.js
Created February 10, 2018 18:54
Add Stripe Customer Id to Auth0 via custom rule
function (user, context, callback) {
user.app_metadata = user.app_metadata || {};
if ('stripe_customer_id' in user.app_metadata) {
context.idToken['https://example.com/stripe_customer_id'] = user.app_metadata.stripe_customer_id;
return callback(null, user, context);
}
var stripe = require('stripe')('sk_....');
var customer = {
@ryohey
ryohey / gist:8591805
Created January 24, 2014 03:54
Calling a Callback after the Action using Sequence Example in cocos2d-x v3.0beta0
auto jump = JumpBy::create(0.5, Point(0, 0), 100, 1);
auto callback = CallFunc::create([](){
CCLog("Jumped!");
});
auto seq = Sequence::create(jump, callback, NULL);
sprite->runAction(seq);