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
<?php | |
/** | |
* File for parsing squid logs | |
* | |
* This file fetches lines from the squid log on the squid server and parsing the data to a mysql database | |
* @link http://phun-ky.net/2007/03/squid-log-parser | |
* @author Alexander Vassbotn Røyne | |
* @license Creative Commons, see http://phun-ky.net/license for more information | |
* @version 1.1 | |
* @name UMedia SquidParser 1.1 |
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
# Rename multiple files | |
# http://www.24hourapps.com/2009/03/linux-tips-10-rename-multiple-files.html | |
# https://gist.github.com/alobato/397988 | |
# | |
# Found the orignal gist very helpfull, and tweaked it to fit git mv | |
# First I suggest you test the outcome before you do the renaming, with a dry run (-n) | |
for f in $(git ls-files | grep %filestomatch%); do git mv -n "${f}" "${f/%filestomatch%/%newfilename_orlocation%}"; done; |
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
[{ | |
"country_en": "Afghanistan", | |
"code": "AF", | |
"phonecode": 93, | |
"country_no": "Afghanistan" | |
}, { | |
"country_en": "Albania", | |
"code": "AL", | |
"phonecode": 355, | |
"country_no": "Albania" |
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
postcss: () => { | |
return [ | |
cssnano({ | |
reduceIdents: false, | |
discardDuplicates: true, | |
autoprefixer: true | |
}) | |
]; | |
},modules: { | |
loaders: [{ |
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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
// autoprefixer: { add: true, exclude: false }, | |
// discardComments: { removeAll: true, exclude: false }, | |
// autoprefixer: false, | |
// calc: 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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'default', | |
{ | |
// autoprefixer: { add: true, exclude: false }, | |
// discardComments: { removeAll: true, exclude: false }, | |
// autoprefixer: false, | |
// calc: 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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'default', | |
{ | |
autoprefixer: { add: true, exclude: false }, | |
discardComments: { removeAll: true, exclude: false }, | |
autoprefixer: false, | |
calc: 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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
autoprefixer: { add: true, exclude: false }, | |
discardComments: { removeAll: true, exclude: false }, | |
autoprefixer: false, | |
calc: 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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
autoprefixer: { add: true, exclude: false }, | |
discardComments: { removeAll: true, exclude: false }, | |
calc: { exclude: true }, | |
colormin: { exclude: 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
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
autoprefixer: { add: true, exclude: false }, | |
discardComments: { removeAll: true, exclude: false }, | |
calc: { exclude: true }, | |
colormin: { exclude: true }, |
OlderNewer