Skip to content

Instantly share code, notes, and snippets.

View phersh's full-sized avatar

Phil Hershkowitz phersh

View GitHub Profile
@phersh
phersh / openclaw-security-setup.md
Created February 8, 2026 19:39 — forked from jordanlyall/openclaw-security-setup.md
OpenClaw Security-First Setup Commands - Companion to my X article on hardening your AI agent setup

OpenClaw Security-First Setup Commands

Companion to: "How I Set Up OpenClaw Without Giving It the Keys to My Life"

Phase 1: Harden the Machine

Create Dedicated User

sudo sysadminctl -addUser openclaw -password - -home /Users/openclaw
@phersh
phersh / ssh_authentication.txt
Created October 15, 2020 20:39 — forked from ddeveloperr/ssh_authentication.txt
Test your ssh terminal connection with github account, (ssh authentication)
1. You mast have a public key from your mashine stored on github as SSH key here:
https://github.com/settings/ssh
How to create ssh key on unix/mac os x:
- Open terminal, go to the root typing: $ cd ~ (recommended)
- Type: ssh-keygen -t rsa -C "your@email.address"
- To secure your ssh key ststem will ask you for passphrase (recommended) but you can skip it also
- That's you have the ssh key
- Check it with: $ ls -al ~/.ssh
@phersh
phersh / gist:8bb69432e42669712c425d6a5625a033
Created December 27, 2019 19:58
Get field names from MacOS Contacts database (from shell)
sqlite3 AddressBook-v22.abcddb "PRAGMA table_info(ZABCDRECORD);"
Verifying my Blockstack ID is secured with the address 1BXyvgspVLCV9eGBH6xXg5Dnfua2Tu2qVE https://explorer.blockstack.org/address/1BXyvgspVLCV9eGBH6xXg5Dnfua2Tu2qVE
@phersh
phersh / 0_reuse_code.js
Last active August 29, 2015 14:26
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