Skip to content

Instantly share code, notes, and snippets.

@bordeo
Last active September 8, 2016 14:09
Show Gist options
  • Save bordeo/6d3812bb28231a41d3a0 to your computer and use it in GitHub Desktop.
Save bordeo/6d3812bb28231a41d3a0 to your computer and use it in GitHub Desktop.
Comman Line Usefull
********** LP ********
folder skin images
glue-sprite sprites --css ../css/ --img ./ --ratios=2,1.5,1
folder skin css
sass-convert --from css --to scss sprites.css sprites.scss
*********
****get list for purge cache
**on root project folder
find media/css -name *.css
sed -i 's/test\.alexbordin\.com/test2\.bordina\.loc/g' database.sql
***** Load dump to database
mysql -u root -p datbasename < intracom_22052014.sql
zcat < /path/to/file.sql.gz | mysql -uroot -ppassword your_database
***** Download database to dump
****mysqldump -u root -p intracom > intracom_22052014.sql
mysqldump --skip-tz-utc -u user -p -h localhost database | gzip > database.sql.gz
****** lista commit
svn log --verbose | more
***** --dry-run per svn up ******
svn status -u
copio cartella - media catalog
git view
git gc --prune=now
** Copy from ssh to local
scp [email protected]:/home/name/dir/file /tmp
**kill process
ps aux | grep apache2 | tr -s ' ' | cut -d ' ' -f2
ps aux | grep apache2 | tr -s ' ' | cut -d ' ' -f2 | xargs -n 1 kill -9
**Coffee watch
coffee -bcw -o js/ js/*.coffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment