Skip to content

Instantly share code, notes, and snippets.

@hungte
hungte / megadecrypter.py
Last active March 16, 2024 15:50
A tool to decrypt mega encrypted link, inspired from https://github.com/denysvitali/megadecrypter/ because installing Crystal-lang is not an easy thing for most people.
#!/usr/bin/env python
# Copyright 2018 Hung-Te Lin. All rights reserved.
# Use of this source code is governed by MIT license.
"""A program to decrypt mega://enc2?.... link.
Inspired from https://github.com/denysvitali/megadecrypter
"""
import base64
import binascii
@wdv4758h
wdv4758h / sleep_sort.cpp
Created May 5, 2015 15:03
Sleep Sort with OpenMP
// version 1, just print it
#include <cstdio>
#include <vector>
#include <unistd.h> // sleep
void sleep_sort(std::vector<unsigned long long> &data) {
const auto length = data.size();