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
PS C:\Users\mk43e\source\repos\valkeymodule-rs> cargo build --all --all-targets --release | |
Compiling valkey-module-macros v0.1.2 (C:\Users\mk43e\source\repos\valkeymodule-rs\valkeymodule-rs-macros) | |
Compiling valkey-module v0.1.2 (C:\Users\mk43e\source\repos\valkeymodule-rs) | |
error: failed to run custom build command for `valkey-module v0.1.2 (C:\Users\mk43e\source\repos\valkeymodule-rs)` | |
Caused by: | |
process didn't exit successfully: `C:\Users\mk43e\source\repos\valkeymodule-rs\target\release\build\valkey-module-21875a74709ab370\build-script-build` (exit code: 1) | |
--- stdout | |
OUT_DIR = Some(C:\Users\mk43e\source\repos\valkeymodule-rs\target\release\build\valkey-module-7b2e5f666bacd931\out) | |
OPT_LEVEL = Some(3) |
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
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
export CMAKE_EXPORT_COMPILE_COMMANDS=ON | |
export CMAKE_GENERATOR=Ninja | |
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) | |
export CMAKE_C_COMPILER_LAUNCHER=sccache | |
export CMAKE_CXX_COMPILER_LAUNCHER=sccache | |
export CMAKE_BUILD_TYPE=RelWithDebInfo |
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
❯ g++ omg.cpp && ./a.out | |
S1: Mod | |
S2: ern C++ |
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 <optional> | |
#include <iostream> | |
auto foo(int x) | |
{ | |
if (x > 5) | |
return std::optional<int>{x}; | |
else | |
return std::nullopt; |
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
#!/usr/bin/env python | |
"""Aliases for argparse positional arguments.""" | |
import argparse | |
class AliasedSubParsersAction(argparse._SubParsersAction): | |
class _AliasedPseudoAction(argparse.Action): | |
def __init__(self, name, aliases, help): |
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
[ecko@work cpp]$ cat autohell.cpp | |
#include <iostream> | |
auto add(auto x, auto y) | |
{ | |
return x + y; | |
} | |
struct pt { | |
float _x, _y; |
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
ecko@victoria in ~ | |
1 λ ll develop/upstream/troglos/romfs/etc/passwd | |
-rw-rw-r-- 1 ecko ecko 160 Jan 29 15:34 develop/upstream/troglos/romfs/etc/passwd | |
ecko@victoria in ~ | |
λ rm develop/upstream/troglos/romfs/etc/passwd | |
rm: cannot remove 'develop/upstream/troglos/romfs/etc/passwd': Permission denied |
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
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09) | |
Subsystem: Lenovo 3rd Gen Core processor DRAM Controller [17aa:21fa] | |
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- | |
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx- | |
Latency: 0 | |
Capabilities: [e0] Vendor Specific Information: Len=0c <?> | |
Kernel driver in use: ivb_uncore | |
00: 86 80 54 01 06 00 90 20 09 00 00 06 00 00 00 00 | |
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
20: 00 00 00 00 00 00 00 00 00 00 00 00 aa 17 fa 21 |
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
CXXFLAGS = -Wall -Wextra $(shell pkg-config --cflags --libs dbus-1) -std=c++11 | |
TGT = dbus-has-owner | |
$(TGT): $(TGT).cpp | |
$(CXX) $(TGT).cpp $(CXXFLAGS) -o $(TGT) | |
clean: | |
rm -f $(TGT) |
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
#!/bin/sh -efux | |
die() { | |
printf "%s\n" "$*" | |
exit 1 | |
} | |
[ "$#" -ne 1 ] && die "Usage: $(basename ${0}) PATH" | |
[ $(id -u) -ne 0 ] && die "must be root" |
NewerOlder