Skip to content

Instantly share code, notes, and snippets.

View neokril's full-sized avatar

Dmitry neokril

View GitHub Profile
@neokril
neokril / index.html
Created November 23, 2015 21:27 — forked from anonymous/index.html
JS Bin Experiment with canvas - flying dots // source http://jsbin.com/vuyowe
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Experiment with canvas - flying dots">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body onload="main()">
<canvas id="cv" style="background:#1e0239" />
@neokril
neokril / recorder.py
Last active August 29, 2015 14:16
Simple multidevice recorder for windows 7
import pyaudio
import wave
from time import sleep
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 48000
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = ["output.wav",
@neokril
neokril / autoexec.cfg
Created February 27, 2014 18:26
Performance-optimized config for Dota 2 on Linux
// This is my performance-optimized config for Dota 2 (Linux)
//
// Launch options: -novid -high -nod3d9ex -console
//
// console show game console on start (there you can see that config was loaded OK)
// nod3d9ex optimize graphics for DirectX 9
// novid disable intro video
// high set high CPU priority for Dota 2 process
echo "*** Performance optimizations - START ***"
@neokril
neokril / dragfullwindow.cpp
Created December 19, 2013 08:15
Little application for enabling Windows option "Show window contents while dragging". This app can be used as a fix for Citrix client incorrect behavior - it switches off this option from time to time. I tried this solution: http://aaronwalrath.wordpress.com/2010/12/05/fix-for-citrix-xenapp-published-apps-disabling-windows-visual-effects/ but it…
#include <windows.h>
#include <tchar.h>
#include <cstdio>
#pragma comment(lib, "user32.lib")
int _tmain(int argc, _TCHAR* argv[])
{
BOOL enabled;
Processor Information:
Vendor: GenuineIntel
CPU Family: 0xf
CPU Model: 0x4
CPU Stepping: 0x3
CPU Type: 0x0
Speed: 3010 Mhz
2 logical processors
1 physical processors
HyperThreading: Supported