$ DST_HOST=nc_machine_addr
$ SDSIZE=`sudo blockdev --getsize64 /dev/mmcblk0`;sudo pv -tpreb /dev/mmcblk0 -s $SDSIZE | nc $DST_HOST 19000
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
id_thin = 9; | |
wall_thickness = 1.6; | |
octagon_outer_diam = 35.5; | |
octagon_outer_th = 6.5; | |
octagon_hub_diam = 17; | |
octagon_hub_th = octagon_outer_th/2; | |
octagon_hub_magnet_diam = 15; | |
octagon_hub_magnet_depth = octagon_hub_th-.6; | |
octagon_peg_diam = 3; | |
octagon_peg_length = octagon_outer_th/2; |
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 <iostream> | |
#include <string> | |
#include <memory> | |
#include <thread> | |
#include <filesystem> | |
#include <stdexcept> | |
#include <boost/asio.hpp> | |
#include <gsl/narrow> | |
namespace ip = boost::asio::ip; |
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
alias: "Notification: Clear Notification" | |
mode: queued | |
max: 10 | |
icon: mdi:bell-minus | |
fields: | |
tag: | |
name: Tag | |
description: A string identifying the message to clear/dismiss. | |
example: laundry_done_0F14AB | |
required: true |
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 <IRremote.h> | |
/* | |
Send infrared commands from the Arduino to the iRobot Roomba | |
by probono | |
2013-03-17 Initial release | |
Looking at a callstack that is making a COM call to another apartment, look for the SendReceive2
stack frame.
0:053> kb # ChildEBP RetAddr Args to Child 00 1532ed98 752e0ca9 00000002 1532ef44 00000001 ntdll!NtWaitForMultipleObjects+0xc 01 1532ef1c 756dc2a0 1532eef4 1532ef44 00000000 KERNELBASE!WaitForMultipleObjectsEx+0xdc 02 1532ef74 75bec1db 00000000 1532efcc 000003e8 user32!MsgWaitForMultipleObjectsEx+0x159 03 1532efac 75beb438 1532efcc 00000001 1532efd0 combase!CCliModalLoop::BlockFn+0x101 04 (Inline) -------- -------- -------- -------- combase!ModalLoop+0x50
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
#pragma once | |
#include <string> | |
#include <codecvt> | |
Platform::String^ to_PlatformString(const char* from) | |
{ | |
std::wstring_convert<std::codecvt<wchar_t, char, mbstate_t>> convert; | |
auto wide = convert.from_bytes(from); | |
return ref new Platform::String(wide.c_str(), static_cast<unsigned int>(wide.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 "transacted.h" | |
#include <iostream> | |
#include <stdexcept> | |
using namespace std; | |
int x = 1; | |
long y = 2; | |
float z = 3; | |
void doSomething() |
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
#pragma once | |
#include <string> | |
// Why can't MFC and ATL just get along? | |
#if defined(_AFX) || defined(_AFXDLL) | |
# include <cstringt.h> | |
#else | |
# include <atlstr.h> | |
#endif |
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
#pragma once | |
#include <iostream> | |
#include <deque> | |
#include <vector> | |
struct hrm_num { | |
static int validate(int n) | |
{ | |
if (n < -999 || n > 999) |
NewerOlder