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
mod model; | |
mod row; | |
mod list; | |
use std::path::Path; | |
use crate::list::DirectoryList; | |
use crate::model::Model; |
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/bash | |
echo "Hello!" |
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
#![feature(test)] | |
#![feature(core_intrinsics)] | |
// extern crate base64; // 0.13.0 | |
extern crate sha2; // 0.9.5 | |
extern crate test; | |
mod d_const; | |
mod tmp2; |
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
use std::thread; | |
fn main() { | |
let (tx, rx) = mpsc::unbounded::<&str>(); | |
let t1 = thread::spawn(move || { | |
println!("Received1: {:?}", rx.recv()); | |
println!("Received1: {:?}", rx.recv()); | |
}); | |
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
use std::ptr::addr_of_mut; | |
static mut EVENTS: [libc::epoll_event; 10] = [libc::epoll_event { events: 0, u64: 0 }; 10]; | |
pub fn main() { | |
let tv = std::time::Instant::now(); | |
unsafe { | |
let efd = libc::eventfd(0, libc::EFD_NONBLOCK); | |
std::thread::spawn(move || { |
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
#![feature(async_stream)] | |
use std::future::Future; | |
use std::mem::size_of; | |
use std::net::{Ipv4Addr, SocketAddrV4}; | |
use std::os::unix::io::FromRawFd; | |
use std::ptr::read; | |
use std::str::FromStr; | |
use std::{ | |
cell::RefCell, |
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
" Prerequisites: | |
" - neovim >= 0.5 | |
" - rust-analyzer: https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary | |
" Steps: | |
" - :PlugInstall | |
" - Restart | |
call plug#begin('~/.vim/plugged') |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.11.0-051100-generic Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=100200 | |
CONFIG_LD_VERSION=235010000 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_LLD_VERSION=0 |
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
#----------------------------------------- | |
# Installing Required Tools | |
#----------------------------------------- | |
sudo apt-get update | |
lb config \ | |
-d sid \ | |
-a amd64 \ | |
--apt-recommends false \ | |
--apt-options '--yes -oAPT::Default-Release=unstable' \ |
NewerOlder