Skip to content

Instantly share code, notes, and snippets.

"-map", "0:a", "-c:a", "copy",
View gist:fe8e2470915efc73172c16fac9400c8e
cd %USERPROFILE%\Desktop\ViVeTool-v0.3.3
ViVeTool.exe /query /id:36354489,37634385,39145991
vivetool /fullreset
vivetool /disable /id:40729001,37634385
Trass3r /
Created August 1, 2023 16:44
setup Docker in WSL2
sudo apt update
sudo apt install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] \
Trass3r / boost_stacktrace.cpp
Created May 22, 2023 17:56
boost stacktrace enabler
View boost_stacktrace.cpp
#include <boost/stacktrace.hpp>
#include <signal.h> // ::signal, ::raise
void my_signal_handler(int signum)
::signal(signum, SIG_DFL);
// boost::stacktrace::safe_dump_to("./backtrace.dump");
std::cout << boost::stacktrace::stacktrace();
ldmd2 -i -O -release -inline -L--gc-sections -Xcc=-static-libgcc dustmite.d -v
docker run --rm -it -v `pwd`:/workspace/ ubuntu:rolling
sudo chown 1000:1000 dustmite
View beveledCubeTest.js
var createScene = function() {
var scene = new BABYLON.Scene(engine);
var camera = new BABYLON.ArcRotateCamera("Camera", - Math.PI / 2, Math.PI / 4, 10, BABYLON.Vector3.Zero(), scene);
camera.attachControl(canvas, true);
var light1 = new BABYLON.DirectionalLight("DirectionalLight", new BABYLON.Vector3(0, -1, 1), scene);
var light2 = new BABYLON.HemisphericLight("HemiLight", new BABYLON.Vector3(0, 1, 0), scene);
light1.intensity =0.75;
light2.intensity =0.5;
Trass3r / test.wpaProfile
Last active February 7, 2023 13:23
WPA profile for exporting template instantiation statistics via `wpaexporter build.etl -profile test.wpaProfile -delimiter "\t"`
View test.wpaProfile
<?xml version="1.0" encoding="utf-8"?>
<WpaProfileContainer xmlns:xsi="" xmlns:xsd="" Version="2" xmlns="">
<Content xsi:type="WpaProfile2">
<Session Index="0">
<FileReferences />
<View Guid="ab3305f1-304e-4545-9f85-0b7488072055" IsVisible="true" Title="Analysis">
Trass3r / base.json
Created November 9, 2022 16:15
magic enum base benchmark
View base.json
"traceEvents": [
"pid": 8058,
"tid": 8058,
"ph": "X",
"ts": 3546,
"dur": 108,
"name": "Source",
"args": {
View test-cpp17.json
This file has been truncated, but you can view the full file.
"traceEvents": [
"pid": 24148,
"tid": 24148,
"ph": "X",
"ts": 6808,
"dur": 102,
"name": "Source",
"args": {
export PATH="/c/Program Files/LLVM/bin":$PATH
find include/llvm/IR -name '*.h' | xargs clang-query -p objdir
clang-query -p objdir include\llvm\IR\Value.h include\llvm\IR\Use.h include\llvm\Analysis\CallGraph.h
clang-query -p objdir include\llvm\ADT\SmallVector.h
clang-query -p objdir include\llvm\Support\Allocator.h
m cxxRecordDecl(hasDefinition().bind("d"), hasExternalFormalLinkage(), unless(anyOf(isExpansionInSystemHeader(), isExplicitTemplateSpecialization(), hasParent(classTemplateDecl()), hasParent(classTemplateSpecializationDecl()))))