Skip to content

Instantly share code, notes, and snippets.


Mikola Lysenko mikolalysenko

View GitHub Profile
bishboria /
Last active Sep 22, 2022
Springer made a bunch of books available for free, these were the direct links
vsbuffalo / Makefile
Last active Nov 28, 2018
finally, a LaTeX makefile that captures your anger and frustration
View Makefile
# Thanks for
# some tips
LATEXMK = latexmk -xelatex
target = manuscript
references = bib.bib
includes := $(shell ls *.tex) ${references}

using reputation systems to create shared function-critical datastructures in open networks

Search engines, spam filtration, and p2p protocols - all need to rate the value of information. Search engines need it to provide good results; spam filtration needs it to exclude noise; and p2p networks need it for security and efficiency.

What is "value?" I'll use two dimensions:

  • Quality (how useful the information is). The more permissive participation is, the greater the need for quality-ranking. Term-frequency search alone fails for the Web, because the Web doesn't prefilter for quality.
  • Trust (how safe the information is to use). The more function-critical the information is, the greater the need for trust-ranking. If a DHT's host-lookup can be manipulated to flood an unsuspecting computer (a DDoS) then the DHT is unsound.
View git-squash
git rebase --interactive --autosquash \
$(git merge-base $(git symbolic-ref --short HEAD) master)
mathisonian /
Last active Sep 20, 2022
requiring npm modules in the browser console

demo gif

The final result: require() any module on npm in your browser console with browserify

This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.

Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5


hsribei /
Last active Jan 18, 2017
Putting the "Tor" back in Torrent

Putting the "Tor" back in Torrent

How a Popcorn Time fork patch could incentivize people to run thousands of new Tor relays

This is a follow-up to this discussion: Can NAT traversal be Tor's killer feature?

If torrents are P2P's killer application, and NAT traversal/"static IP" are Tor's (via hidden services), putting them together could prove to be the best incentivization scheme for growing the Tor network other than cold crypto cash.

You're stupid

Everybody knows you're not supposed to use torrents with tor, right?

debasishg / gist:8172796
Last active Sep 19, 2022
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: