Skip to content

Instantly share code, notes, and snippets.

<?php
echo "<h1>Hello LFI !</h1>
?>
@Mathiasb17
Mathiasb17 / .vimrc
Created March 7, 2019 15:26
useful sed mappings
vnoremap <leader>sed :s/\v//g
nnoremap <leader>sed :s/\v//g
@Mathiasb17
Mathiasb17 / NibblesSwap.cpp
Created February 15, 2019 09:39
This function swaps half bytes in one byte
/**
* @brief swap nibbles in one byte
*
* @param[in,out] io_value
*/
inline void NibblesSwap(std::uint8_t & io_value)
{
io_value = ((io_value & 0x0FU) << 4U) | ((io_value & 0xF0U) >> 4U);
}
#include <iostream>
#include <string>
#include <tinyxml.h>
#include <fstream>
#include <openvdb/openvdb.h>
#include <openvdb/tools/ParticlesToLevelSet.h>
#include <openvdb/Exceptions.h>
#include <openvdb/Types.h>
#include <openvdb/tree/LeafNode.h>
#include <openvdb/tools/Filter.h>