- Everything
- Notepad++
- 7-Zip
- Dropbox
- Backblaze
- Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Several dependencies to external code, won't compile out of the box. | |
#include <algorithm> | |
#include <cassert> | |
#include <cstdint> | |
#include <cstddef> | |
void contaminate_cpu_caches() | |
{ | |
const std::size_t l3_cache_size = System::get_l3_cache_size(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cassert> | |
#include <Windows.h> | |
int main() | |
{ | |
_set_error_mode(_OUT_TO_STDERR); | |
assert(false); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); | |
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); | |
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); | |
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE); | |
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR); | |
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE); | |
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <initializer_list> | |
#include <iostream> | |
#include <string> | |
#include <utility> | |
struct S | |
{ | |
std::string m_s; | |
S(const char* s) : m_s(s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" internalLogLevel="Info" internalLogFile="logs/InMagCrawlerNLog.log"> | |
<targets> | |
<target name="console" xsi:type="ColoredConsole" layout="${longdate:universalTime=True}Z | ${pad:padding=4:inner=${threadid}} | ${pad:padding=5:inner=${level:uppercase=true}} | ${message}${onexception:${newline}${exception:format=tostring}}"> | |
<highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" /> | |
<highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" /> | |
<highlight-row condition="level == LogLevel.Warn" foregroundColor="Magenta" /> | |
<highlight-row condition="level == LogLevel.Error" foregroundColor="Red" /> | |
<highlight-row condition="level == LogLevel.Fatal" foregroundColor="White" backgroundColor="Red" /> | |
</target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true" internalLogLevel="Info" internalLogFile="logs/InMagCrawlerNLog.log"> | |
<targets> | |
<variable name="messageLayout" value="${longdate:universalTime=True}Z | ${pad:padding=4:inner=${threadid}} | ${pad:padding=5:inner=${level:uppercase=true}} | ${message}${onexception:${newline}${exception:format=tostring}}"/> | |
<target name="console" xsi:type="ColoredConsole" layout="${messageLayout}"> | |
<highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" /> | |
<highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" /> | |
<highlight-row condition="level == LogLevel.Warn" foregroundColor="Magenta" /> | |
<highlight-row condition="level == LogLevel.Error" foregroundColor="Red" /> |