nkm


Member since 03/24/2009

11 snippets

521 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 112 posted 6 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 87 posted 9 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 245 posted 10 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 127 posted 10 years ago by nkm
The instructions for Snow Leopard are in the comments
0 90 posted 10 years ago by nkm
1 73 posted 10 years ago by nkm
It's not 100% accurate, but works fine for people under 1.480.
2 146 posted 10 years ago by nkm
« Prev 1 Next »