Skip to content

Instantly share code, notes, and snippets.

View dignifiedquire's full-sized avatar

Friedel Ziegelmayer dignifiedquire

View GitHub Profile
go-ipfs/cmd/ipfs git/dev0.4.0
❯ IPFS_PATH=/Volumes/npm/.ipfs ./ipfs swarm peers
/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM
/ip4/107.191.118.42/tcp/4001/ipfs/QmWhYrUgb9EUXFVCVo8cGZ8Eo1e7LrqPYAhAC4VtwJWNjj
/ip4/37.59.33.238/tcp/4001/ipfs/QmdNc4B89DxVeiuDKRN5bWdKsAPCmekgmJMkRSdUNa7x9z
/ip4/85.246.155.135/tcp/30600/ipfs/QmTi4cb3QgG7NoZknzTarQdoozUxGCQ3oV6Mw7NkBunbfL

go-ipfs/cmd/ipfs git/dev0.4.0
RUST_BACKTRACE=1 cargo test
Compiling deltachat v1.33.0 (/Users/dignifiedquire/opensource/deltachat/deltachat-core-rust)
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
--> src/sql/mod.rs:135:10
|
135 | ) -> Result<T>
| ^^^^^^^^^
|
note: hidden type `impl core::future::future::Future` captures the scope of call-site for function at 138:5
--> src/sql/mod.rs:138:5
struct Parser {
trailers: Option<Receiver<(String, String)>>,
}
impl Parser {
pub fn new() -> Self {
Self { trailers: None }
}
pub fn parse<'a, T: async_std::io::Read + Unpin + Send + 'static>(
use async_std::task::Poll;
use byte_pool::{Block, BytePool};
use byteorder::{BigEndian, ByteOrder};
use jetscii::bytes;
use std::io::{Cursor, Result};
use std::pin::Pin;
use std::task::Context;
use subslice::SubsliceExt;
fn main() {
use byte_pool::{Block, BytePool};
use byteorder::{BigEndian, ByteOrder};
use std::io::{Cursor, Result};
fn main() {
let pool = BytePool::<Vec<u8>>::new();
let source = vec![1; 1024 * 1024];
let incoming_bytes = Cursor::new(&source);
let mut dest = Vec::new();
use anyhow::Result;
use async_std::prelude::*;
use async_std::sync::Arc;
use async_std::sync::{channel, Receiver, Sender};
use async_std::task;
use log::info;
use std::time::Duration;
fn setup_logger() {
pretty_env_logger::init();
$ lldb -p 64608
(lldb) process attach --pid 64608
Process 64608 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff793bb86a libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
-> 0x7fff793bb86a <+10>: jae 0x7fff793bb874 ; <+20>
0x7fff793bb86c <+12>: movq %rax, %rdi
0x7fff793bb86f <+15>: jmp 0x7fff793b8457 ; cerror_nocancel
0x7fff793bb874 <+20>: retq
@dignifiedquire
dignifiedquire / README.md
Created March 16, 2016 19:26
IPFS on Zerotier

[IPFS] on [Zerotier]

  1. Setup your own Zerotier network, either using your own server or the provided one.
  2. Ensure the network provides ip4 and ip6 addresses

On all machines you want to connect

1. Install Zerotier

2. Install IPFS 0.4 (from source at the moment, see Instructions here)

3. Join Zerotiernetwork

use async_imap::{connect, error::Result};
use async_std::prelude::*;
use async_std::task;
use async_tls::TlsConnector;
use std::time::Duration;
fn main() -> Result<()> {
task::block_on(async {
let server = "imap.server.com";
async fn compare_path(&self, path_files: Vec<File>) -> Vec<File> {
let changed_files = Vec::with_capacity(path_files.len());
let changed_files = Arc::new(Mutex::new(changed_files));
let mut handles = Vec::with_capacity(path_files.len());
// Check all files
for file in path_files {
let changed_files = Arc::clone(&changed_files);