nkm


Member since 03/24/2009

11 snippets

3028 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

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 699 posted 10 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 616 posted 12 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 1339 posted 13 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 865 posted 14 years ago by nkm
The instructions for Snow Leopard are in the comments
0 518 posted 14 years ago by nkm
1 527 posted 14 years ago by nkm
It's not 100% accurate, but works fine for people under 1.480.
2 846 posted 14 years ago by nkm
« Prev 1 Next »