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
use prelude::{Service, Box}; | |
pub struct State; | |
impl State { | |
pub fn new() -> Box<dyn Service> { | |
Box::new(Self) | |
} | |
} | |
impl Service for State { |
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
[package] | |
name = "pxlf-client" | |
version = "0.1.0" | |
authors = ["Erik Zscheile <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
fastrand = "1.4" | |
crossbeam-channel = "0.5" |
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
#!/usr/bin/python3 | |
import filecmp | |
import hashlib | |
import os | |
import shutil | |
import sys | |
args = sys.argv[1:] |
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
#!/bin/bash | |
export RUST_LOG=debug | |
# source repo @ https://github.com/YZITE/encsess2 | |
# git clone https://github.com/YZITE/encsess2 | |
# cd encsess2 | |
# cargo build --release | |
YZESD2PATH=... # should point at the path where the release binaries reside | |
echo "spawn server ..." |
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
ZSXPL -- Zscheile Extensible Programming Language | |
Types: | |
ptr shared_ptr<obj> 0x00 | |
int int64_t 0x01 | |
uint uint64_t 0x02 | |
double double 0x03 | |
stream int32_t(_fd) 0x04 | |
string string 0x10 |
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 <zsdatable.hpp> | |
#include <iostream> | |
int main() { | |
zsdatab::metadata mt(':'); | |
mt += { "k", "w", "v" }; | |
zsdatab::table tab(mt); | |
// insert something into table | |
///... |
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
DBCLIENT="$(which dbclient)" | |
[ -z "$INJECT_USERNAME" ] && INJECT_USERNAME="root" | |
[ -z "$INJECT_PASSWORD" ] && INJECT_PASSWORD="1q2w3e" | |
doremote() { | |
DROPBEAR_PASSWORD="$INJECT_PASSWORD" "$DBCLIENT" -y -y -A -l "$INJECT_USERNAME" "$INJECT_HOST" "$@" | |
} | |
inject_progr() { |
NewerOlder