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 <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main() { | |
// Allocate 16GB of memory | |
size_t size = 16UL * 1024 * 1024 * 1024; | |
char* memory = malloc(size); | |
// Access only some memory in the middle |
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
alias find_sources='find . -type f \( -name '\''*.md'\'' -o -name '\''*.toml'\'' -o -name '\''*.txt'\'' -o -name '\''*.py'\'' -o -name '\''*.rs'\'' -o -name '\''*.go'\'' -o -name '\''*.sol'\'' -o -name '\''*.css'\'' -o -name '\''*.js'\'' -o -name '\''*.yaml'\'' -o -name '\''*.json'\'' -o -name '\''*.c'\'' -o -name '\''*.cpp'\'' -o -name '\''*.cc'\'' -o -name '\''Makefile'\'' -o -name '\''*.sh'\'' \)' | |
head -n -0 `find_sources` |
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
pandoc -o Swiss_Letter_Template.{pdf,md} |
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
Maybe some inspiration (proptesting , not fuzzing, per say, still maybe helpful/inspiring): | |
Micro example of proptest for micro AST | as reading https://proptest-rs.github.io/proptest/proptest/tutorial/index.html "Proptest from the Bottom Up" | |
```rust | |
use std::fmt; | |
use proptest::prelude::*; | |
// Definition of Micro Language AST Grammar |
oxigraph ( https://github.com/oxigraph/oxigraph ) ! (also you may find related project interesting https://crates.io/crates/reasonable )
And btw. it looks like rdflib-endpoint (mentioned earlier) can via rdflib-endpoint --store Oxigraph ...
be configured to use oxigraph!
cargo install oxigraph_server
mkdir -p oxigraph_data
oxigraph_server --location oxigraph_data load -f example.ttl
I with a tool that would allow to give easy like "remotedesktop" access, but for terminal access, with :
- build in , review of each command to execute on client side
- review of outputs of commands being send
- option to allow to stream output of command without review
- automatic report generation in Markdown with proper codeblocks (generated on both sides)
- easy p2p connections behind nats like
croc
,toss/catch
, syncthing.
So basically I would love tool to help people troubleshoot linux issues, like [croc] or [toss] but two easily establish tcp-ip connection(s)
In case one wants to include backticks in code, need to surround with longer surrounding backticks: https://daringfireball.net/projects/markdown/syntax#code
Test code:
code
code
code
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
FROM alpine:latest | |
RUN apk add --no-cache curl xz | |
RUN addgroup -S nixbld && adduser -S -G nixbld nix | |
RUN mkdir -m 0755 /nix && chown nix /nix | |
USER nix | |
RUN curl -L https://nixos.org/nix/install | sh | |
ENV USER=nix | |
ENV PATH=/home/nix/.nix-profile/bin:$PATH |
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
# https://github.com/paul-gauthier/aider or when working on a patch on fork: | |
docker build --file docker/Dockerfile -t aider-image . | |
# to launch pytest: | |
docker run -it --volume $(pwd):/app --entrypoint /bin/bash aider-image -c "pip install pytest && pytest" |
NewerOlder