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
COUNTER=1 | |
for currentfile in $(ls Productname*.png); do | |
if [ $COUNTER == 1 ]; then | |
cp $currentfile prova_$COUNTER.png | |
else | |
composite $currentfile prova_$(expr $COUNTER - 1).png prova_$COUNTER.png | |
fi | |
COUNTER=$(expr $COUNTER + 1) | |
done |
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
{ | |
"Chrome 47.0": "23.69", | |
"Chrome for Android": "16.39", | |
"Safari iPhone": "7.03", | |
"IE 11.0": "6.23", | |
"Firefox 43.0": "5.76", | |
"Android 0": "4.83", | |
"Opera 0": "4.04", | |
"Safari iPad": "3.22", | |
"Chrome 48.0": "2.41", |
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 images_*.png -layers flatten image.png ; convert image.png -quality 50 image.jpg |
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
<?php | |
$endpoint_url="your_url_here"; | |
$string_json = "your_json_string"; | |
$username="username"; | |
$password ="password"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $endpoint_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
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
<?php | |
$endpoint_url="your_url_here"; | |
$string_json = "your_json_string"; | |
$username="username"; | |
$password ="password"; | |
$client = new Client(); | |
$options= array( | |
'auth' => [ | |
$username, |
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
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Your document html | |
ExpiresByType text/html "access plus 1 month" | |
# Media: images, video, audio | |
ExpiresByType audio/ogg "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" |
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
db.tollbooth.find().forEach(function (item) { | |
loc = [item.lng, item.lat] | |
// print(loc) | |
item.loc= loc | |
print(item) | |
db.tollbooth.save(item) | |
}) |
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
db.tollbooth.find().forEach(function (item) { | |
name = item.name | |
mysplit = name.split(" - ") | |
item.route = mysplit[0] | |
db.tollbooth.save(item) | |
}) |
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
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { | |
app: './app.js', | |
}, | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
publicPath: '/dist/', |
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
#replace sdX with your device. THIS COMMAND WILL DESTROY THE CONTENT OF YOUR DEVICE (/dev/sdX) | |
sudo umount /dev/sdX1 | |
sudo dd if=ubuntu-17.04-desktop-amd64.iso of=/dev/sdX bs=4M | |
sync | |