Skip to content

Instantly share code, notes, and snippets.


Kestutis Stalmokas stalmok

  • Vancouver, Canada
View GitHub Profile
stalmok / unix-search-in-file
Created Oct 12, 2012
Unix CL: search in files
View unix-search-in-file
find . -name "*" -exec grep -l "somestring" {} \;
stalmok / drop-tables
Created Aug 16, 2012
Unix CL: drop all MySQL tables
View drop-tables
mysqldump -u username --no-data dbname | grep ^DROP | mysql -u username
mysqldump -u username -p --no-data dbname | grep ^DROP > drop.sql
mysql -u username -p dbname < drop.sql
stalmok / prevent-text-breakouts.css
Created Aug 14, 2012
CSS: Prevent Long URL’s From Breaking Out of Container
View prevent-text-breakouts.css
.prevent-text-breakouts {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
stalmok / readlink
Created Jul 9, 2012
Unix CL: Find Out Real Path Of File
View readlink
stalmok / platform_check
Created Jun 21, 2012
JavaScript: test if Mac or PC
View platform_check
if (navigator.userAgent.indexOf('Mac OS X') != -1) {
} else {
stalmok / clean-svn
Created Apr 24, 2012
Unix CL: Remove all .svn folders in a directory tree
View clean-svn
find . -name ".svn" -type d -exec rm -rf {} \;
You can’t perform that action at this time.