Skip to content

Instantly share code, notes, and snippets.

@NeroBurner
NeroBurner / main.cpp
Last active August 13, 2019 13:36
rapidjson::Pointer not working in loop
// external libraries
#include "rapidjson/document.h"
#include "rapidjson/pointer.h"
// standard libraries
#include <iostream>
#include <string>
#include <vector>
void parse_json_int(rapidjson::Document &json, const std::string &pointer, int &target)
@NeroBurner
NeroBurner / startscript_warframe.sh
Last active January 5, 2018 06:22
start warframe with 32/64bit wine-bottle
#!/bin/bash
# exit on first error
set -e
function print_synopsis {
echo "$0 [options]"
echo ""
echo "options:"
echo " --winecfg start winecfg with the current wine bottle"
echo " --regedit start regedit with the current wine bottle"
@NeroBurner
NeroBurner / Toolchain-Ubuntu-mingw64.cmake
Created June 22, 2017 14:35
cmake toolchain file for mingw64 cross compilation
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64 g++-mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/Toolchain-Ubuntu-mingw64.cmake ..
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
==> default: Mounting shared folders...
INFO interface: detail: /vagrant => /home/gc/Downloads/Vagrant/win7_test
INFO interface: detail: default: /vagrant => /home/gc/Downloads/Vagrant/win7_test
default: /vagrant => /home/gc/Downloads/Vagrant/win7_test
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "dae74697-9457-489d-b155-f339d3997b4e", "--machinereadable"]
INFO subprocess: Command not in installer, restoring original environment...
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "dae74697-9457-489d-b155-f339d3997b4e", "--machinereadable"]
INFO subprocess: Command not in installer, restoring original environment...
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)