This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
user='root' | |
password='123' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// The default number of parapraphs to be inserted | |
"default_paragraph_count": 1, | |
// The default number of words for each parapraph to be inserted | |
"default_word_count": 7, | |
// If true, the generated text will always starts with "Lorem ipsum" | |
"always_start_with_lorem_ipsum": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Using this, a web page designed for a 720p screen can be simply scaled up to 1080p (or vice-versa) */ | |
/* This works especially well when the graphics are SVG and or icon fonts */ | |
body { zoom: 1.5;} /* 1280 * 1.5 = 1920 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://i4.ytimg.com/vi/ZwUa-olnPV0/sddefault.jpg?w=640&h=360&feature=em-upload_owner&sigh=3SP2iJ7rMvM9pVfZGbrD-ubbk6w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fve-video-wrapper"> | |
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/kCIRQuHdBgQ?wmode=transparent&modestbranding=1&autohide=1&showinfo=0&rel=0" frameborder="0" allowfullscreen></iframe> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lte IE 8]> <img src="../octopus.png"> <![endif]--> | |
<!--[if gt IE 8]><!--> <img src="../octopus.svg"> <!--<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = true | |
[alias] | |
st = status | |
c = commit -m | |
a = add | |
aa= !git add -u && git add . && git status | |
co = checkout | |
cob = checkout -b | |
up = !git fetch origin && git rebase origin/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(ps auxww|sed -n '/sed -n/d;/mysqld /{s/.* \([^ ]*mysqld\) .*/\1/;p;}') --verbose --help|grep '^log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From: http://stackoverflow.com/a/2484349/24559 | |
git clone --no-checkout repo-to-clone existing-dir/existing-dir.tmp | |
mv existing-dir/existing-dir.tmp/.git existing-dir/ | |
rmdir existing-dir/existing-dir.tmp | |
cd existing-dir | |
git reset --hard HEAD # git thinks all files are deleted, this reverses that behaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To calculate the average file size within a directory: | |
ls -l | gawk '{sum += $5; n++;} END {print sum/n;}' | |
# If you'd like to know the average size of some particular kind of file: | |
ls -l *.jpg | gawk '{sum += $5; n++;} END {print sum/n;}' |