Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / memory.md
Last active November 1, 2025 17:22
Claude Memory Template

Claude Memory Template

Copy-Paste Instructions for Optimal AI Interaction

1. Core Identity and Objective

I am [Your Name/Role], focused on:

@dlangille
dlangille / nginx include unifi.conf
Last active January 17, 2022 18:29
nginx reverse proxy for unifi controller, so you can put a real cert in front of it.
# listen on port 80, and redirect to port 443
server {
listen 10.0.0.131:80;
server_name unifi01.int.unixathome.org;
error_log /var/log/nginx-unifi01.int.unixathome.org.error.log info;
access_log /var/log/nginx-unifi01.int.unixathome.org.access.log combined;
@kevinfealey
kevinfealey / setup-msmtp-for-gmail.sh
Created December 14, 2017 20:36 — forked from JosefJezek/setup-msmtp-for-gmail.sh
Sending emails using Gmail and msmtp on Ubuntu / Debian
#!/bin/sh
# Sending emails using Gmail and msmtp
# Author: [Josef Jezek](http://about.me/josefjezek)
# Donate: [Gittip](https://www.gittip.com/josefjezek)
# Link: [Gist](https://gist.github.com/6194563)
# Usage: setup-msmtp-for-gmail.sh
sudo apt-get update -q
sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq
@gbaman
gbaman / graphql_example.py
Created November 1, 2017 00:18
An example on using the Github GraphQL API with Python 3
# An example to get the remaining rate limit using the Github GraphQL API.
import requests
headers = {"Authorization": "Bearer YOUR API KEY"}
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section.
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers)
if request.status_code == 200:
@vidia
vidia / nginx-unificontroller.conf
Last active October 22, 2025 05:33
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
@JosefJezek
JosefJezek / setup-msmtp-for-gmail.sh
Last active August 14, 2022 11:44
Sending emails using Gmail and msmtp on Ubuntu / Debian
#!/bin/sh
# Sending emails using Gmail and msmtp
# Author: [Josef Jezek](http://about.me/josefjezek)
# Donate: [Gittip](https://www.gittip.com/josefjezek)
# Link: [Gist](https://gist.github.com/6194563)
# Usage: setup-msmtp-for-gmail.sh
sudo apt-get update -q
sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq