Skip to content

Instantly share code, notes, and snippets.

apiraino

Block or report user

Report or block apiraino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TCP async forwarder
#![deny(warnings)]
extern crate tokio;
extern crate tokio_io;
use std::sync::{Arc, Mutex};
use std::net::{Shutdown, SocketAddr};
use tokio::net::{TcpListener, TcpStream};
use tokio::prelude::*;
@apiraino
apiraino / TCP sync forwarder
Last active Apr 10, 2018
TCP sync forwarder
View TCP sync forwarder
extern crate encoding;
use std::io::prelude::*;
use std::io::{BufReader, BufWriter};
use std::env;
use std::net::{Shutdown, TcpStream};
use encoding::{EncoderTrap, Encoding};
use encoding::all::ASCII;
fn main() {
@apiraino
apiraino / pwd_exporter.py
Created Jan 23, 2018
Convert XML file from Firefox (pre-Quantum) extension --> Keepass import CSV
View pwd_exporter.py
#!/usr/bin/env python3
# Convert XML file from the firefox (pre-Quantum) extension
# into a CSV suitable to be imported into keepassxc
# Notes:
# - Python3 only!
# - password must be exported in plain text
# - requires defusedxml package ("pip install defusedxml")
View Rust2Wasm mini-howto
### install deps
Reference here: https://medium.com/@ianjsikes/get-started-with-rust-webassembly-and-webpack-58d28e219635
### create a binary rust project
### write a public function
### compile Rust code targeting WASM
wargo build (i.e. cargo build --target=wasm32-unknown-emscripten)
### test binary
You can’t perform that action at this time.