vol4ok
Mac OS X Lion: How to clean up the 'Open With' menu by vol4ok
Source map for coffee-script by vol4ok
I make sample project that allows debug coffee-script in Chorme Canary using source maps. https://github.com/vol4ok/sourcemap-sample
extract mp3 audio from video files by vol4ok
resolve installed package dir by vol4ok
it will useful when you want to read some file from installed node package for example you want to read "underscore-min.js" from "underscore" package for building browser code from node environment. More under the cut
Loading Cakefile as module by vol4ok
It's useful when you want to write code that will execute with cake command from terminal and exports some functionality to use from other module More under the cut
redis per request connections vs. one shared connection by vol4ok
How do you think, which way to accurately and more productive, create connection for each request More under the cut
Raw getStartOfWeek from linux epoch date by vol4ok
Manually parsing year, month, day and week day. More under the cut
hogan-express by vol4ok
I just write mustache template engine for express 3.x. Supports partials, layouts and caching. https://github.com/vol4ok/hogan-express
fs event handling to automate compilation by vol4ok
This is little sample code that allow catch changes in dirs inside the target dir More under the cut
create RAM disk on OS X by vol4ok
Solution 1: Make it as disk, like USB-Drive
diskutil erasevolume HFS+ "RAM" `hdiutil attach -nomount ram://2097152`
Solution 2: More under the cut
jquery code-style in node.js by vol4ok
$ = {}
$ extends require 'fs'
$ extends require 'path'
$ extends require 'events'
$ extends require 'util'
#...
Advantages:
1. Shorter! Ex.: $.basename(...) v.s. path.basename() (and no need expand it to scope like this: {basename,dirname, extname, exists} = require 'path')
2. Less vars! Ex.: var $ v.s. var fs,path,util,events
mp3 id3 tag cp1251 to utf-16 encoding conversion by vol4ok
I write this simple script on ruby, that solve this task for me See it under cut More under the cut
restart nginx running as root under unprivileged user by vol4ok
Useful for deploy automation
gcc restart.c -o restart
sudo chown root restart
sudo chmod u+s restart
create password from shell by vol4ok
password="$(tr -dc \"[:alnum:]\" < /dev/urandom | head -c 10)"
echo "$(tr -dc \"[:alnum:]\" < /dev/urandom | head -c 10)"
Create github repo from shell by vol4ok
Split .ape and .flac and convert to .m4a (ALAC) on MacOS X by vol4ok
Here is the code: More under the cut
fs.walker by vol4ok
Release fs.walker lib for #nodejs https://github.com/vol4ok/fs.walker