I hereby claim:
- I am ishworgurung on github.
- I am isg (https://keybase.io/isg) on keybase.
- I have a public key ASDvDU5Nf991msLfj_1uVnGo0ys0GzG-dNW-qRNvz34Rdgo
To claim this, I am signing this object:
| System: | |
| Host: blitz Kernel: 5.2.21-1-MANJARO x86_64 bits: 64 Desktop: Gnome 3.34.1 | |
| Distro: Manjaro Linux | |
| Machine: | |
| Type: Laptop System: Star Labs product: LabTop v: N/A serial: <filter> | |
| Mobo: Star Labs Online Limited model: Star LabTop (Mk III) | |
| serial: <filter> UEFI: American Megatrends v: 1.0.09 date: 07/05/2019 | |
| Battery: | |
| ID-1: BAT0 charge: 38.4 Wh condition: 46.9/45.6 Wh (103%) | |
| CPU: |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # for wl (http://wiki.iopsys.se/index.php5/Wlctl) | |
| for i in `seq 1 2`; do | |
| for cmd in status isup rate txpwr pktq_stats mempool bs_data; do | |
| wl -i eth$i $cmd; | |
| done; | |
| done |
| use std::sync::mpsc::{Receiver, Sender}; | |
| use std::path::PathBuf; | |
| use std::fs::Metadata; | |
| use std::io::Result; | |
| use std::thread::spawn; | |
| use std::sync::mpsc::channel; | |
| fn worker_loop(files: Receiver<PathBuf>, | |
| results: Sender<(PathBuf, Result<Metadata>)>) { | |
| //println!("here"); |
| No need to reboot!!!!1 | |
| 0. df -ih / df -h on the linux guest | |
| 1. Increase your physical disk space from the hypervisor on the host machine. | |
| 2. Create a logical partition of the free space from the linux guest making sure that you write the partition table out. | |
| $ cfdisk /dev/sdb | |
| 3. Drop back to the shell and do a partprobe to re-read the partition table so the kernel knows about the new logical partition. If new partition is not showing up, then you'll need to reboot (Debian & Ubuntu should be fine. But Fedora and CentOS has given me issue on this) | |
| $ partprobe | |
| 4. Extend our Volume Group to include the new partition. Below we have sdb7 as the new logical partition created in step 2. Replace it for your own need. | |
| $ vgextend <volume group name identified using vgdisplay> /dev/sdb7 |
| #!/usr/bin/env python | |
| """ | |
| Example on using Kqueue/Kevent on BSD/Mac | |
| using Python. | |
| The TCP server essentially echoes back the | |
| message it receives on the client socket. | |
| """ | |
| __author__ = "Ishwor Gurung <[email protected]>" |
| /* | |
| Description: | |
| An example / skeleton of a high-performance socket server on Linux. Feel free | |
| to use this code to write your own evented servers. | |
| The code is essentially a echo server that send(2) whatever it recv(2) from the | |
| client, back to the client socket. | |
| The code is high-performing due to the use of epoll(7) in a non-blocking mode | |
| with edge-triggered distribution that scales well on a large set of file |
| #include <iostream> | |
| #include <cstring> | |
| #include <vector> | |
| #include <string> | |
| #include <boost/bind.hpp> | |
| #include <boost/ref.hpp> | |
| #include <random> | |
| using namespace std; | |
| typedef std::vector<std::pair<std::string, int>> pair_vector; |
| 1. Install build tools | |
| - sudo fink install autoconf2.6 automake1.11 | |
| 2. Checkout libev | |
| - cvs -z3 -d :pserver:[email protected]/schmorpforge co libev | |
| 3. Generate configure script and a makefile | |
| - cd libev | |
| - autoreconf-2.68 --install --symlink --force > configure | |
| - chmod +x configure && ./configure |