Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSButton *closeButton = [self standardWindowButton:NSWindowCloseButton]; | |
NSView *themeFrame = [closeButton superview]; | |
CGFloat buttonYOrigin = NSMaxY(themeFrame.frame)-34; | |
//Alter the button frames | |
NSRect closeFrame = closeButton.frame; | |
closeFrame.origin.y = buttonYOrigin; | |
closeButton.frame = closeFrame; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose') | |
const Schema = mongoose.Schema | |
// Create a new schema for uploaded documents | |
const DocumentUploadSchema = new Schema({ | |
title: String, | |
description: String, | |
fileName: String, | |
uploadDate: { |
This document holds a list of resources for Philippe Ozil (@pozil)'s POST/CON 25 talk: "Build Multi-Agent Experiences with Agent Builder".
- Post: A2A protocol announcement
- Repo:A2A protocol repository
- Docs: MCP documentation
- Postman Workspace: Salesforce Developers
- Docs: Create and use AI tools in Postman
- Site: Postman's Public MCP Server Catalog
- Post: Heroku MCP server announcement
- Post: MuleSoft MCP server announcement
- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adminAuth: { | |
type: "strategy", | |
strategy: { | |
name: "google", | |
label: 'Sign in with Google', | |
icon: "fa-google", | |
strategy: require('passport-google-oauth').OAuth2Strategy, | |
options: { | |
clientID: 'id', | |
clientSecret: 'secret', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
NewerOlder