Skip to content

Instantly share code, notes, and snippets.

View firestack's full-sized avatar

Kayla Firestack firestack

View GitHub Profile
@firestack
firestack / sqlite2pg.sh
Last active June 3, 2016 08:25 — forked from eclubb/sqlite2pg.sh
Script to import SQLite3 database into PostgreSQL
#!/bin/sh
# This script will migrate schema and data from a SQLite3 database to PostgreSQL.
# Schema translation based on http://stackoverflow.com/a/4581921/1303625.
# Some column types are not handled (e.g blobs).
export PGPASSWORD=""
PG_DB_NAME=$1
PG_USER_NAME=$2
@firestack
firestack / bcachefs-support.nix
Last active October 20, 2021 12:40 — forked from YellowOnion/bcachefs-support.nix
bcachefs support (needs fixing)
{ config, lib, pkgs, ... }:
with lib;
let
kernel = {
date = "2021-10-01";
commit = "4114ced1db46";
hash = "05rnr7d704cq60k4yfw070ph9z6zjkrl68c07rca9cwx6km34zqf";
version = "5.13";
};
@firestack
firestack / hendricks_formatter.ex
Created December 22, 2023 18:21 — forked from pmarreck/hendricks_formatter.ex
An Elixir formatting module for `mix format` that converts leading spaces to tabs.
defmodule HendricksFormatter do
@moduledoc """
This module is a formatter plugin for Elixir's `mix format` task
that converts leading whitespace to tabs.
It tries to intelligently determine the tab width based on the most common
counts of leading space runs in the file.
It allows additional space characters for minor adjustments that are below the tab width.
OK, why tabs? Why resurrect this age-old nerd debate again?
Very simple: It's an accessibility issue:
https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/
  1. Download and open HxD.
  2. Open the original engine.dll in HxD.
  3. Go to Search -> Replace -> Hex-values.
  4. Search for 8B F1 E8 40 CD 05 00 8B 7D 10 83 F8 02 0F 94 C3.
  5. Replace with 31 C0 E9 2D 01 00 00 90 90 90 90 90 90 90 90 90.
  6. Use File -> Save as... and save it as engine.dll.

Reference: patching sub_1013BF40 result to successfully return always fixes the constant "No Steam logon\n" error. Meant for Portal Reloaded.

Python usage: python3 patch.py engine.dll