Skip to content

Instantly share code, notes, and snippets.

View boogah's full-sized avatar
😶‍🌫️

Jason Cosper boogah

😶‍🌫️
View GitHub Profile
@boogah
boogah / article.md
Created February 27, 2024 20:14
Tumblr and Wordpress to Sell Users’ Data to Train AI Tools
@boogah
boogah / hushup.output.txt
Created December 21, 2023 01:57
Output from a python script (hushup.py) that I'm working on
$ python3 hushup.py
+------------------------------+-------+--------+-------+
| User | Toots | Boosts | Total |
+------------------------------+-------+--------+-------+
| halcy@icosahedron.website | 10 | 20 | 30 |
| liaizon@wake.st | 11 | 11 | 22 |
| boogah@simian.rodeo | 10 | 9 | 19 |
| skinnylatte@hachyderm.io | 6 | 10 | 16 |
| neauoire@merveilles.town | 12 | 4 | 16 |
| bnys@lasersword.club | 1 | 13 | 14 |
<?php
/**
* Auto-Update Enabler
*
* Decisions, not options. Inspired by Trac ticket #58389 by
* Jos Velasco and an offhanded comment on the fedi by Andy
* Fragen.
*
* @package Auto-Update Enabler
* @author Jason Cosper <boogah@gmail.com>
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by NetNewsWire -->
<opml version="1.1">
<head>
<title>Subscriptions-Miniflux.opml</title>
</head>
<body>
<outline text="All" title="All">
<outline text="A List Apart" title="A List Apart" description="" type="rss" version="RSS" htmlUrl="https://alistapart.com/" xmlUrl="https://alistapart.com/main/feed/"/>
<outline text="A Whole Lotta Nothing" title="A Whole Lotta Nothing" description="" type="rss" version="RSS" htmlUrl="https://a.wholelottanothing.org/" xmlUrl="https://a.wholelottanothing.org/feed/"/>
@boogah
boogah / mastodon-dm-custom-css-dark.css
Created November 21, 2022 19:31
Make your Mastodon direct messages stand out. Taken from https://waferbaby.com/@d/109380422160162695
.status.status-direct {
background-color: #252525 !important;
padding: 40px;
}
@boogah
boogah / wp_comments_comment_content_fix.sql
Last active September 28, 2021 21:14
Import these SQL files when you see weird crud in your posts/comments/etc. after migrating your WordPress install or upgrading MySQL on your server. *Note:* You may need to do a find/replace on the prefix in each `.sql` file if your WordPress install is not set to use the usual default of `wp_`.
update wp_comments set comment_content = replace(comment_content, 'α', 'α');
update wp_comments set comment_content = replace(comment_content, 'β', 'β');
update wp_comments set comment_content = replace(comment_content, 'γ', 'γ');
update wp_comments set comment_content = replace(comment_content, 'δ', 'δ');
update wp_comments set comment_content = replace(comment_content, 'ε', 'ε');
update wp_comments set comment_content = replace(comment_content, 'ζ', 'ζ');
update wp_comments set comment_content = replace(comment_content, 'η', 'η');
update wp_comments set comment_content = replace(comment_content, 'θ', 'θ');
update wp_comments set comment_content = replace(comment_content, 'ι', 'ι');
update wp_comments set comment_content = replace(comment_content, 'κ', 'κ');
# These instructions cover how to install Laravel Valet (including its requirements) on macOS and prep it for WordPress development.
# Install Xcode Command Line Tools
xcode-select --install
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Update Homebrew Package Index
brew update
# Confirm Homebrew is Installed Correctly

Installing h2load on Your Dev Machine

Included are the steps for macOS and Ubuntu/Debian. I didn't do Windows because I don't have or use Windows. 😕

@boogah
boogah / biscotti.php
Created October 18, 2016 16:42
Biscotti bakes your WordPress logged in user cookie for an extended period of time.
<?php
/**
* Biscotti
*
* Biscotti is a plugin that changes the expiration of the logged in user
* cookie in WordPress to one year. Because some people hate entering
* their passwords.
*
* @link https://gist.github.com/boogah/29c0dbe7316f45934c2d488463e20106
* @package Biscotti