This file contains hidden or 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
// https://github.com/webpack/webpack/issues/86#issuecomment-179957661 | |
// in index.pug, write simply [[app]] if your JS is app.js | |
var webpack = require('webpack') | |
var path = require('path') | |
var fs = require('fs') | |
module.exports = { | |
entry: { |
This file contains hidden or 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
<!-- remove link from WP excerpt --> | |
<!-- https://stackoverflow.com/a/42202343 --> | |
function new_excerpt_more($more) { | |
global $post; | |
remove_filter('excerpt_more', 'new_excerpt_more'); | |
return ''; | |
} | |
add_filter('excerpt_more','new_excerpt_more', 11); |
This file contains hidden or 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
DATE=`date +%Y%m%d` | |
URL="http://www.meteo.pl/php/meteorogram_list_coamps.php?ntype=2n&fdate=$(echo $DATE)12&row=133&col=96&lang=pl&cname=Warszawa" | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $URL |
This file contains hidden or 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
# convert video to webm | |
# https://thethemefoundry.com/blog/convert-mp4-to-webm/ | |
ffmpeg -i myvideo.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis myvideo.webm | |
# convert between image formats | |
convert myimg.png myimg.jpg | |
# convert images to webp | |
# https://www.npmjs.com/package/webp-converter-cli | |
# to convert all in current directory: |
OlderNewer