Skip to content

Instantly share code, notes, and snippets.

View Paxxi's full-sized avatar

Pär Björklund Paxxi

View GitHub Profile
@Paxxi
Paxxi / gist:4f78755d9fa0cf0300fb22ffb9114d70
Created December 28, 2017 17:33
test output from boost and gtest
[2017-12-28 14:08:07 Informational] ------ Discover test started ------
[2017-12-28 14:08:09 Informational] Logger initialized. Logging to C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\5RESBQJP.LGW\BoostTestAdapter.dll.log
[2017-12-28 14:08:09 Informational] ========== Discover test finished: 788 found (0:00:01,3676471) ==========
[2017-12-28 14:08:09 Informational] ------ Run test started ------
[2017-12-28 14:08:13 Informational] ========== Run test finished: 1 run (0:00:04,5544825) ==========
[2017-12-28 14:11:15 Informational] ------ Discover test started ------
[2017-12-28 14:11:30 Informational] Test Adapter for Google Test: Test discovery starting...
[2017-12-28 14:11:30 Informational] Test discovery completed, overall duration: 00:00:00.0678798
[2017-12-28 14:11:30 Informational] Logger initialized. Logging to C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\5RESBQJP.LGW\BoostTestAdapter.dll.log
[2017-12-28 14:11:30 Warni
#include <StringConstants.au3>
Func recordF10()
$keys = StringSplit("b r e a k P o i n t ( ) {ENTER}", " ", $STR_NOCOUNT)
For $el In $keys
Send($el)
Sleep(50)
Next
For $el In StringSplit("{F10} {F10} {F10}", " ", $STR_NOCOUNT)
.method assembly hidebysig static void
Parse(valuetype [System.Runtime]System.ReadOnlySpan`1<char> address,
uint16* numbers,
int32 start,
string& scopeId) cil managed
{
// Code size 852 (0x354)
.maxstack 5
.locals init ([0] int32 number,
[1] int32 index,
### Keybase proof
I hereby claim:
* I am paxxi on github.
* I am paxxi (https://keybase.io/paxxi) on keybase.
* I have a public key ASCZusKW5JT-Fr-oXSk8YGTf8wHYxZRhO7v1RdAs8rE8jQo
To claim this, I am signing this object:
Env: Ubuntu 16.04
Docker: 17.03, 3 manager nodes running in swarm mode and one worker node
drain manager 1
update machine with apt-get update and reboot
node visible in swarm, things look ok
try to set availability to availible, get error "message":"rpc error: code = 2 desc = update out of sequence" no matter which node it's run on
revert back to 17.03 and reboot machine
update availability to available => success
Running 30s test @ http://192.168.0.82:8000
8 threads and 32 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 5.39ms 6.39ms 68.40ms 90.05%
Req/Sec 32.27k 4.72k 93.77k 70.39%
Latency Distribution
50% 4.31ms
75% 6.79ms
90% 11.74ms
99% 0.00us
Not Flagged 3360 0 Main Thread Main Thread Kodi.exe!XbmcThreads::ConditionVariable::wait Normal
ntdll.dll!_NtWaitForAlertByThreadId@8()
ntdll.dll!_RtlSleepConditionVariableCS@12()
KernelBase.dll!_SleepConditionVariableCS@12()
Kodi.exe!XbmcThreads::ConditionVariable::wait(CCriticalSection & lock, unsigned long milliseconds) Line 64
Kodi.exe!XbmcThreads::TightConditionVariable<bool volatile &>::wait<CCriticalSection>(CCriticalSection & lock, unsigned long milliseconds) Line 65
Kodi.exe!CEvent::WaitMSec(unsigned int milliSeconds) Line 86
Kodi.exe!CThread::WaitForThreadExit(unsigned int milliseconds) Line 151
Kodi.exe!CThread::StopThread(bool bWait) Line 169
Kodi.exe!CDVDPlayer::CloseFile(bool reopen) Line 680
char CURL::GetDirectorySeparator() const
{
#ifndef TARGET_POSIX
if ( m_strProtocol.empty() )
return '\\';
else
#endif
return '/';
}
@Paxxi
Paxxi / actlog
Created March 19, 2015 12:02
activitylog
class CActivityLogManager
{
public:
static CActivityLog& GetInstance()
{
static CActivityLogManager s_instance;
return s_instance.GetActivityLog();
}
private:
CActivityLog& GetActivityLog()
@Paxxi
Paxxi / capitalize
Created March 15, 2015 12:40
capitalize
refstr = " JuST Another\t\tTEst:\nWoRKs(Test 1 First) ";
varstr = " juST another\t\ttEst:\nwoRKs(test 1 first) ";
StringUtils::ToCapitalize(varstr);
EXPECT_STREQ(refstr.c_str(), varstr.c_str());
refstr = " JuST Another\t\tTEst:\nWoRKs\"Test 1 First\" ";
varstr = " juST another\t\ttEst:\nwoRKs\"test 1 first\" ";
StringUtils::ToCapitalize(varstr);
EXPECT_STREQ(refstr.c_str(), varstr.c_str());