multipass launch 22.04 -n primary -c 4 -m 4G -d 25G
multipass shell
I hereby claim:
- I am yisonpylkita on github.
- I am yisonpylkita (https://keybase.io/yisonpylkita) on keybase.
- I have a public key ASCGeN39Zuj42tsxsDlHyG2XM1n4LUGiG4huqLyfiW9Omgo
To claim this, I am signing this object:
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
#pragma once | |
#include <cstdint> | |
#if !defined(__ORDER_LITTLE_ENDIAN__) | |
#error "Only little endian systems are supported" | |
#endif | |
// All of these functions are constexpr (c++11 compatibile and above) | |
// Generated code - https://godbolt.org/z/Tz7Wvg | |
namespace byte_converter { |
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
/// @file on_scope_leave.hpp | |
/// @brief Sane way to handle C-style cleanups in C++ | |
/// @author Wojciech Bartnik <yisonPylkita@gmail.com | |
/// | |
/// Lets assume you have C-style function `int open_port(const char *port_name)` | |
/// and this function returns a file descriptor to opened device port. | |
/// Normally you would need to write code like this | |
/// | |
/// int port_fd = open_port("/dev/ttyUSB0"); | |
/// try { |
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
import sys | |
import time | |
import win32api | |
if (len(sys.argv) < 4): | |
print "Usage: python mousemove.py dx dy speed" | |
sys.exit() | |
current = win32api.GetCursorPos() | |
cx = sx = current[0] |