Skip to content

Instantly share code, notes, and snippets.

View nancyjlau's full-sized avatar
🍵
hi

Rose nancyjlau

🍵
hi
  • San Francisco
View GitHub Profile
<html>
<head>
<meta http-equiv="refresh" content="0;url=http://localhost:3000/admin" />
</head>
<body>
Glory to Arstotzka!
</body>
</html>
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
import gradio as gr
import torch
from entropix.config import LLAMA_1B_PARAMS
from entropix.tokenizer import Tokenizer
from entropix.torch_kvcache import KVCache
from entropix.torch_model import xfmr
from entropix.torch_weights import XfmrWeights, LayerWeights, load_weights
from entropix.torch_sampler import sample, calculate_metrics
from entropix.prompts import prompt, bp1
@nancyjlau
nancyjlau / normcore-llm.md
Created February 12, 2024 00:20 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@nancyjlau
nancyjlau / SharePwn_public.py
Created December 17, 2023 06:52 — forked from testanull/SharePwn_public.py
SharePoint Pre-Auth Code Injection RCE chain CVE-2023-29357 & CVE-2023-24955 PoC
# -*- coding: utf-8 -*-
import hashlib
import base64
import requests, string, struct, uuid, random, re
import sys
from collections import OrderedDict
from sys import version
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
# too lazy to deal with string <-> bytes confusion in python3 so forget it ¯\_(ツ)_/¯
@nancyjlau
nancyjlau / gist:dad6d213395f003d0621291c246f8537
Last active October 18, 2023 18:28
PointInTimeOperationTest.java test output for the listAllPits_positive test
/Users/rose/projects/opensearchsecurity〉./gradlew integrationTest --tests org.opensearch.security.PointInTimeOperationTest.listAllPits_positive
=======================================
OpenSearch Build Hamster says Hello!
Gradle Version : 8.3
OS Info : Mac OS X 13.4.1 (aarch64)
JDK Version : 21 (Homebrew JDK)
JAVA_HOME : /opt/homebrew/Cellar/openjdk/21/libexec/openjdk.jdk/Contents/Home
Random Testing Seed : ED30F527C48B9043
In FIPS 140 mode : false
=======================================