Neg blog · Neg blog

pci-e passthrough with QEMU on intel / nvidia platform

I will tell you some “success story” about pci-e passthrough Geforce 980 GTX videocard with QEMU / KVM to Windows 10 guest system for gaming. As the result you’ll get system almost with no overhead(1-10%). If you are interested in this welcome under cut.

[Read more]

Nice music previewer for various music genres/tags

Once upon a time I found this interesting site: http://everynoise.com/engenremap.html. You can discover various new musical genres and “tags”. Maybe it does not contains all the tags/genres ever, like oceangrunge for example, but anyway idea looks interestring.

everynoise

Interactive clip which tracks everyone's mouse cursor position, to show it to everyone

If you are feeling bored try this: http://donottouch.org/ donttouch

This records you actions like mouse clicks/movements to show it to other listners. I think that it’s pretty nice idea but nonperfect implementation: for my taste something more abstract and artificial stuff is better, but anyway try it and maybe you’ll like that.

Cyclesort: unusual O(n+m) sorting algorithm

One day I’ve discovered some interesting algorithm: cyclesort. There is interesting paper about it. And also nice explanation on https://corte.si/posts/code/cyclesort/index.html.

I think that main idea is pretty clear: you can decompose any permutation into a unique set of disjoint cycles and then apply them to get lexicographical order.

Also look at this explaination:

l=[0, 5, 6, 8, 7, 4, 9, 1, 3, 2]

cls=[], i=1 cycle=[]
cls=[], i=1 cycle=[]
cls=[], i=1 cycle=[1]
cls=[], i=1 cycle=[1, 5]
cls=[], i=1 cycle=[1, 5, 4]
cls=[], i=1 cycle=[1, 5, 4, 7]
cls=[[7, 4, 5, 1]], i=2 cycle=[]
cls=[[7, 4, 5, 1]], i=2 cycle=[]
cls=[[7, 4, 5, 1]], i=2 cycle=[2]
cls=[[7, 4, 5, 1]], i=2 cycle=[2, 6]
cls=[[7, 4, 5, 1]], i=2 cycle=[2, 6, 9]
cls=[[7, 4, 5, 1], [9, 6, 2]], i=3 cycle=[]
cls=[[7, 4, 5, 1], [9, 6, 2]], i=3 cycle=[]
cls=[[7, 4, 5, 1], [9, 6, 2]], i=3 cycle=[3]
cls=[[7, 4, 5, 1], [9, 6, 2]], i=3 cycle=[3, 8]

cycles=[[7, 4, 5, 1], [9, 6, 2], [8, 3]]

A cool story about my migration from notion to i3

This a post about my migration from my own fork of notion to a i3-gaps and porting ion3-specific features like multiwindow scratchpads, etc. In this article you will probably see a lot of semi-stupid pythonish hacks because of I am new to python.

[Read more]

zsh-builtin xargs

Of course all of you already knows about xargs: nice cli-mode tool to execute command lines from standard input. As you know some tools can get input as a parameter like awk or grep, but some like cp or 7z can’t. Here I shall talk about xargs and one of zsh-builtin replacement of it. If you are interested please read further.

[Read more]

Filenames and pathnames in shell

Interesting article about handling paths and filenames in shell: http://www.dwheeler.com/essays/filenames-in-shell.html

Look at this quote from there:

Encoding pathnames It is possible to encode pathnames so that all pathnames can be handled. There is no standard POSIX mechanism for doing this encoding, unfortunately. encodef is a small utility I wrote that can encode and decode filenames in a few formats. With it, you can do this:

# This version is POSIX portable; in practice
# you can often use "-print0" instead of "-exec printf '%s\0' {} \;"
for encoded_pathname in $(find . -exec printf '%s\0' {} \; | encodef ) ; do
    file="$(encodef -d -Y -- "$encoded_pathname")" ; file="${file%Y}"
    COMMAND "$file" # Use quoted "$file", not $file, everywhere.
done

Goëtia PostCSS names

Lol :D

PostCSSNames

original: twitter.com/autoprefixer/status/413085919420219392

Interesting google-related links

Here the interesting list of links related to information which had been mining by google about you:

https://security.google.com/settings/security/permissions – list of apps, binded to your google account.

https://www.google.com/takeout – tool to export data from various google-related sources like google+, contacts, maps history, etc.

https://maps.google.com/locationhistory – places visited by you with chronology. Looks pretty interesting by the way :)

https://history.google.com – the history of your google searching, also looks pretty interesting.

https://security.google.com/settings/security/activity – the list of your recently(for the last 28 days) used devices. It is interesting by security reasons.

Also all of those sources can be cleaned up ;)

tutorials по vim

Хочу порекомендовать неплохой улучшенный vim tutorial vim-galore: mhinz/vim-galore. Это довольно простой туториал, где рассмотрены основные его фичи. Можно использовать его чтобы понять какие возможности есть в vim без плагинов. Также хорошая подьборка vim-антипаттернов: https://sanctum.geek.nz/arabesque/vim-anti-patterns/

Ещё существует just for fun игрушка на эту тему: vim-adventures.com/