Member since 03/24/2009

11 snippets

1391 profile views

1 Comment(s) Posted

View their favorites



first submission:submitting first snipplet

nkm's Recent Snippets

« Prev 1 Next »
Problem You want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).
0 381 posted 8 years ago by nkm
The space after the caret in the grep command is produced by typing Ctrl-V and then Tab, to insert a Tab character.
0 356 posted 10 years ago by nkm
PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs. Tested with Javascript and PHP.
1 735 posted 11 years ago by nkm
here's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I * got exceptionally bored and rewrote most of it, the patch is attached. It runs...
0 431 posted 11 years ago by nkm
The instructions for Snow Leopard are in the comments
0 286 posted 12 years ago by nkm
1 297 posted 12 years ago by nkm
It's not 100% accurate, but works fine for people under 1.480.
2 451 posted 12 years ago by nkm
« Prev 1 Next »