Skip to content

Instantly share code, notes, and snippets.

View masonjames's full-sized avatar

Mason James masonjames

View GitHub Profile
@masonjames
masonjames / unslopify.md
Last active April 20, 2026 10:53
unslopify workflwow for repoprompt
id DE38DEE7-10BB-43D4-B74F-CF47E30CE946
name Unslopify
icon wand.and.stars
tooltip Deep cleanup audit with safe implementation
description Audit and clean code slop across focused lanes: dead code, weak types, cycles, error hiding, legacy paths, bad comments, and obvious duplication.

Unslopify Mode

@masonjames
masonjames / backlinks.sh
Created April 19, 2026 11:48 — forked from retlehs/backlinks.sh
Backlinks for any domain via Common Crawl
#!/usr/bin/env bash
# Unified EA Plugins - Local CI Test Runner
# Runs consistent checks across any EA plugin repository.
# Usage: bash ./run-tests.sh [--fix] [--skip-js] [--skip-php] [--skip-security]
# Exit codes: 0 = all pass (or skipped), 1 = one or more failures.
set -Eeuo pipefail
# ------------ Colors ------------
RED='\033[0;31m'
import os
from pathlib import Path
import logging
import argparse
from concurrent.futures import ThreadPoolExecutor, as_completed
import pathspec
from collections import defaultdict
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@masonjames
masonjames / GPT4all-langchain-demo.ipynb
Created April 7, 2023 22:13 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php get_header(); ?>
<div id="sliderinfo">
<div id="newsslides">
<?php $news = new WP_Query('post_type=news&showposts=3'); ?>
<?php if($news->have_posts()) : ?><?php while($news->have_posts()) : $news->the_post(); ?>
<div class="newsitem">
<?php the_excerpt(); ?>
<a class="details" href="<?php the_permalink(); ?>"></a>
</div>
@masonjames
masonjames / 0_reuse_code.js
Created December 11, 2015 18:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@masonjames
masonjames / node-images build error
Created September 7, 2015 00:13
node-images build error
CC(target) Release/obj.target/libpng/gyp/third-party/libpng/pngwutil.o
AR(target) Release/obj.target/gyp/gyp/png.a
COPY Release/png.a
CC(target) Release/obj.target/libjpeg-turbo/gyp/third-party/libjpeg-turbo/bmp.o
In file included from ../gyp/third-party/libjpeg-turbo/cdjpeg.h:16:0,
from ../gyp/third-party/libjpeg-turbo/bmp.c:33:
../gyp/third-party/libjpeg-turbo/jinclude.h:22:65: fatal error: jconfig.h: No such file or directory
compilation terminated.
gyp/gyp/libjpeg-turbo.target.mk:161: recipe for target 'Release/obj.target/libjpeg-turbo/gyp/third-party/libjpeg-turbo/bmp.o' failed
make: *** [Release/obj.target/libjpeg-turbo/gyp/third-party/libjpeg-turbo/bmp.o] Error 1
Web: /Movies/MoviePrePlay.xml
error: uncaughtException: Can't load the addon. Issue to: https://github.com/PopcornTV/node-images/issues Error: Cannot find module './bindings/linux/arm/0.9.11/binding.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/pi/PopcornTV/node_modules/ptv-images/binding.js:52:34)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
@masonjames
masonjames / gist:1cbcb44d38f67076cef6
Created July 11, 2015 04:35
Start to finish mp4 conversion test
2015-07-11T04:34:00.570Z - notice: Started logger in Debug mode!
2015-07-11T04:34:00.583Z - notice: Starting PopcornTV
2015-07-11T04:34:00.585Z - DNS: DnsProxy binding on 10.0.1.28:53
2015-07-11T04:34:01.733Z - Web: listening on 10.0.1.28:80
2015-07-11T04:34:01.739Z - Web: SSL Web: listening on 10.0.1.28:443
2015-07-11T04:34:13.795Z - Debug: trailers.apple.com change to 10.0.1.28
2015-07-11T04:34:13.828Z - Debug: Query: {}
2015-07-11T04:34:13.829Z - Web: templates/TVNav.xml
2015-07-11T04:34:13.927Z - Debug: Query: {}
2015-07-11T04:34:13.928Z - Web: /js/utils.js