Skip to content

Instantly share code, notes, and snippets.

@ctfhacker
ctfhacker / LLM.md
Created April 19, 2023 14:17 — forked from rain-1/LLM.md
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.

@ctfhacker
ctfhacker / example.rs
Created February 21, 2020 13:37
Small lock for barbervisor
/// Example use of small atomic lock used in barbervisor
///
/// In this case, there are several cores using this same global
/// function and I needed to avoid a race condition
use core::sync::atmoic::{AtomicBool, Ordering};
// Init the lock to no one having taken it
const LOCK: AtomicBool = AtomicBool::new(false);
/// This function is globally available for all cores to call
(ins)$ cat src/main.rs
#![feature(test)]
extern crate test;
#[cfg(test)]
mod tests {
use test::Bencher;
const TEST1: &str = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<";
(ins)$ cat src/main.rs
#![feature(test)]
extern crate test;
fn main() {
println!("Hello, world!");
}
#[cfg(test)]
mod tests {
[0x08048460]> iz~give me a size
vaddr=0x08048bbb paddr=0x00000bbb ordinal=001 sz=23 len=22 section=.rodata type=a string=Please give me a size.
[0x08048460]> axt 0x8048bbb
[0x08048460]> axt 0x08048bbb
[0x08048460]> ax
types=code.jmp,code.call,data.mem,data.string
import subprocess
import md5
import socket
import requests
start = '20150405'
url = 'http://{}.malwarehosting.com'
for append_num in xrange(16):