Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@shmup
shmup / Search my gists.md
Created December 19, 2023 04:41 — forked from santisbon/Search my gists.md
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

Smith-Waite Tarot "Cheat Sheet"

I have no idea what I'm doing

Major Arcana

Number Card Things
The Fool New beginnings, spontaneity, free spirit
I The Magician Power, resourcefulness, high energy
@rain-1
rain-1 / LLM.md
Last active May 7, 2024 13:50
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@shmup
shmup / quicker_git_and_fugitive_on_wsl2.md
Last active August 25, 2022 21:31
Quick Git & Fugitive.vim for WSL2

Quick Git & Fugitive.vim for WSL2

Some things that may help you.

Keep in mind that my solution caters to both being in a /mnt/* path, and also being in my symlink path.

When you make a symbolic link, as in: ln -s /mnt/c/Users/bar $HOME/bar and cd into that, the $PWD will reflect that.

.bashrc improvement

@shmup
shmup / twitch_hexchat.md
Last active January 5, 2024 00:22
How to connect to Twitch with HexChat (SSL)

HEXCHAT / TWITCH

Here's a method to chat in a twitch #channel with HexChat

  1. Get HexChat here (or your package manager): https://hexchat.github.io/

  2. Click Add and name it Twitch or whatever.

  3. Now click Edit and change the server/port up top to: irc.chat.twitch.tv/6697

@shmup
shmup / twitch_irssi.md
Last active March 19, 2024 11:50 — forked from hunterbridges/twitch_irc.md
How to connect to Twitch with IRSSI (SSL)

IRSSI / TWITCH

Here's a method to chat in a twitch #channel with IRSSI

Get your oauth token here: https://twitchapps.com/tmi/

Server block

server = {
 address = "irc.chat.twitch.tv";
path = require 'path'
local function get_asset_comment(zip_path)
comment = GetAssetComment(zip_path)
if comment then
return comment
end
return ''
end
@pheix
pheix / Raku-Advent-2020.md
Last active February 28, 2023 20:22
Raku web templating engines: boost up the parsing performance 

Raku web templating engines: boost up the parsing performance

Modern Raku web templating engines

A templating engine basically provides tools for effective metadata interpolation inside static files (templates). At web application runtime, the engine parses and replaces variables with actual content values. Finally client gets a HTML page generated from the template, where all metadata (variables, statements, expressions) has been proceed.

Raku ecosystem has a few modern templating engines: Template::Mojo (last commit on 12 Jun 2017), Template::Mustache (last commit on 25 Jul 2020 — it's alive!), Template6 (last commit on 20 Nov 2020 - active maintenance), Template::Classic (last commit on 11 Apr 2020), [Template

@shmup
shmup / semantic-layout.html
Created October 29, 2020 00:09 — forked from thomd/semantic-layout.html
Standard HTML5 Semantic Layout
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Title</title>
<link href="stylesheets/main.css" rel="stylesheet" />
</head>
<body>
<header>
<hgroup>
@shmup
shmup / j2html.py
Created September 23, 2020 22:42
renders and prints a jinja2 template with optional json to STDOUT
#!/usr/bin/env python3
# http://ix.io/2ykn/py
# renders and prints a jinja2 template with optional json to STDOUT
# requires: python3, jinja2
# usage
# $ ./j2html /path/to/template
# $ ./j2html /path/to/template --json_data /path/to/json