This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
This file contains 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
package main | |
import ( | |
sl "github.com/cihub/seelog" | |
"os" | |
) | |
var config = `<seelog> | |
<outputs> | |
<smtp senderaddress="XXX@XXX.XXX" sendername="Notification service" hostname="smtp.XXX.XXX" hostport="587" username="XXX" password="XXX"> |
This file contains 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
// Tested on Windows 7 X86-64 with MinGW-w64 GCC. | |
... | |
#include <windows.h> | |
#include <locale.h> | |
#include <wchar.h> | |
... | |
// Make sure you have Lucida Console or Consolas font installed and choose it as the console font. | |
// Set the specified system locale to 'Russian_Russia.1251'. | |
setlocale(LC_ALL, "Russian"); |