Skip to content

Instantly share code, notes, and snippets.

View jasonrm's full-sized avatar

Jason R. McNeil jasonrm

  • Arizona
  • 17:17 (UTC -07:00)
View GitHub Profile
@jasonrm
jasonrm / 1450222629003989022.md
Created December 16, 2025 16:21
FFXIV and ACT with the same environment

via: valarnin -- https://discord.com/channels/551474815727304704/611368387678830616/1450222629003989022

You are not running FFXIV and ACT with the same environment.

  1. Close the game and any ACT instances you might have open. Ensure that no wine processes are running on your system by checking ps or some other process manager
  2. Restore the generated backups, then delete the backups
  3. Remove the ~/.local/share/ffxiv-tools directory
  4. Re-run setup.sh
  5. Make sure the paths displayed during setup actually make sense (e.g. not pointing at a .tar.gz file)
  6. Run ~/.local/share/ffxiv-tools/ffxiv-env.sh
@jasonrm
jasonrm / gist:f3becb64a8546db215f0a245ed035e59
Created October 14, 2024 18:16
osslsigncode: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file
## Issue
`osslsigncode: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file`
Worked on Ubuntu 22.04, fails on Ubuntu 24.04
```
Operating System
Ubuntu
24.04.1
@jasonrm
jasonrm / nomad-template.hcl
Created October 23, 2023 06:41
Nomad Template Block For Setting All Environment Variables From Nomad Variables
# Ref: https://developer.hashicorp.com/nomad/docs/job-specification/template#nomad-integration
# Ref: https://discuss.hashicorp.com/t/templates-how-to-access-tuple-key-value/53875
job "php" {
# ...
group "php" {
# ...
@jasonrm
jasonrm / md12xx-ses.patch
Last active July 2, 2024 08:59
Force Dell MD1200 / MD1220 enclosures as SES-enabled, e.g. /sys/class/enclosure/
From f9e8eaf3226009531b769635a6114f87da08291b Mon Sep 17 00:00:00 2001
From: "Jason R. McNeil" <jason@mcneil.dev>
Date: Wed, 12 May 2021 01:16:35 -0700
Subject: [PATCH] drivers/scsi/ses: Dell MD12XX enclosures support SES, despite
EncServ=0 as claimed by the device
---
drivers/scsi/ses.c | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
@jasonrm
jasonrm / flip.php
Created September 8, 2019 04:13
Filp a random bit in a string with PHP
<?php
function flip_random_bit(string $str)
{
$charIndex = random_int(0, strlen($str) - 1);
$bitIndex = random_int(0, 8);
$str[$charIndex] = chr(ord($str[$charIndex]) ^ 1 << $bitIndex);
return $str;
}
@jasonrm
jasonrm / default.nix
Last active August 18, 2019 00:42
shell.nix for running jupyter lab
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
python3.buildEnv.override {
ignoreCollisions = true;
extraLibs = with python3Packages; [
pip
ipykernel
jupyterlab
@jasonrm
jasonrm / grub.conf
Last active July 30, 2019 17:33
MacPro 1,1 boot 64-bit kernel from 32-bit UEFI
set default=0
set timeout=1
# insmod efi_uga
insmod all_video
insmod font
if loadfont ${prefix}/unicode.pf2
then
insmod gfxterm
@jasonrm
jasonrm / common.liquidsoap
Last active November 12, 2022 04:28
For use with trunk-recorder & liquidsoap
set("tag.encodings",["UTF-8","ISO-8859-1"])
# Configure Logging
set("log.file",false)
set("log.level",3)
set("log.stdout",true)
set("log.syslog",false)
set("log.syslog.facility","DAEMON")
set("log.syslog.program","liquidsoap-#{STREAMID}")
@jasonrm
jasonrm / gist:b409008ea69dc6b0f121161b87978333
Created January 25, 2019 22:14
Edgerouter traffic-control advanced-queue
set traffic-control advanced-queue queue-type hfq HFQ_UP_LAN host-identifier sip
set traffic-control advanced-queue queue-type hfq HFQ_UP_LAN max-rate 3mbit
set traffic-control advanced-queue queue-type hfq HFQ_UP_LAN subnet 10.76.32.0/24
set traffic-control advanced-queue queue-type hfq HFQ_UP_WIFI host-identifier sip
set traffic-control advanced-queue queue-type hfq HFQ_UP_WIFI max-rate 3mbit
set traffic-control advanced-queue queue-type hfq HFQ_UP_WIFI subnet 10.76.33.0/24
set traffic-control advanced-queue queue-type hfq HFQ_DOWN_LAN host-identifier dip
set traffic-control advanced-queue queue-type hfq HFQ_DOWN_LAN max-rate 3mbit
set traffic-control advanced-queue queue-type hfq HFQ_DOWN_LAN subnet 10.76.32.0/24