Skip to content

Instantly share code, notes, and snippets.

@calebbrewer
calebbrewer / BROWSER_MEDIA_CENTER_PRIVACY_POLICY.md
Last active December 17, 2025 03:27
Privacy Policy for Browser Media Center

Privacy Policy for Browser Media Center

Last Updated: December 16, 2025

Overview

Browser Media Center is committed to protecting your privacy. This extension does not collect, transmit, store, or share any personal information or usage data.

Data Collection

We do not collect any data.

Privacy Policy for NoBadWords AI

Effective Date: December 24, 2025

Introduction

NoBadWords AI ("the Extension") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, and safeguard your information when you use our Chrome extension.

Information We Collect

#Headless Setup of Raspberry Pi Zero W (Raspberry Pi 3 Wireless) (macOS)

  1. Formatt the Micro SD card - Open a terminal and type 'diskutil list'. Find your card and copy the disk name (For example: /dev/disk4). Format the card with diskutil eraseDisk ExFat temp disk4(Use your disk here)
  2. Download Raspbian - wget https://downloads.raspberrypi.org/raspbian_lite_latest
  3. Unmount the SD card - diskutil unmountDisk /dev/disk4 or whatever your disk path is
  4. Mount the Raspbian image to the card - sudo dd if=PATH-TO-RASPBIAN-IMAGE of=/dev/disk4` or whatever your disk path is
  5. Enable SSH on the Pi - cd /volumes && ls. You should see a boot partition from the SD card cd boot && touch ssh
  6. Setup WiFi on the PI - While still in the boot partition of the card type nano wpa_supplicant.conf and enter network={ ssid="YOUR-SSID" psk="YOUR-WIFI-PASSWORD" }
  7. Boot the PI - Unmount the card diskutil unmountDisk /dev/disk4 (or whatever your disk path is) and put it in the

#Setting up Docker Machine on Raspberry PI

  1. SSH into the pi and install docker with curl -sSL https://get.docker.com | sh (If we let Machine try to install the Docker daemon it will fail.)
  2. Change the OS's ID so Docker Machine won't throw errors. sudo nano /etc/os-release and change the line that says ID=raspbian to ID=debian
  3. From a new terminal window run docker-machine create --driver generic --generic-ip-address YOUR-PIS-IP --generic-ssh-key ~/.ssh/id_rsa --generic-ssh-user pi --engine-storage-driver overlay2 MACHINE-NAME
@calebbrewer
calebbrewer / wkhtmltopdf-install.md
Last active August 5, 2024 02:36
How to Setup wkhtmltopdf on CentOS 7

How to Setup wkhtmltopdf on CentOS 7

Install Dependencies

yum install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo

Install wkhtmltopdf

@calebbrewer
calebbrewer / Stop SELinux from blocking apache external program execution.md
Last active October 10, 2019 09:29
Allow apache to execute an external program through SELinux.

Allow apache to execute an external program through SELinux

This is helpful when you don't want to disable SELinux but do want to allow apache to execute an external program. For example wkhtmltopdf. Run the following commands from the terminal. (This has been tested in CentOS 7.)

Allow Exicution

setsebool httpd_execmem on

Change a dirs security context if the program writes to a file

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@calebbrewer
calebbrewer / deletePendingComments
Created December 24, 2013 22:06
Deletes all pending comments WordPress from within MySQL
DELETE FROM wp_comments WHERE comment_approved = 0
You can check if SELinux is blocking sendmail by running:
/usr/sbin/getsebool httpd_can_sendmail
...which will report:
httpd_can_sendmail --> {on|off}
...and if it is off, you can turn it on using
@calebbrewer
calebbrewer / ifJesus
Created July 14, 2013 22:45
If the Gospel where written in PHP this would be the constructor function
<?php
if($believeInAdhereToAndRelyOnJesus == TRUE) {
//Run functions
loveGod();
loveOthersAsYourself();
makeDisciples();
}
else {
//Output a message and terminate the current script