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
import Vue from 'vue' | |
/* eg: | |
head() { | |
const { baseUrl, env } = this.$config | |
const robots = env === 'production' ? false : 'noindex, nofollow' | |
const title = 'My Title' | |
const description = | |
'My Description' | |
const url = `${baseUrl}/` |
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
document.querySelectorAll('.next-input').forEach(i => { | |
let replacements = [ | |
'-taxes-fees-included', | |
'-taxes-and-fees-included', | |
'-taxes-fees-inluded', | |
'-taxes-fee-included', | |
'-tax-fees-included', | |
'-taxes-fees-incl' | |
]; |
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
//mixins: | |
@import "~poly-fluid-sizing/poly-fluid-sizing"; | |
// eg. @include poly-fluid-sizing('height', ($mobileL:666px, $tablet:613px)); | |
// eg. @include grid-spacing($spc:20px,$vertical:$laptop); | |
@mixin grid-spacing($spc: 10px, $vertical: $tablet) { | |
$spc-half: ($spc/2); | |
margin-left: -$spc-half; |
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
#!/bin/bash | |
# usage examples: | |
# toWebP.sh "*.png" # convert all png's in current directory | |
# toWebP.sh "icon-*.jpg" # convert all jpg's that start with "icon-" | |
if [ $# -eq 0 -o -z "$1" ]; then | |
echo "No file pattern supplied"; | |
exit 1; | |
fi |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
img.grayscale { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ | |
} |
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
#!/bin/bash | |
mysql -u db_user -p db_db -e "select firstname, lastname, email from users" -B | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" > list.csv |
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
#!/bin/bash | |
# crontab -e | |
# add: | |
# */5 * * * * /root/bin/cron_monitor_mysql > /dev/null 2>&1 | |
UP=$(pgrep mysql | wc -l); | |
if [ "$UP" -ne 1 ]; | |
then | |
echo "MySQL is down."; |