Skip to content

Instantly share code, notes, and snippets.

View karliky's full-sized avatar
🏝️
***On map Dungeon***

Carlos Hernández Gómez karliky

🏝️
***On map Dungeon***
View GitHub Profile
@jaredcatkinson
jaredcatkinson / Get-InjectedThread.ps1
Last active April 24, 2025 15:06
Code from "Taking Hunting to the Next Level: Hunting in Memory" presentation at SANS Threat Hunting Summit 2017 by Jared Atkinson and Joe Desimone
function Get-InjectedThread
{
<#
.SYNOPSIS
Looks for threads that were created as a result of code injection.
.DESCRIPTION
Creature\SPELLS\ValentinesDummy2.blp
Creature\SPELLS\Ember_Offset.blp
Creature\SPELLS\Smoke_Puffy_Mask_VerySoft.blp
Creature\SPELLS\Cloud_PuffySofter_Gorgrond.blp
Creature\SPELLS\Cloud_Puffy_Mod.blp
Creature\BabySpiderTank\lightning_large_03.blp
Creature\BabySpiderTank\Smoke_Puffy_Mask.blp
Creature\BabySpiderTank\Cloud_Puffy_Mod.blp
Spells\Holidays\Heart04.blp
Spells\Holidays\Heart03.blp
@jrsa
jrsa / wotlk.cy.js
Last active May 26, 2023 07:44
snippets of cycript code for messing with wow's rendering (client version 3.3.5a / build 12340)
// here i am getting a pointer to the games camera, starting from
// s_currentWorldFrame which has a known address in the games memory.
// that static variable points to an instance of CGWorldFrame, which
// houses a lot of the rendering stuff, including the camera. the
// camera, among other things, has a variable for the field of view
// which is what ends up at *fovptr.
var s_currentWorldFrame = @encode(int*)(0xEEEA8C) // static pointer to active world frame
var m_camera = 32280; //offset of cgcamera pointer in worldframe object
var m_fov = 64; // offset of fov (field of view) value in cgcamera object (just a floating point number)
@javivelasco
javivelasco / reactive-2016.md
Last active January 10, 2023 19:45
Proposal for lightning talk at Reactive Conf 2016

Please star ⭐️ the gist to help! This is a proposal for a ⚡️ talk at Reactive Conference.

Styling Components in React Toolbox 2

I wrote react-toolbox and presented it almost a year ago in lighning talk at Reactive Conf 2015 in Bratislava. At first it was just a proof of concept of a component library styled with CSS Modules and SASS. Now the project has grown quite a bit, and during this year there has been tons of changes and lessons learned.

Theming and customization is one of the most difficult and interesting problems to solve. For the first version we needed a custom Webpack loader to generate themes and doing simple style overrides was very painful. Today I'm working on a new playground that will allow you try CSS Modules live, and to create React Toolbox themes on the f

@javivelasco
javivelasco / reactive-2015.md
Last active October 2, 2022 16:36
Proposal for lightning talk at Reactive Conf 2015

I’m amazed by React and how it’s bringing happiness to our developer lives. I specially like the workflow that integrates Webpack + React + CSS Modules + Babel among other tools and preprocessors. That’s why Javier Jiménez and I are working together in a library called React Toolbox that we would like to show in a lightning talk at Reactive Conference.

The main idea is to create a set of React components implementing Material Design guidelines. There are already some libraries that solve a similar problem but our project is mostly focused on the workflow and best practices to create a tool everybody would want to use. Also, we are sticking to the design guidelines proposed by Google and embracing minimalism by generating the minimum possible amount of HTML and styles to get the best result. Our workflow includes among others:

  • Webpack.
  • ES6 with Babel
  • Unit t
@lewisje
lewisje / OptimizationRevivers.js
Last active August 29, 2015 14:25
This gist encapsulates most uses of try/catch/finally blocks, a simple way to make functions from non-functions, and getting a reference to the global object, without triggering the optimization killers in V8: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#2-unsupported-syntax
// part of a pair of functions intended to isolate code that kills the optimizing compiler
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#2-unsupported-syntax
function functionize(func, arg) {
switch (typeof func) {
case 'string':
return arg ? new Function(String(arg), func) : new Function(func);
case 'function':
return func;
default:
return function () {return func;};
@ocornut
ocornut / (Archived) imgui_memory_editor.h
Last active August 28, 2024 05:01
Mini memory editor for dear imgui (to embed in your game/tools)
// Mini memory editor for Dear ImGui (to embed in your game/tools)
// Animated GIF: https://twitter.com/ocornut/status/894242704317530112
// THE MEMORY EDITOR CODE HAS MOVED TO GIT:
// https://github.com/ocornut/imgui_club/tree/master/imgui_memory_editor
// Click "Revisions" on the Gist to see old version.