Skip to content

Instantly share code, notes, and snippets.

View CKylinMC's full-sized avatar
:shipit:
Slow to reply.

CKylinMC CKylinMC

:shipit:
Slow to reply.
View GitHub Profile
@giuliano-macedo
giuliano-macedo / download_file.rs
Last active January 25, 2024 08:52
Download large files in rust with progress bar using reqwest, future_util and indicatif
// you need this in your cargo.toml
// reqwest = { version = "0.11.3", features = ["stream"] }
// futures-util = "0.3.14"
// indicatif = "0.15.0"
use std::cmp::min;
use std::fs::File;
use std::io::Write;
use reqwest::Client;
use indicatif::{ProgressBar, ProgressStyle};
@swrogers
swrogers / steps.md
Created February 29, 2020 16:33
Manjaro On HyperV

What I needed to do to install Manjaro 19.0 KDE on Hyper-V

  • After initial bootup, need to change the video driver
    • wait for bootup to complete, takes a few minutes, then Control+F2 to change to console
    • run the following commands:
    su
    pacman -Sy
    pacman -S xf86-video-fbdev
    systemctl start sddm
    
@pwxcoo
pwxcoo / huffman.cpp
Created July 14, 2019 13:56
huffman encoding implemented by c++
#include <iostream>
#include <string>
#include <queue>
#include <unordered_map>
using namespace std;
// A Tree node
struct Node
{
char ch;
@unnikked
unnikked / README.md
Last active February 19, 2024 02:58
How to host your Telegram bot on Google App Script

Telegram Bot on Google App Script

This is the source code of one of my blog post. To read the full blog post please click here.

@michaellihs
michaellihs / twisted.md
Last active April 7, 2024 17:47
Write your own ssh Server with the Python Twisted library

SSH Server with the Python Twisted Library

Installing the library

Assuming you have Python installed on your system:

pip install twisted
pip install pyOpenSSL
pip install service_identity