Skip to content

Instantly share code, notes, and snippets.

@pgehres
pgehres / gist:59a0764645cb2f2f411c
Created June 26, 2015 05:41
Route53 dynamics DNS
ZONE_ID = "<ZONE ID>"
DOMAIN_NAME = "host.name.com." # keep ending period
from boto.route53.connection import Route53Connection
from boto.route53.record import ResourceRecordSets
import requests
import sys
ip = requests.get("http://httpbin.org/ip").json()['origin']
This uses llm.datasette.io and OpenAI.
I use `git commit --template` to provide the output from the LLM to Git. This way, if you do not like the results, you
can quit your editor and no commit will be made.
# Shell function for generating a diff and editing it in your default editor:
gcllm() {
GIT_DIR="$(git rev-parse --git-dir)"
TEMPLATE="$GIT_DIR/COMMIT_EDITMSG_TEMPLATE"

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter: