Skip to content

Instantly share code, notes, and snippets.

@vpzed
vpzed / pai30-env-template.sh
Last active February 22, 2026 15:23
PAI 3.0 env.sh style template for use with CLAUDE_ENV_FILE
#!/usr/bin/env bash
# PAI 3.0 Environment Variables Template — env.sh / CLAUDE_ENV_FILE Edition
# Generated: 2026-02-16 | Adapted for Claude Code CLAUDE_ENV_FILE: 2026-02-20
#
# SETUP INSTRUCTIONS:
# 1. Copy: cp pai30-env-template.sh $HOME/.config/PAI/pai-env.sh
# 2. Lock down: chmod 600 $HOME/.config/pai-env.sh
# 3. Fill in: Uncomment (remove #) from lines you need and add real keys
# 4. Register: export CLAUDE_ENV_FILE="$HOME/.pai-env.sh"
# (add to ~/.bashrc / ~/.zshrc for persistence)
@johnfoderaro
johnfoderaro / httpd.conf
Created December 24, 2016 15:09
Default httpd.conf file - macOS Sierra 10.12.2 - /etc/apache2/httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@widged
widged / notes.md
Last active September 12, 2017 19:17
GraphQL links. Articles to read and code to check.
@olivierlacan
olivierlacan / migrate_postgresql_database.md
Last active March 2, 2026 06:35
How to migrate a Homebrew-installed PostgreSQL database to a new major version (9.3 to 9.4) on OS X. See upgraded version of this guide: http://olivierlacan.com/posts/migrating-homebrew-postgres-to-a-new-version/

This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.

First let's check something.

brew info postgresql

The top of what gets printed as a result is the most important:

@ohanhi
ohanhi / frp.md
Last active February 10, 2026 02:16
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@sararob
sararob / data-structure.js
Last active April 26, 2022 22:21
Role-based security in Firebase
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR
@1Marc
1Marc / workshops-planning.md
Last active January 20, 2023 02:34
Workshop Planning

This gist is no longer in use.

@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing
@geksilla
geksilla / bootsrap_class_list
Last active September 2, 2025 15:26
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<!-- The required Stripe lib -->
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->