Skip to content

Instantly share code, notes, and snippets.

@hyqhyq3
hyqhyq3 / streambuf.js
Last active December 18, 2015 07:09 — forked from anonymous/streambuf.js
/**
* Created with JetBrains WebStorm.
* User: kiyangqi
* Date: 13-6-9
* Time: 下午11:36
* To change this template use File | Settings | File Templates.
*/
function StreamBuf() {
this.chunks = [];
@dolphin8
dolphin8 / simple-http-server.cc
Last active February 2, 2022 03:43
using boost::asio with boost::context::callcc
#include <iostream>
#include <utility>
#include <boost/context/all.hpp>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
namespace spawn {
namespace asio = boost::asio;
namespace ctx = boost::context;
@marcpinet
marcpinet / README.md
Last active July 8, 2024 14:31
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!