Security Measure | Description | |
---|---|---|
☐ | Use HTTPS everywhere | Prevents basic eavesdropping and man-in-the-middle attacks |
☐ | Input validation and sanitization | Prevents XSS attacks by validating all user inputs |
☐ | Don't store sensitive data in the browser | No secrets in localStorage or client-side code |
☐ | CSRF protection | Implement anti-CSRF tokens for forms and state-changing requests |
☐ | Never expose API keys in frontend | API credentials should always remain server-side |
A disciplined, evidence-first workflow for autonomous code agents
The Cursor Operational Doctrine (file core.md
) encodes the agent’s always-on principles—reconnaissance before action, empirical validation over conjecture, strict command-execution hygiene, and zero-assumption stewardship.
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/bash | |
# Default values | |
verbose=0 | |
min_battery=20 | |
log() { | |
if [[ "$verbose" -gt 0 ]]; then | |
echo "$@" | |
fi |
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/bash | |
###### Tasks Requiring Manual Checking ###### | |
# Review Installed Applications: | |
# Steps: Open Applications folder and Launchpad. | |
# Signs of Compromise: Unfamiliar or unexpected applications installed. | |
# Check App Permissions: | |
# Steps: System Preferences → Security & Privacy → Privacy tab. | |
# Signs of Compromise: Unusual permissions granted to unknown applications. | |
# Audit Browser Extensions: |
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/zsh | |
# Ensure Xcode and Command Line Tools are installed | |
xcode-select --install | |
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer | |
sudo xcodebuild -license | |
# Install Homebrew | |
which -s brew |
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
# Install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# Tap needed repos | |
brew tap homebrew/cask-fonts | |
# Install some stuff from Homebrew | |
brew install --cask \ | |
alex313031-thorium \ |
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
#!/usr/bin/env sh | |
# stuff to do when setting up a fresh install of MacOS | |
set -o errexit -o nounset -o noclobber | |
[ -e /etc/pam.d/sudo_local ] || \ | |
echo 'auth sufficient pam_tid.so' \ | |
| sudo tee /etc/pam.d/sudo_local | |
softwareupdate --install-rosetta --agree-to-license |
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
### Test on https://github.com/yousseb/meld/releases/tag/osx-20 | |
### OSX - 3.21.0 (r4) Sonoma | |
### !!! Note: You need put the Meld.app r4 build to the /Applications path first. | |
#!/bin/zsh | |
#Fix libpng16.16.dylib not found | |
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib | |
#Fix libbrotlidec.1.dylib not found |
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/bash | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
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
#!/usr/bin/env bash | |
# git clone [email protected]:14e1a09abfdb9e762683c10cfeff3b4a.git gists-blog | |
# cd gists-blog | |
# ./generate.sh | |
# git add . | |
# git commit -m "updated links" | |
# git push | |
page_count=$(curl -I https://api.github.com/users/peteristhegreat/gists | grep link | grep -oP '(?<=\?page=)(\d+)(?=>; rel="last")') |
NewerOlder