Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jeremejevs on github.
  • I am jeremejevs ( on keybase.
  • I have a public key ASBqIFLb21nzT2U_pgBx8_otqlxOCug8Pzrwwp2Qx-EItQo

To claim this, I am signing this object:

vars.preset normal false
vars.serverType private
admin.password <password>
vars.gamePassword fnbf
vars.serverDescription "Want to join? You most certainly can! Find out more on"
vars.serverMessage "Friday Night Battlefield"
vars.serverName "Friday Night Battlefield"
alecmev / stayregexd.user.js
Last active August 29, 2015 14:24
// ==UserScript==
// @name StayRegexd
// @version 1.0
// @namespace
// @author Olegs Jeremejevs
// @include /^https?:\/\/(www\.)?reddit\.com(?!\/(r\/[^\/]+\/comments\/[^\/]+|user))/
// @include /^https?:\/\/news\.ycombinator\.com(?!\/(item|user))/
// @include /^https?:\/\/(www\.)?youtube\.com(\/(feed|\?|$)|$)/
// @grant none
// ==/UserScript==
alecmev / bf4-dlcs.js
Last active August 29, 2015 14:23
Battlefield 4 maps, DLC's, game modes
l_loc = {
"xp0": "Second Assault",
"xp1": "China Rising",
"xp2": "Naval Strike",
"xp3": "Dragon's Teeth",
"xp4": "Final Stand"

This makes no sense. Multiple people have proposed to prohibit vehicle stealing altogether, including myself, and the only rationale I heard for NOT doing so was "this will be impossible to police". I'm sorry, how exactly is that more impossible to police than, say, active radar usage? You do not get it in the kill feed and you can't see it being done from the spectator's point of view, unless you're looking for it after a report. Also, I can say with 100% confidence, that during all my time in organized 32v32's I haven't seen a boat being stolen during combat. Maybe somebody else did, but you gotta agree, that the odds of that happening are probably 1-2 times per year. And that only matters if it was wrongfully reported as a base stolen asset, which is even more unlikely. What I'm saying is that if somebody is reporting a stolen asset from the base, and the enemy is seen using it, then there's a very good chance that they're telling the truth.

Now, why should it be prohibited completely? Because this is, pa

Why can't an announcement be discussed? Because "somebody said so"? Getting so tired of this bureaucratic bullshit. Provide a thread where this can be discussed then, and link it from here. Also, why is everybody so trigger happy when it comes to removing original content? Good thing I've predicted this irrational crap, and backed it up; in places, where you want people to come back, you take users' stuff and move it elsewhere (i.e. into a new thread in Mess Hall), if it was misplaced, instead of permanently erasing it.

alecmev / python-docs.user.js
Created July 18, 2014 12:57
Show Python 3 documentation by default
// ==UserScript==
// @name Show Python 3 documentation by default
// @namespace
// @author Olegs Jeremejevs
// @description Automatically redirects Python 2 docs to Python 3.
// @match *://*
// @version 1.0
// ==/UserScript==
var tmp = document.location.pathname.split('/');
Windows Registry Editor Version 5.00
@="001 Archive"
@="C:\\Program Files\\7-Zip\\7z.dll,9"
alecmev /
Last active December 16, 2015 05:49
Text alignment
def align(source, chars, mode):
source = list(source)
if len(source) == 0:
return ''
result = ''
lineBuffer = [source[0]]
lineLength = len(source[0])