Skip to content

Instantly share code, notes, and snippets.

View jhilker98's full-sized avatar
๐Ÿ”Ž
Currently looking for work.

Jacob Hilker jhilker98

๐Ÿ”Ž
Currently looking for work.
View GitHub Profile
@MeguminSama
MeguminSama / Discord Experiments.js
Last active June 28, 2026 11:56
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@mcanv
mcanv / index.html
Created December 1, 2020 20:16
Alpinejs - Get data from api
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AlpineJS - Get data from api</title>
</head>
<body>
<h1>AlpineJS - Get data from api</h1>
<div x-data="app()" x-init="init()">
@progfolio
progfolio / doct-org-roam.el
Created July 27, 2020 19:28
doct-org-roam.el
;;; doct-org-roam.el --- An org-roam extension for doct
;; Copyright (C) 2020 Nicholas Vollmer
;; Author: Nicholas Vollmer <progfolio@protonmail.com>
;; URL: https://github.com/progfolio/doct-org-roam
;; Created: July 27, 2020
;; Keywords: org, org-roam, convenience
;; Package-Requires: ((emacs "26.1"))
;; Version: 0.0.0
@ivellios
ivellios / dtrpg_convert.py
Last active August 13, 2026 17:36
Simple script to convert DriveThruRPG library data into CSV
import csv
import json
import sys
# This is simple converter for DriveThruRPG JSON data
# from library into CSV file, so you can manage your
# library
# How to use
# 1. Go to DriveThruRPG site and login
@michaelmhoffman
michaelmhoffman / config-ispell-hunspell-windows-workaround.el
Created June 10, 2020 02:15
Workaround for Emacs for unimplemented part of hunspell win32 listdicpath()
(require 'ispell)
(when (string-equal (getenv "LANG") "ENU")
(setenv "LANG" "en_US"))
;; XXX: hunspell doesn't work because Emacs wants to figure out where its
;; directories are, and for win32 hunspell 1.7.0, `hunspell -D` *never* runs listdicpath()
;; https://github.com/hunspell/hunspell/issues/669
;; to correct, copied this bit from ispell-find-hunspell-dictionaries and
@djfdyuruiry
djfdyuruiry / README.md
Last active June 22, 2026 19:34
WSL 2 - Enabling systemd

Enable systemd in WSL 2

NOTE: If you have Windows 11 there is now an official way to do this in WSL 2, use it if possible - see MS post here (WINDOWS 11 ONLY)

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

@syncom
syncom / mutt-with-gmail-gpg-macosx.md
Last active January 30, 2025 05:47
Configure Mutt to work with Gmail + GPG on MacOS X and Linux

Mutt (or NeoMutt) with Gmail and GPG, Mutiple Accounts

This note describes how to set up the Mutt or NeoMutt email client to work for Gmail and GnuPG, for two Gmail accounts. The method can be trivially extended to more than two accounts. The configuration should work for both macOS and Linux.

Software versions

@cmod
cmod / hugofastsearch.md
Last active July 26, 2026 18:43 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@BjornDCode
BjornDCode / gist:5cb836a6b23638d6d02f5cb6ed59a04a
Created February 3, 2020 11:58
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>
@jasonboukheir
jasonboukheir / git
Last active July 27, 2026 17:43
git when in unix, git.exe when in wsl
#!/bin/sh
if pwd | grep /mnt/c > /dev/null; then
exec git.exe "$@"
else
exec /usr/bin/git "$@"
fi