Skip to content

Instantly share code, notes, and snippets.

View dvx's full-sized avatar
🚀
Exploring the outer planets...

David Titarenco dvx

🚀
Exploring the outer planets...
View GitHub Profile
@ksose
ksose / ssdt.py
Created July 5, 2011 09:41
Detect SSDT hooks from user-mode in python
# k`sOSe - detect SSDT hooks
import ctypes
import struct
from ctypes.wintypes import *
from ctypes import windll
SYSCALLS = [
"NtAcceptConnectPort",
"NtAccessCheck",
@auselen
auselen / instructions.txt
Last active November 15, 2023 13:29
Trying to create a grammar for ARM Unified Assembler Language as specified in ARM Architecture Reference Manual, this is list of all instructions assembler syntaxes.
ADC{S}{<c>}{<q>} {<Rd>,} <Rn>, #<const>
ADC{S}{<c>}{<q>} {<Rd>,} <Rn>, <Rm> {, <shift>}
ADC{S}{<c>}{<q>} {<Rd>,} <Rn>, <Rm>, <type> <Rs>
ADD{<c>}{<q>} <Rd>, PC, #<const>
ADD{S}{<c>}{<q>} {<Rd>,} <Rn>, #<const>
ADD{S}{<c>}{<q>} {<Rd>,} <Rn>, <Rm> {, <shift>}
ADD{S}{<c>}{<q>} {<Rd>,} <Rn>, <Rm>, <type> <Rs>
ADD{S}{<c>}{<q>} {<Rd>,} SP, #<const>
ADD{S}{<c>}{<q>} {<Rd>,} SP, <Rm>{, <shift>}
ADDW{<c>}{<q>} {<Rd>,} <Rn>, #<const>
@ialhashim
ialhashim / voronoi.hpp
Last active November 24, 2022 04:36
Header-only C++ implementation to generate Voronoi diagrams (nice data structure)
// Source: https://github.com/samkusin/gamelabs/tree/master/voronoi
// with a bug fix (ennetws)
/* Usage:
using namespace cinekine;
...
voronoi::Sites sites;
for(int i = 0; i < 5; i++) sites.push_back(voronoi::Vertex(rand()*xBound/RAND_MAX,rand()*yBound/RAND_MAX));
...
voronoi::Graph graph = voronoi::build(std::move(sites), xBound, yBound);
...
@amimaro
amimaro / UnityHttpListener.cs
Last active August 9, 2024 11:41
Listen for Http Requests with Unity
using UnityEngine;
using UnityEngine.Networking;
using System;
using System.IO;
using System.Net;
using System.Threading;
public class UnityHttpListener : MonoBehaviour
{
@igoro00
igoro00 / Chakra-UI x React-datepicker.md
Last active September 20, 2024 18:56 — forked from baumandm/Chakra-UI x React-datepicker.md
Chakra-UI x React-datepicker

Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />

Clearable version:

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} isClearable={true} />
use kalosm::language::*;
#[tokio::main]
async fn main() {
let local_source = LlamaSource::new(
FileSource::Local("path/to/llama/model".into()),
FileSource::Local("path/to/llama/tokenizer.json".into()),
)
.with_group_query_attention(
// 1 for llama, 8 for mistral