Skip to content

Instantly share code, notes, and snippets.

/merror off
/action "Ruin III" <t>
/action "Ruin II" <t>
/action "Ruin" <t>
/merror on
@alexcpendleton
alexcpendleton / gist:2e98ed73b5a021e527a1fed3df79c4a9
Created July 11, 2019 05:10
Is Brynhildr accepting new characters?
// ==UserScript==
// @name FFXIV World Status Refresh
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://na.finalfantasyxiv.com/lodestone/worldstatus/
// @grant none
// ==/UserScript==
@alexcpendleton
alexcpendleton / index.md
Created September 25, 2018 04:15
electron forge - asked for js but it was not precompiled!

I was getting the following error using electron forge, on a Mac, only when the app was packaged, but not when using yarn start.

asked for js but it was not precompiled!

None of the search results I found seemed relevant to my issue, it was mostly through using require() and on html/css files. Mine, however, was a JavaScript module.

Check the casing on your imports, make sure it matches the file's casing.

I was using a capitalized path, but the file was lowercase (rendererThreadSignaler.js).

@alexcpendleton
alexcpendleton / index.js
Last active August 24, 2018 17:31
Tampermonkey script to Hide Facebook Watch Panel
// ==UserScript==
// @name Hide Facebook Watch Panel
// @namespace http://alexanderpendleton.com
// @version 1.0
// @description Hide the Facebook Watch Panel because it's full of garbage
// @author You
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
@alexcpendleton
alexcpendleton / gist:330abff921238ed48538aa133c98ec4a
Created August 7, 2018 22:26
Indie Alternatives to Google - Pieter Levels (@levelsio)
https://twitter.com/levelsio/status/929346612584964096?lang=en
Indie alternatives to Google:
🔍 Search -> http://DuckDuckGo.com
📊 Analytics -> http://Amplitude.com
✈️ Flights -> http://Kiwi.com
💌 Mail -> http://FastMail.com
🎈 AdSense -> http://BuySellAds.com
🏢 Storage -> http://BackBlaze.com
@alexcpendleton
alexcpendleton / NsfwNsfw-LessonsLearned.md
Created December 13, 2017 15:49
NsfwNsfw-LessonsLearned.md

Lessons learned:

  • Avoid transferring domains
  • it's easier to have your backend and front end on the same provider, which is stupid, but whatevs
  • S3 static websites are okay, but you really need to use Cloudfront to make it really useful
  • I probably would have gone all Google & Firebase if I were to start over
  • The DynamoDB boilerplate I used was all right
  • I used Serverless, seems like they have some Google support too. Not sure about the boilerplates https://serverless.com/framework/docs/providers/google/
  • Also, the CI stuff you can integrate with Github is pretty handy, if you're into that
@alexcpendleton
alexcpendleton / description.md
Created September 20, 2017 02:32
Unexpected token < - React - Firebase Serve - Single Page App

I was getting this error on all assets when doing firebase serve (or hosted remotely) despite it working with yarn start. The asset URIs were being prefixed with /pondryhills.com/ which didn't exist, and was also my Github repo name.

Pay attention to the homepage node in your package.json. If you changed this then CRA will use it to infer your build directory. I changed the value from github.com/alexcpendleton/pondryhills.com to `` (empty) and everything was working properly, since CRA just started serving out of my root.

Hope this helps.

@alexcpendleton
alexcpendleton / AVSpeechSynthesizerUttererTests.swift
Created June 28, 2016 01:35
Unit Testing AVSpeechSynthesizer in iOS
/*
Short version: Use `waitForExpectationsWithTimeout` so your methods get called.
Long version: I was trying to unit test some code that used the `AVSpeechSynthesizer` class and its delegate property. The unit test would never pass because the delegate methods were never called. I thought it'd be impossible, maybe because the sound libraries didn't get loaded property. I couldn't find anything directly relating to this topic, but eventually stumbled on the `XCTestExpectation` APIs. These essentially say "wait a few seconds before doing your asserts".
http://nshipster.com/xctestcase/#xctestexpectation
*/
import Foundation
import AVFoundation
import XCTest
@alexcpendleton
alexcpendleton / Fix Spotify.bat
Created August 24, 2015 18:01
Removes the localappdata Spotify folder so it will actually open
rmdir /S /Q "%localappdata%\Spotify"
@alexcpendleton
alexcpendleton / Jquery free
Last active August 29, 2015 14:14
Quick and dirty "Past Broadcasts" link on a twitch channel
var channelNode = document.querySelector("#channel .channel");
var profileLink = document.querySelector("#channel .profile-link");
if(channelNode && profileLink) {
var myNode = document.createElement("span");
myNode.class = "tpbs-container";
var dash = document.createElement("span");
dash.class = "tbps-dash";
dash.innerHTML = " &mdash; ";
var anchor = document.createElement("a");
anchor.class = "tbps-anchor";