Skip to content

Instantly share code, notes, and snippets.

Nikolai Vladimirov nvloff

Block or report user

Report or block nvloff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View data.json
[{"position":1,"name":"FIFA 18","total":7279925,"yearly":7279925},{"position":2,"name":"Call of Duty: WWII","total":5087256,"yearly":5087256},{"position":3,"name":"The Legend of Zelda: Breath of the Wild","total":4436042,"yearly":4436042},{"position":4,"name":"Mario Kart 8 Deluxe","total":3887083,"yearly":3887083},{"position":5,"name":"Horizon: Zero Dawn","total":3802147,"yearly":3802147},{"position":6,"name":"Super Mario Odyssey","total":3277178,"yearly":3277178},{"position":7,"name":"Crash Bandicoot N. Sane Trilogy","total":2796345,"yearly":2796345},{"position":8,"name":"Splatoon 2","total":2765720,"yearly":2765720},{"position":9,"name":"Tom Clancy's Ghost Recon Wildlands","total":2700028,"yearly":2700028},{"position":10,"name":"Pokemon Sun/Moon","total":2697473,"yearly":14732003},{"position":11,"name":"Destiny 2","total":2594433,"yearly":2594433},{"position":12,"name":"Grand Theft Auto V","total":2574645,"yearly":16211990},{"position":13,"name":"Resident Evil VII: Biohazard","total":2372577,"yearly":237257
View rack-timeout error.txt
→ be rails s
Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
=> Booting Thin
=> Rails 4.2.4 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on localhost:3000, CTRL+C to stop
/Users/nvloff/work/Textmaster.com/vendor/ruby/2.0.0/bundler/gems/rack-timeout-5e579ee5fe7b/lib/rack/timeout/core.rb:23: [BUG] object allocation during garbage collection phase
@nvloff
nvloff / git_brt.sh
Created Aug 15, 2013
Git branch by time - get all branches, group them, sort them by last commit, and check if they're merged in the current branch
View git_brt.sh
#!/bin/bash
HASH="%C(yellow)%h%Creset"
HASH_WHITE="%C(white)%h%Creset"
AUTHOR_RELATIVE_TIME="%Cgreen(%ar)%Creset"
COMMIT_RELATIVE_TIME="%Cgreen(%cr)%Creset"
AUTHOR="%C(bold blue)<%an>%Creset"
REFS="%C(red)%d%Creset"
View push_helper.rb
class SandboxedTestCase < TestCase
def setup
@remote_repo = sandbox_init('testrepo.git')
@repo = sandbox_clone(@remote_repo)
end
def teardown
FileUtils.remove_entry_secure(@remote_repo.path)
FileUtils.remove_entry_secure(@repo.path)
end
@nvloff
nvloff / nalus.py
Created May 5, 2011
Print base64 encoded nalu payload from H264 AnnexB file
View nalus.py
import base64
import sys
def get_nalus(file_name, count):
bitstream = open(file_name, "rb")
data = bitstream.read(count*3000)
data = base64.b16encode(data)
nalus = data.split('00000001')
for nalu in nalus[1:count+1]:
nalu_t = int(nalu[0:2],16) & int('1f',16)
You can’t perform that action at this time.